yrik 4 年之前
父节点
当前提交
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() {