diff --git a/src/api/confinementClub/index.js b/src/api/confinementClub/index.js index b31a6d4..cca9efe 100644 --- a/src/api/confinementClub/index.js +++ b/src/api/confinementClub/index.js @@ -65,7 +65,7 @@ export function destroyMerchantItems(data){ }) } -export function savePicture(data){ +export function storePicture(data){ return request({ method:'post', url:'/api/admin/confinement-service/store-picture', diff --git a/src/views/order/component/actions.vue b/src/views/order/component/actions.vue new file mode 100644 index 0000000..b315355 --- /dev/null +++ b/src/views/order/component/actions.vue @@ -0,0 +1,121 @@ + + + diff --git a/src/views/order/orderList.vue b/src/views/order/orderList.vue index 1993234..1649758 100644 --- a/src/views/order/orderList.vue +++ b/src/views/order/orderList.vue @@ -78,11 +78,12 @@ @@ -97,9 +98,11 @@ import {getList,index as getTypes} from "@/api/order" import {parseTime} from "@/utils" import orderLog from '@/views/order/component/orderLog' +import actions from '@/views/order/component/actions' export default { components:{ - orderLog + orderLog, + actions }, data() { return { @@ -125,7 +128,9 @@ export default { { prop: "order_name", label:"订单名称", - width:220 + width:220, + align:'left', + fixed:'left' }, { prop:'bookable_name', @@ -141,7 +146,7 @@ export default { { prop:"created_at", label:"下单时间", - width: 160, + width: 200, formatter:(cell,data,value,index)=>{ return parseTime(new Date(value)) } @@ -149,7 +154,7 @@ export default { { prop:"paid_at", label:"支付时间", - width: 160, + width: 200, formatter:(cell,data,value,index)=>{ return parseTime(new Date(value)) } @@ -157,7 +162,7 @@ export default { { prop:"updated_at", label:"更新时间", - width: 160, + width: 200, formatter:(cell,data,value,index)=>{ return parseTime(new Date(value),"{y}-{m}-{d}") } @@ -257,6 +262,11 @@ export default { }) this.total = res.total this.list = res.rows + }, + + showLog(row){ + this.selectId = row.id + this.isShowLog = true } }, mounted() { diff --git a/src/views/productService/clubProduct.vue b/src/views/productService/clubProduct.vue index a2b30e9..decdad7 100644 --- a/src/views/productService/clubProduct.vue +++ b/src/views/productService/clubProduct.vue @@ -5,11 +5,11 @@
- + - +
@@ -30,7 +30,7 @@ - + @@ -38,6 +38,7 @@ + @@ -48,10 +49,12 @@ import { Message } from 'element-ui' import addClubProduct from '@/views/productService/components/confinement/addClubProduct' import addProductCombo from '@/views/productService/components/confinement/addProductCombo' +import addProductPic from '@/views/productService/components/confinement/addProductPic' export default { components:{ addClubProduct, - addProductCombo + addProductCombo, + addProductPic }, data() { return { @@ -68,12 +71,15 @@ export default { { prop:'name', label:'名称', - width: 220 + width: 220, + fixed:'left', + align:'left' }, { label:'所属会所', prop:'service.name', - width: 220 + width: 220, + align:'left' }, { label:'产品信息', @@ -89,6 +95,24 @@ export default { ) } }, + { + label:'特色标签', + width: 260, + align:'left', + prop:'featured_label', + customFn:(row) => { + return ( +
+ { + row.featured_label ? + row.featured_label?.split(',').map(item => { + return {item} + }) :
+ } +
+ ) + } + }, { label:'排序', width: 160, @@ -144,6 +168,10 @@ export default { comboClick(row){ this.$refs['addProductCombo'].id = row.id this.$refs['addProductCombo'].isShow = true + }, + picClick(row){ + this.$refs['addProductPic'].id = row.id + this.$refs['addProductPic'].isShow = true } }, mounted() { diff --git a/src/views/productService/components/confinement/addClubInfo.vue b/src/views/productService/components/confinement/addClubInfo.vue index 26b5d9a..c25773d 100644 --- a/src/views/productService/components/confinement/addClubInfo.vue +++ b/src/views/productService/components/confinement/addClubInfo.vue @@ -18,6 +18,7 @@ diff --git a/src/views/productService/components/confinement/addProductPic.vue b/src/views/productService/components/confinement/addProductPic.vue new file mode 100644 index 0000000..4885390 --- /dev/null +++ b/src/views/productService/components/confinement/addProductPic.vue @@ -0,0 +1,116 @@ + + + + + diff --git a/src/views/productService/confinementClub.vue b/src/views/productService/confinementClub.vue index 4a54cb1..1181c3d 100644 --- a/src/views/productService/confinementClub.vue +++ b/src/views/productService/confinementClub.vue @@ -5,11 +5,11 @@
- + - +
@@ -129,7 +129,8 @@ export default { async getClubs(){ const res = await index({ page:this.select.page, - pageSize:this.select.pageSize + pageSize:this.select.pageSize, + keyword:this.select.keywords }) console.log(res) this.list = res.rows