fix: bug#10894
This commit is contained in:
parent
fed5c348e0
commit
71fe3f81bd
|
@ -11,7 +11,7 @@ export const delApply_api = (id: string) => server.remove(`/application/${id}`)
|
|||
|
||||
|
||||
// 获取组织列表
|
||||
export const getDepartmentList_api = () => server.get(`/organization/_all/tree`);
|
||||
export const getDepartmentList_api = (params: any) => server.get(`/organization/_all/tree`, params);
|
||||
// 获取应用详情
|
||||
export const getAppInfo_api = (id: string) => server.get(`/application/${id}`);
|
||||
// 新增应用
|
||||
|
|
|
@ -788,6 +788,9 @@
|
|||
multiple
|
||||
:tree-data="form.orgIdList"
|
||||
placeholder="请选择组织"
|
||||
:filterTreeNode="
|
||||
(v: string, node: any) => filterSelectNode(v, node, 'name')
|
||||
"
|
||||
>
|
||||
<template #title="{ name }">
|
||||
{{ name }}
|
||||
|
@ -1439,7 +1442,7 @@
|
|||
|
||||
<script setup lang="ts">
|
||||
import { BASE_API_PATH, TOKEN_KEY } from '@/utils/variable';
|
||||
import { LocalStore } from '@/utils/comm';
|
||||
import { LocalStore, filterSelectNode } from '@/utils/comm';
|
||||
|
||||
import {
|
||||
getDepartmentList_api,
|
||||
|
@ -1729,7 +1732,7 @@ function getRoleIdList() {
|
|||
}
|
||||
// 获取组织列表
|
||||
function getOrgIdList() {
|
||||
getDepartmentList_api().then((resp) => {
|
||||
getDepartmentList_api({ paging: false }).then((resp) => {
|
||||
if (resp.status === 200) {
|
||||
form.orgIdList = resp.result as dictType;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue