diff --git a/src/views/content/mall/index.vue b/src/views/content/mall/index.vue index 117e191..7192279 100644 --- a/src/views/content/mall/index.vue +++ b/src/views/content/mall/index.vue @@ -2,7 +2,7 @@
{{ $route.meta.title }}
- + {{ text == 10 ? '公司' : '个体户' }} @@ -125,7 +125,7 @@ export default { { title: '操作', dataIndex: 'action', - width: '180px', + width: '110px', scopedSlots: { customRender: 'action' }, }, ], diff --git a/src/views/content/mall/modules/EditForm.vue b/src/views/content/mall/modules/EditForm.vue index 782dfad..688ad93 100644 --- a/src/views/content/mall/modules/EditForm.vue +++ b/src/views/content/mall/modules/EditForm.vue @@ -31,10 +31,9 @@ import pick from 'lodash.pick' import * as Api from '@/api/content/banner' -import { SelectImage, SelectActive } from '@/components' +import { SelectImage } from '@/components' export default { components: { SelectImage, - SelectActive, }, data() { return { @@ -211,20 +213,16 @@ export default { edit(record) { // 显示窗口 this.visible = true + this.record = {} // 当前记录 - this.record = record - // 设置默认值 - this.setFieldsValue() - }, - - // 设置默认值 - setFieldsValue() { - const { - record, - form: { setFieldsValue }, - } = this + this.record.card_front_url = null + this.record.card_back_url = null + this.record.business_license_url = null + this.record.photo_url = null + this.record.qr_code_url = null + this.$forceUpdate() this.$nextTick(() => { - setFieldsValue(pick(record, ['name', 'image_id', 'redirect_url', 'status', 'sort'])) + this.record = record }) }, diff --git a/src/views/user/Index.vue b/src/views/user/Index.vue index bdcf3a9..16af90e 100644 --- a/src/views/user/Index.vue +++ b/src/views/user/Index.vue @@ -80,7 +80,7 @@ 充值 等级 - + 消费明细 删除 diff --git a/src/views/user/modules/ConsumptionDetails.vue b/src/views/user/modules/ConsumptionDetails.vue index 8c10443..f8f7774 100644 --- a/src/views/user/modules/ConsumptionDetails.vue +++ b/src/views/user/modules/ConsumptionDetails.vue @@ -1,7 +1,7 @@