Commit 60350d6c0033e41dc08ef9870a974a8bd0b6e007
1 parent
419183ab
fix(front): fix report form config creator to createUserName
Showing
2 changed files
with
4 additions
and
8 deletions
... | ... | @@ -54,7 +54,9 @@ const staticMenus: Menu[] = []; |
54 | 54 | async function getAsyncMenus() { |
55 | 55 | const permissionStore = usePermissionStore(); |
56 | 56 | if (isBackMode()) { |
57 | - return permissionStore.getBackMenuList.filter((item) => !item.meta?.hideMenu && !item.hideMenu); | |
57 | + return permissionStore.getBackMenuList.filter( | |
58 | + (item) => !item.meta?.hideMenu && !item.hideMenu && item.meta?.menuType != '2' | |
59 | + ); | |
58 | 60 | } |
59 | 61 | if (isRouteMappingMode()) { |
60 | 62 | return permissionStore.getFrontMenuList.filter((item) => !item.hideMenu); | ... | ... |
... | ... | @@ -13,8 +13,6 @@ import { |
13 | 13 | getPacketIntervalByValue, |
14 | 14 | intervalOption, |
15 | 15 | } from '../../device/localtion/cpns/TimePeriodForm/helper'; |
16 | -import { USER_INFO_KEY } from '/@/enums/cacheEnum'; | |
17 | -import { getAuthCache } from '/@/utils/auth'; | |
18 | 16 | |
19 | 17 | export enum QueryWay { |
20 | 18 | LATEST = 'latest', |
... | ... | @@ -75,12 +73,8 @@ export const columns: BasicColumn[] = [ |
75 | 73 | }, |
76 | 74 | { |
77 | 75 | title: '创建人', |
78 | - dataIndex: 'creator', | |
76 | + dataIndex: 'createUserName', | |
79 | 77 | width: 180, |
80 | - format: (_text: string, record: Recordable) => { | |
81 | - const userInfo: any = getAuthCache(USER_INFO_KEY); | |
82 | - if (record.creator == userInfo.userId) return userInfo.realName || userInfo.username; | |
83 | - }, | |
84 | 78 | }, |
85 | 79 | { |
86 | 80 | title: '创建日期', | ... | ... |