[improvement][semantic-fe] Optimized the frontend display and code logic of visual modeling, and updated the relevant interface of the permission management module.

This commit is contained in:
tristanliu
2023-08-07 10:10:54 +08:00
parent aa0a100a85
commit ef7c37a8da
39 changed files with 878 additions and 454 deletions

View File

@@ -6,7 +6,7 @@ import type { Dispatch } from 'umi';
import { connect } from 'umi';
import type { StateType } from '../../model';
import { getGroupAuthInfo, removeGroupAuth } from '../../service';
import { getDepartmentTree } from '@/components/SelectPartner/service';
import { getOrganizationTree } from '@/components/SelectPartner/service';
import { getAllUser } from '@/components/SelectTMEPerson/service';
import PermissionCreateDrawer from './PermissionCreateDrawer';
import { findDepartmentTree } from '@/pages/SemanticModel/utils';
@@ -52,7 +52,7 @@ const PermissionTable: React.FC<Props> = ({ domainManger }) => {
}, [selectDomainId]);
const queryDepartmentData = async () => {
const { code, data } = await getDepartmentTree();
const { code, data } = await getOrganizationTree();
if (code === 200 || code === '0') {
setDepartmentTreeData(data);
}
@@ -120,7 +120,7 @@ const PermissionTable: React.FC<Props> = ({ domainManger }) => {
render: (_, record: any) => {
const { authorizedUsers = [] } = record;
const personNameList = tmePerson.reduce((enNames: string[], item: any) => {
const hasPerson = authorizedUsers.includes(item.enName);
const hasPerson = authorizedUsers.includes(item.name);
if (hasPerson) {
enNames.push(item.displayName);
}