From 27ba504441037666e787ded85b4af2f65be65c17 Mon Sep 17 00:00:00 2001 From: schangxiang@126.com <schangxiang@126.com> Date: 周二, 29 4月 2025 18:06:07 +0800 Subject: [PATCH] Merge branch 'master' of http://222.71.245.114:9086/r/HIA24016N_PipeLineDemo --- HIAWms/web/src/widgets/HIAWms/Views/HIAWms.tsx | 14 +++++++++----- 1 files changed, 9 insertions(+), 5 deletions(-) diff --git a/HIAWms/web/src/widgets/HIAWms/Views/HIAWms.tsx b/HIAWms/web/src/widgets/HIAWms/Views/HIAWms.tsx index 41e4a16..6c8532f 100644 --- a/HIAWms/web/src/widgets/HIAWms/Views/HIAWms.tsx +++ b/HIAWms/web/src/widgets/HIAWms/Views/HIAWms.tsx @@ -8,13 +8,13 @@ onMounted, } from 'vue' import styles from './HIAWms.module.scss' -// import WmsContainer from './Pages/WmsContainer/WmsContainer' +// import WmsContainer from './Pages/HIAWms/WmsContainer' import Tab from '@/components/Tab/Tab' import { useProvideModels } from '@/libs/Provider/app' import { usePermission } from '@/libs/Permission/Permission' import { permissionCodes } from '../enum' import { ModuleType, TabItem } from '../type/Type' -import { getEntityNames } from '../../hook' +import { getEntityNames } from '@/hooks/hook' import TabPane from '@/components/Tab/TabPane' const Models: ModuleType = import.meta.glob('./config/*.json', { @@ -22,6 +22,8 @@ }) const entityNames = getEntityNames(Models) + +const nameToLabelMap = [{ name: 'WmsMaterial', label: '鐗╂枡鍩虹' }] export default defineComponent({ name: 'HIAWms', @@ -44,11 +46,13 @@ for (const i in entityNames) { const name = entityNames[i] const module = await import(`./Pages/${name}/${name}.tsx`) - const WmsContainer = markRaw(module.default) + const WmsPlaces = markRaw(module.default) + const foundLabel = + nameToLabelMap.find((item) => item.name === name)?.label || name tabData.value.push({ - label: name, + label: foundLabel, name, - component: WmsContainer, + component: WmsPlaces, }) } } -- Gitblit v1.9.3