Commit 28c6c23e by wangql

修改线上BUG

1 parent 8d5ffa18
...@@ -249,7 +249,7 @@ export default { ...@@ -249,7 +249,7 @@ export default {
this.title = '编辑' this.title = '编辑'
} }
this.editFormData[0].isDisabled = true this.editFormData[0].isDisabled = true
this.editFormData[5].isDisabled = true this.editFormData[7].isDisabled = true
} else { } else {
this.apear = 'couponAdd' this.apear = 'couponAdd'
this.title = '创建' this.title = '创建'
...@@ -438,6 +438,7 @@ export default { ...@@ -438,6 +438,7 @@ export default {
getInfo() { getInfo() {
this.$apis.couponManage.getCouponDetailApi({ couponId: this.routeInfo.id }).then(res => { this.$apis.couponManage.getCouponDetailApi({ couponId: this.routeInfo.id }).then(res => {
this.editForm = this.$common.utils.deepClone(res) this.editForm = this.$common.utils.deepClone(res)
this.editForm.effectiveTime = []
this.editForm.useChannel = this.editForm.useChannel + '' this.editForm.useChannel = this.editForm.useChannel + ''
this.editForm.effectiveType = this.editForm.effectiveType + '' this.editForm.effectiveType = this.editForm.effectiveType + ''
this.editForm.useBarriers = this.editForm.useBarriers + '' this.editForm.useBarriers = this.editForm.useBarriers + ''
......
...@@ -109,7 +109,9 @@ export default { ...@@ -109,7 +109,9 @@ export default {
couponTime: '', couponTime: '',
editForm: { editForm: {
couponName: '', couponName: '',
effectiveType: '2' effectiveType: '2',
effectiveTime: [],
effectiveDays: ''
}, },
editRule: { editRule: {
couponName: [{ required: true, message: '请输入优惠券名称', trigger: 'change' }], couponName: [{ required: true, message: '请输入优惠券名称', trigger: 'change' }],
......
...@@ -88,7 +88,9 @@ export default { ...@@ -88,7 +88,9 @@ export default {
couponTime: '', couponTime: '',
editForm: { editForm: {
couponName: '', couponName: '',
effectiveType: '2' effectiveType: '2',
effectiveTime: [],
effectiveDays: ''
}, },
editRule: { editRule: {
couponName: [{ required: true, message: '请输入优惠券名称', trigger: 'change' }], couponName: [{ required: true, message: '请输入优惠券名称', trigger: 'change' }],
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!