Преглед изворни кода

Update branchActiveOperation.vue

lex-xin пре 5 година
родитељ
комит
45b4a22039
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      src/views/categroyManager/insideSetting/branchActiveOperation.vue

+ 2 - 2
src/views/categroyManager/insideSetting/branchActiveOperation.vue

@@ -229,8 +229,8 @@ export default {
     },
     onSubmit (formName) {
       this.$refs[formName].validate((valid) => {
+        this.addDomain(this.result, true)
         let result = JSON.parse(JSON.stringify(this.result))
-        this.addDomain(result, true)
         if (valid && !result.errorText) {
           // 如果奖励金额为空时,默认为0
           result.domains.forEach(item => {
@@ -279,7 +279,7 @@ export default {
       this.result = {
         name: null,
         rewardMode: null,
-        organId: [],
+        organId: null,
         courseScheduleType: 'VIP',
         domains: [{
           min: null,