From 3500a34fc17827eef64ca0b7e4b2a3121b24ab5b Mon Sep 17 00:00:00 2001
From: zs <zhousong@weben-smart.com>
Date: 周二, 29 4月 2025 17:33:29 +0800
Subject: [PATCH] 去掉生成的代码
---
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