Commit b7832257 by 吕明尚

修改优惠卷显示

parent ee740730
...@@ -509,7 +509,7 @@ export default { ...@@ -509,7 +509,7 @@ export default {
this.roomType = this.form.roomType.split(",") this.roomType = this.form.roomType.split(",")
} }
if (this.form.storeIds) { if (this.form.storeIds) {
this.storeIds = this.form.storeIds.split(",") this.form.storeIds = this.form.storeIds.split(",")
} }
this.open = true; this.open = true;
...@@ -520,7 +520,7 @@ export default { ...@@ -520,7 +520,7 @@ export default {
submitForm() { submitForm() {
this.$refs["form"].validate(valid => { this.$refs["form"].validate(valid => {
if (valid) { if (valid) {
this.form.storeIds = this.storeIds && this.storeIds.length ? this.storeIds.join() : '' this.form.storeIds = this.form.storeIds && this.form.storeIds.length ? this.form.storeIds.join() : ''
if (this.form.id != null) { if (this.form.id != null) {
if (this.form.platformType === "美团") { if (this.form.platformType === "美团") {
this.form.platformType = 2 this.form.platformType = 2
...@@ -529,12 +529,14 @@ export default { ...@@ -529,12 +529,14 @@ export default {
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess("修改成功");
this.open = false; this.open = false;
this.getList(); this.getList();
this.reset();
}); });
} else { } else {
addCoupon(this.form).then(response => { addCoupon(this.form).then(response => {
this.$modal.msgSuccess("新增成功"); this.$modal.msgSuccess("新增成功");
this.open = false; this.open = false;
this.getList(); this.getList();
this.reset();
}); });
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment