Browse Source

平台机构使用新的接口

shmily1213 4 weeks ago
parent
commit
108acbf902

+ 9 - 0
back-ui/src/api/system/dept.js

@@ -9,6 +9,15 @@ export function listDept(query) {
   })
 }
 
+// 查询机构列表2
+export function listDept2(query) {
+  return request({
+    url: '/system/dept/list2',
+    method: 'get',
+    params: query
+  })
+}
+
 // 查询机构列表(排除节点)
 export function listDeptExcludeChild(deptId) {
   return request({

+ 2 - 2
back-ui/src/components/IeInstitutionSelect/index.vue

@@ -4,10 +4,10 @@
   </el-select>
 </template>
 <script setup>
-import { listDept } from '@/api/system/dept';
+import { listDept2 } from '@/api/system/dept';
 const dataList = ref([])
 const loadData = async () => {
-  const { data } = await listDept({})
+  const { data } = await listDept2({})
   dataList.value = data.filter(item => item.deptId !== 100);
 }
 loadData();