洪海涛 4 years ago
parent
commit
5680b2f2c8

+ 2 - 6
src/views/monthlyReport/childrenPage/setReport/components/nodeTreeSet.vue

@@ -56,7 +56,7 @@ export default {
       typeVal: 'add',
       expandAll: false,
       setTeam: {
-        value: ''
+        value: []
       },
       loading: false,
       options: [], // 团队option
@@ -148,7 +148,6 @@ export default {
           list.push({ deptId: item.deptCode, deptName: item.deptName })
         }
       })
-      // console.log(this.setTeam.value, this.find(this.setTeam.value))
       const setTeam = this.find(this.setTeam.value)
       list.push({ deptId: setTeam.value, deptName: setTeam.label })
       // find()
@@ -169,7 +168,7 @@ export default {
     append(val) { // 设置
       this.setTeam = {}
       setTimeout(() => {
-        this.$refs.Cascader.selectValue = []
+        this.$refs.Cascader.selectValue = ''
       })
       this.typeVal = val
       this.showTreeNodeDialog = true
@@ -187,13 +186,11 @@ export default {
     },
     // 查找对应的部门数据
     find(id) {
-      console.log(187, id)
       let name = ''
       const run = (arr) => {
         for (let i = 0; i < arr.length; i++) {
           const elm = arr[i]
           if (`${elm.value}` === `${id}`) {
-            console.log(elm)
             name = elm
             return
           }
@@ -202,7 +199,6 @@ export default {
           }
         }
       }
-      // console.log(this.selectEnum)
       run(this.selectEnum)
       return name
     }