소스 검색

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,