scorpio 2 ani în urmă
părinte
comite
1c660d7f28
2 a modificat fișierele cu 9 adăugiri și 1 ștergeri
  1. 8 0
      src/api/system/index.js
  2. 1 1
      src/views/home/component/params/params1.vue

+ 8 - 0
src/api/system/index.js

@@ -16,6 +16,14 @@ export default {
   getDeptLazy(params) {
     return fetch('/blade-system/dept/lazy-list', params)
   },
+  /**
+   * 获取公司
+   * @param params
+   * @returns {Promise | Promise<unknown>}
+   */
+  getNewDeptLazy(params) {
+    return fetch('/blade-system/dept/new-lazy-list', params)
+  },
   /**
    * 机构详情
    */

+ 1 - 1
src/views/home/component/params/params1.vue

@@ -427,7 +427,7 @@ export default {
         })
     },
     getCompList() {
-      this.$api.system.getDeptLazy({ deptCategory: 4 }).then(res => {
+      this.$api.system.getNewDeptLazy({ deptCategory: 4 }).then(res => {
         if (res.code === 200) {
           const tmp = res.data.map(ele => {
             const item = { label: ele.deptName, value: ele.id }