| | |
| | | |
| | | //20ãçæ Views\NameSpacePath æä»¶ |
| | | str_generate = NameSpacePath_Generate.CreateText(param); |
| | | tf = TextHelper.Export2File_V2(webRootPath + @"\Views", $"{param.NameSpacePath}.tsx", tableName, str_generate, FileType.InputModel, filePrefixName, entityName, modulelogo); |
| | | tf = TextHelper.Export2File_V2(webRootPath + @"\Views", $"{param.EntityName}.tsx", tableName, str_generate, FileType.InputModel, filePrefixName, entityName, modulelogo); |
| | | |
| | | //21ãçæ Views\NameSpacePath_module æä»¶ |
| | | str_generate = NameSpacePath_module_Generate.CreateText(param); |
| | | tf = TextHelper.Export2File_V2(webRootPath + @"\Views", $"{param.NameSpacePath}.module.scss", tableName, str_generate, FileType.InputModel, filePrefixName, entityName, modulelogo); |
| | | tf = TextHelper.Export2File_V2(webRootPath + @"\Views", $"{param.EntityName}.module.scss", tableName, str_generate, FileType.InputModel, filePrefixName, entityName, modulelogo); |
| | | |
| | | //22ãçæ Views\NameSpacePath_Config æä»¶ |
| | | str_generate = NameSpacePath_Config_Generate.CreateText(param); |
| | | tf = TextHelper.Export2File_V2(webRootPath + @"\Views\config", $"{param.NameSpacePath}.module.scss", tableName, str_generate, FileType.InputModel, filePrefixName, entityName, modulelogo); |
| | | tf = TextHelper.Export2File_V2(webRootPath + @"\Views\config", $"{param.EntityName}.module.scss", tableName, str_generate, FileType.InputModel, filePrefixName, entityName, modulelogo); |
| | | |
| | | |
| | | //23ãçæ Views\NameSpacePath_Config æä»¶ |
| | |
| | | .$NameSpacePath$ { |
| | | .$EntityName$ { |
| | | background-color: #fff; |
| | | border-radius: 5px 5px 0 0; |
| | | width: 100%; |
| | |
| | | SetupContext, |
| | | onMounted, |
| | | } from 'vue' |
| | | import styles from './$NameSpacePath$.module.scss' |
| | | import styles from './$EntityName$.module.scss' |
| | | import Tab from '@/components/Tab/Tab' |
| | | import { useProvideModels } from '@/libs/Provider/app' |
| | | import { usePermission } from '@/libs/Permission/Permission' |
| | |
| | | const nameToLabelMap = [{ name: '$EntityName$', label: '$PageMenuName$' }] |
| | | |
| | | export default defineComponent({ |
| | | name: '$NameSpacePath$', |
| | | name: '$EntityName$', |
| | | |
| | | setup(props, ctx: SetupContext) { |
| | | useProvideModels() |
| | |
| | | |
| | | return () => { |
| | | return ( |
| | | <div class={styles.$NameSpacePath$}> |
| | | <div class={styles.$EntityName$}> |
| | | <Tab data={tabData.value} type="list" onTab={onTabChange}> |
| | | {tabData.value.map((widgetInfo) => { |
| | | const Widget: any = widgetInfo.component |
| | |
| | | import { vPermission } from '@/libs/Permission/Permission' |
| | | import { |
| | | getWmsEnumData |
| | | } from '@/widgets/$NameSpacePath$/Models/Service/$EntityName$Drawer' |
| | | } from '@/widgets/$EntityName$/Models/Service/$EntityName$Drawer' |
| | | import { |
| | | ElInput, |
| | | ElSelect, |
| | |
| | | import $NameSpacePath$ from './Views/$NameSpacePath$' |
| | | import $EntityName$ from './Views/$EntityName$' |
| | | import Setting from '@/components/Setting/Setting' |
| | | import { provider } from '@/provider/index' |
| | | import p from '../../assets/svg/p.svg' |
| | | |
| | | export default { |
| | | is: '$NameSpacePath$', |
| | | is: '$EntityName$', |
| | | name: '$PageMenuName$', |
| | | category: 'run', |
| | | icon: p, |
| | | authorizationRequired: false, |
| | | canvasView: provider($NameSpacePath$), |
| | | canvasView: provider($EntityName$), |
| | | settingsView: Setting, |
| | | } |