Forráskód Böngészése

修改区县树结构

DESKTOP-2K9OVK9\siwei 7 hónapja
szülő
commit
56f7d14b67
2 módosított fájl, 14 hozzáadás és 4 törlés
  1. 11 1
      src/api/supervise/pcsj.js
  2. 3 3
      src/views/remote/satellite/index.vue

+ 11 - 1
src/api/supervise/pcsj.js

@@ -170,4 +170,14 @@ export function getXqIdKey(query) {
     method: 'get',
     params: query
   })
-}
+}
+
+
+// 查询部门列表
+export function listDept(query) {
+  return request({
+    url: '/system/dept/deptTree',
+    method: 'get',
+    params: query
+  })
+}

+ 3 - 3
src/views/remote/satellite/index.vue

@@ -304,8 +304,8 @@ import {
   addPcsj,
   updatePcsj,
   tiffUpload,
+  listDept,
 } from "@/api/supervise/pcsj";
-import { listDept } from "@/api/system/dept";
 import Treeselect from "@riophae/vue-treeselect";
 import "@riophae/vue-treeselect/dist/vue-treeselect.css";
 export default {
@@ -399,7 +399,7 @@ export default {
         status: undefined,
       };
       listDept(queryParams).then((res) => {
-        this.deptOptions = this.handleTree(res.data, "deptId");
+        this.deptOptions = res.data;
       });
     },
     treeselecthange(value) {
@@ -414,7 +414,7 @@ export default {
       }
       return {
         id: node.district,
-        label: node.deptName,
+        label: node.label,
         children: node.children,
       };
     },