Commit b7832257 by 吕明尚

修改优惠卷显示

parent ee740730
......@@ -509,7 +509,7 @@ export default {
this.roomType = this.form.roomType.split(",")
}
if (this.form.storeIds) {
this.storeIds = this.form.storeIds.split(",")
this.form.storeIds = this.form.storeIds.split(",")
}
this.open = true;
......@@ -520,7 +520,7 @@ export default {
submitForm() {
this.$refs["form"].validate(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.platformType === "美团") {
this.form.platformType = 2
......@@ -529,12 +529,14 @@ export default {
this.$modal.msgSuccess("修改成功");
this.open = false;
this.getList();
this.reset();
});
} else {
addCoupon(this.form).then(response => {
this.$modal.msgSuccess("新增成功");
this.open = false;
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