Procházet zdrojové kódy

主营业务 任务部门回显

qinbai před 3 roky
rodič
revize
bfe2f44352

+ 1 - 1
src/views/workManagement/main-items/configuration/detailsPage.json

@@ -62,11 +62,11 @@
       "label": "任务部门",
       "prop": "deptid",
       "type":"tree",
-      "dicUrl": "/api/blade-system/dept/tree?tenantId=096359",
       "props": {
         "label": "title",
         "value": "value"
       },
+      "dicData": [],
       "cell": true,
       "slot": true,
       "overHidden": true,

+ 9 - 1
src/views/workManagement/main-items/detailsPage.vue

@@ -419,7 +419,7 @@
   import { getUserList } from "@/api/workManagement/mainProject";
   import optionAdd from "../receipt/configuration/settleAccountsDetailsADD.json";
   import optionReturn from "../receipt/configuration/settleAccountsDetailsReturn.json";
-
+  import { getDeptTree } from "@/api/system/dept";
 
 
   export default {
@@ -754,6 +754,14 @@
     async created() {
       this.optionTable = await this.getColumnData(this.getColumnName(56), option);
 
+      getDeptTree("096359").then(res=>{
+        this.optionTable.column.forEach(item=>{
+          if(item.prop === "deptid"){
+            item.dicData = res.data.data
+          }
+        })
+      })
+
       //承揽人 责任人 默认20条数据
       getUserList().then(res=>{
         res.data.data.map((item,index)=>{