Parcourir la source

调整机构树空间,调整机构树显示数据类型

zhulu il y a 1 an
Parent
commit
4e4f47dae9

+ 1 - 0
src/views/core/message/index.vue

@@ -21,6 +21,7 @@
                   @defaultKey="getDefaultKey"
                   @checkChange="checkChange"
                   @click="clickTreeNode"
+                  hangsheTree
                   ref="orgTree"
                 ></org-tree>
               </el-form-item>

+ 1 - 0
src/views/resumptionEvaluate/evaluate/index.vue

@@ -28,6 +28,7 @@
                   @defaultKey="getDefaultKey"
                   @checkChange="checkChange"
                   @click="clickTreeNode"
+                  hangsheTree
                   ref="orgTree"
                 ></org-tree>
               </el-form-item>

+ 1 - 1
src/views/safetyBook/aqbwbndjh/index.vue

@@ -268,7 +268,7 @@ export default {
     },
   },
   created() {
-    this.getDeptTree();
+    // this.getDeptTree();
     this.getConfigKey("sys.user.initPassword").then((response) => {
       this.initPassword = response.msg;
     });

+ 1 - 1
src/views/safetyBook/hsggbsdj/index.vue

@@ -285,7 +285,7 @@ export default {
     },
   },
   created() {
-    this.getDeptTree();
+    // this.getDeptTree();
     this.getConfigKey("sys.user.initPassword").then((response) => {
       this.initPassword = response.msg;
     });

+ 1 - 1
src/views/safetyBook/newBook/index.vue

@@ -295,7 +295,7 @@ export default {
     },
   },
   created() {
-    this.getDeptTree();
+    // this.getDeptTree();
     this.getConfigKey("sys.user.initPassword").then((response) => {
       this.initPassword = response.msg;
     });

+ 24 - 6
src/views/scorestatistics/index.vue

@@ -12,8 +12,8 @@
             :model="queryParams"
             size="small"
           >
-            <el-form-item class="formTreeItem" label="组织机构">
-              <tree-select
+            <el-form-item label="组织机构">
+              <!-- <tree-select
                 v-model="queryParams.orgId"
                 :clearable="false"
                 :noChildrenText="''"
@@ -25,7 +25,16 @@
                 noOptionsText="没有数据"
                 noResultsText="没有搜索结果"
                 placeholder="请选择归属机构"
-              />
+              /> -->
+              <org-tree
+                  v-model="queryParams.orgId"
+                  @defaultKey="getDefaultKey"
+                  @checkChange="checkChange"
+                  @click="clickTreeNode"
+                  :defaultCheckSub="true"
+                  :showCheckSub="false"
+                  ref="orgTree"
+                ></org-tree>
             </el-form-item>
             <el-form-item label="查询年月">
               <el-date-picker
@@ -168,7 +177,7 @@
 <script>
 import {mapGetters} from "vuex";
 import {anewDetail, list} from "@/api/scorestatistics/scorestatistics.js";
-import OrgTree from "@/components/orgTree";
+import OrgTree from "@/components/orgTree/orgQuerySelector.vue";
 import {newDateMonth} from "@/utils/index.js";
 import scorestatisticsDialog from "./scorestatisticsDialog.vue";
 import {deptTreeSelect} from "@/api/system/public";
@@ -194,7 +203,6 @@ export default {
       queryParams: {
         orgId: null,
         date: newDateMonth("", "1"),
-
         pageNum: 1,
         pageSize: 10,
       },
@@ -208,7 +216,7 @@ export default {
   created() {
     this.queryParams.orgId = this.orgId;
     this.getList();
-    this.getDeptTree();
+    // this.getDeptTree();
   },
   mounted() {
   },
@@ -236,6 +244,16 @@ export default {
     formatterScore({dataYear, dataMonth}) {
       return dataYear + "-" + dataMonth;
     },
+    getDefaultKey(key) {
+      this.queryParams.orgId = key;
+      this.getList();
+    },
+    
+     // 节点单击事件
+     clickTreeNode(data) {
+      this.queryParams.orgId = data.id;
+      this.handleQuery();
+    },
 
     //获取列表
     getList() {