yrik 4 лет назад
Родитель
Сommit
835b013818
1 измененных файлов с 12 добавлено и 2 удалено
  1. 12 2
      ruoyi-ui/src/views/deptplan/index.vue

+ 12 - 2
ruoyi-ui/src/views/deptplan/index.vue

@@ -235,10 +235,20 @@ export default {
   },
   methods: {
     changeBtn(e){
-      this.queryParams.sysDeptId = e[2]
+      if(e.length == 1){
+        this.queryParams.sysDeptId  = e
+      }else{
+         this.queryParams.sysDeptId = e[2]
+      }
+     
     },
     changeBtn1(e){
-      this.form.sysDeptId = e[2]
+      if(e.length == 1){
+        this.form.sysDeptId  = e
+      }else{
+        this.form.sysDeptId = e[2]
+      }
+
     },
     /** 查询 部门招商计划列表 */
     getList() {