Przeglądaj źródła

Merge branch 'new_pad_branch' of http://git.shengws.com/zhangbj/xt_pad into new_pad_branch

See999 5 lat temu
rodzic
commit
5ba12e8b42
1 zmienionych plików z 8 dodań i 1 usunięć
  1. 8 1
      src/pages/main/dialog/OrdersDialog.vue

+ 8 - 1
src/pages/main/dialog/OrdersDialog.vue Wyświetl plik

1141
           return
1141
           return
1142
         }
1142
         }
1143
 
1143
 
1144
+        if (this.current_advice == null){
1145
+          return
1146
+        }
1147
+
1144
         if (this.currentAdvices.length == 0) {0
1148
         if (this.currentAdvices.length == 0) {0
1145
           return false
1149
           return false
1146
         }
1150
         }
1341
       }, selectGroupAdviceAction: function (group_index, advice_index, advice, group) {
1345
       }, selectGroupAdviceAction: function (group_index, advice_index, advice, group) {
1342
 
1346
 
1343
         if (this.current_group_index != -1 && this.current_group_index != group_index) { //选择其他组,将原来的组选择状态清除
1347
         if (this.current_group_index != -1 && this.current_group_index != group_index) { //选择其他组,将原来的组选择状态清除
1348
+          console.log("111111111")
1344
           this.currentAdvices = []
1349
           this.currentAdvices = []
1345
           this.currentSubAdvices = []
1350
           this.currentSubAdvices = []
1346
           for (let i = 0; i < this.advice_groups.length; i++) {
1351
           for (let i = 0; i < this.advice_groups.length; i++) {
1359
             }
1364
             }
1360
           }
1365
           }
1361
         }
1366
         }
1362
-
1367
+        this.currentAdvices = []
1363
         for (let i = 0; i < this.advice_groups.length; i++) {
1368
         for (let i = 0; i < this.advice_groups.length; i++) {
1364
           for (let y = 0; y < this.advice_groups[i].advices.length; y++) {
1369
           for (let y = 0; y < this.advice_groups[i].advices.length; y++) {
1365
             var advices = this.advice_groups[i].advices[y]
1370
             var advices = this.advice_groups[i].advices[y]
1373
         this.current_group_index = group_index
1378
         this.current_group_index = group_index
1374
         this.current_advice_index = advice_index
1379
         this.current_advice_index = advice_index
1375
         this.current_advice = advice
1380
         this.current_advice = advice
1381
+
1382
+
1376
       }
1383
       }
1377
     }
1384
     }
1378
   }
1385
   }