scorpioyq 2 gadi atpakaļ
vecāks
revīzija
aab451d4d1
2 mainītis faili ar 17 papildinājumiem un 14 dzēšanām
  1. 15 12
      src/api/common.js
  2. 2 2
      src/views/home/component/owner_serach.vue

+ 15 - 12
src/api/common.js

@@ -1,16 +1,19 @@
 import fetch from '../api/fetch.js'
 
 export default {
-  dicList (params) {
-    return fetch('/blade-system/dict-biz/dictionary', params)
-  },
-  submit (params) { // 保存上传文件素材
-    return fetch('/wutong-library/library/save', params, 'post', 'json')
-  },
-  basicFormRequest (url) {
-    return fetch(url)
-  },
-  region (params) {
-    return fetch('/blade-system/region/lazy-tree', params)
-  }
+    dicList(params) {
+        return fetch('/blade-system/dict-biz/dictionary', params)
+    },
+    submit(params) { // 保存上传文件素材
+        return fetch('/wutong-library/library/save', params, 'post', 'json')
+    },
+    basicFormRequest(url) {
+        return fetch(url)
+    },
+    region(params) {
+        return fetch('/blade-system/region/lazy-tree', params)
+    },
+    deptList() {
+        return fetch('/blade-project-manage-v2/other/v2/deptList')
+    }
 }

+ 2 - 2
src/views/home/component/owner_serach.vue

@@ -374,8 +374,8 @@ export default {
         this.showOrg = true
         return
       }
-      const parentId = [0, 2].includes(this.user.info.viewStage) ? this.user.info.parentDeptId : this.user.info.deptId
-      this.$api.system.getDeptLazy({parentId}).then(res => {
+      // const parentId = [0, 2].includes(this.user.info.viewStage) ? this.user.info.parentDeptId : this.user.info.deptId
+      this.$api.common.deptList().then(res => {
         if (res.code === 200) {
           this.showOrg = true
           this.deptList = res.data.map(e => {