Commit e5e24a7c by 吕明尚

修改字段

parent ddf97a9f
...@@ -494,9 +494,7 @@ export default { ...@@ -494,9 +494,7 @@ export default {
if (this.weeks.length) { if (this.weeks.length) {
this.form.weeks = this.weeks.join(); this.form.weeks = this.weeks.join();
} }
if (this.form.packIds.length) { this.form.packIds = this.form.packIds && this.form.packIds.length ? this.form.packIds.join() : ''
this.form.packIds = this.form.packIds.join();
}
if (this.form.id != null) { if (this.form.id != null) {
updateCoupon(this.form).then(response => { updateCoupon(this.form).then(response => {
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess("修改成功");
......
...@@ -553,9 +553,7 @@ export default { ...@@ -553,9 +553,7 @@ export default {
if (this.weeks.length) { if (this.weeks.length) {
this.form.weeks = this.weeks.join(); this.form.weeks = this.weeks.join();
} }
if (this.form.packIds.length) { this.form.packIds = this.form.packIds && this.form.packIds.length ? this.form.packIds.join() : ''
this.form.packIds = this.form.packIds.join();
}
this.form.storeIds = this.form.storeIds && this.form.storeIds.length ? this.form.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 === "美团") {
......
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