소스 검색

09/04 16:51

修改参数
mo 5 년 전
부모
커밋
24d9bf0b87
3개의 변경된 파일19개의 추가작업 그리고 16개의 파일을 삭제
  1. 0 0
      dist/index.html
  2. 0 0
      dist/static/js/app.08806745.js
  3. 19 16
      src/views/order/index.vue

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
dist/index.html


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
dist/static/js/app.08806745.js


+ 19 - 16
src/views/order/index.vue

@@ -265,26 +265,29 @@ export default {
     // 多选框选项卡
     handleItemChange (val) {
       // 发请求 获取分部下的乐团
-      getMusicTeams({ branchId: val }).then(res => {
-        // res.data.rows
-        // 1.格式化数据
-        // 2.追加数据到相应的位置 
-        if (res.code == 200) {
-          let arr = [];
-          res.data.rows.map(item => {
-            arr.push({
-              label: item.name,
-              value: item.id
+      if (val.length > 0) {
+        // console.log(val[0]);
+        getMusicTeams(qs.stringify({ branchId: val[0] })).then(res => {
+          // res.data.rows
+          // 1.格式化数据
+          // 2.追加数据到相应的位置 
+          if (res.code == 200) {
+            let arr = [];
+            res.data.rows.map(item => {
+              arr.push({
+                label: item.name,
+                value: item.id
+              })
             })
-          })
-          for (let item in this.brancheList) {
-            if (this.brancheList[item].value == val) {
-              this.brancheList[item].children = arr;
+            for (let item in this.brancheList) {
+              if (this.brancheList[item].value == val) {
+                this.brancheList[item].children = arr;
+              }
             }
           }
-        }
 
-      })
+        })
+      }
     },
     handleChange (val) {
       if (val) {

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.