|
|
@@ -137,8 +137,8 @@ export default {
|
|
|
submit() {
|
|
|
const payload = {
|
|
|
...this.couponInfo,
|
|
|
- type: this.typeList[this.typeList_.indexOf(this.couponInfo.deliver)],
|
|
|
- scope: this.scopeList[this.scopeList_.indexOf(this.couponInfo.scope)],
|
|
|
+ type: this.typeList_[this.typeList.indexOf(this.couponInfo.type)],
|
|
|
+ scope: this.scopeList_[this.scopeList.indexOf(this.couponInfo.scope)],
|
|
|
metadata: JSON.stringify(this.meta),
|
|
|
};
|
|
|
console.log(payload);
|
|
|
@@ -148,6 +148,7 @@ export default {
|
|
|
this.showSuccessDialog = true;
|
|
|
setTimeout(() => {
|
|
|
this.showSuccessDialog = false;
|
|
|
+ this.$router.go(-1)
|
|
|
}, 1000);
|
|
|
} else {
|
|
|
this.showFailDialog = true;
|