fix: bug#10894

This commit is contained in:
JiangQiming 2023-03-27 10:47:50 +08:00
parent fed5c348e0
commit 71fe3f81bd
2 changed files with 6 additions and 3 deletions

View File

@ -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}`);
// 新增应用

View File

@ -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;
}