Browse Source

09/04 16:54

修改table bug
mo 5 years ago
parent
commit
992c135277
3 changed files with 20 additions and 17 deletions
  1. 0 0
      dist/index.html
  2. 0 0
      dist/static/js/app.e583622f.js
  3. 20 17
      src/views/order/index.vue

File diff suppressed because it is too large
+ 0 - 0
dist/index.html


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.e583622f.js


+ 20 - 17
src/views/order/index.vue

@@ -85,7 +85,7 @@
                        :page-size.sync="limit"
                        @current-change="handleCurrentChange"></el-pagination> -->
       <!-- </div> -->
-      
+
     </div>
   </div>
 </template>
@@ -266,26 +266,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) {
+        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) {

Some files were not shown because too many files changed in this diff