module.json
{ "name": "C9PDFQueryList", "description": "This is the C9PDFQueryList module" } 2.states.json { "C9PDFQueryLoc": { "data": { "browserTitle": { "source": "/i18n/C9CaseStudyListMessages", "key": "C9CaseStudyLocBrowserTitle" }, "browserSubTitle": { "source": "/i18n/C9CaseStudyListMessages", "key": "C9CaseStudyLocBrowserSubTitle" }, "headerTitle": { "source": "/i18n/C9CaseStudyListMessages", "key": "C9CaseStudyLocHeaderTitle" } }, "view": "AwSearchLocation", "parent": "root" }, "C9PDFSumSubLoc": { "data": { "priority": 0, "label": { "source": "/i18n/C9CaseStudyListMessages", "key": "C9ProjSumSubLocTitle" } }, "params": { "filter": null }, "parent": "C9PDFQueryLoc", "view": "C9PDFSumSubLocPage", "url": "/PDFQuery" } } 3.kit.json { "name": "C9PDFQueryList", "kitDeps": [ "tc-aw-solution" ], "modules": ["C9PDFQueryList"] } 4.commandsViewModel.json { "commands": { "cmdPDFQuery": { "iconId": "cmdGeneratePdf", "title": "PDF查图", "description": "{{i18n.cmdPDFQueryDescription}}" } }, "actions": { "activatecmdPDFQuery": { "actionType": "Navigate", "navigateTo": "#/PDFQuery", "navigationParams": {} } }, "commandHandlers": { "cmdPDFQueryHandler": { "id": "cmdPDFQuery", "action": "activatecmdPDFQuery", "activeWhen": true, "visibleWhen": { "condition": "conditions.true" } } }, "commandPlacements": { "cmdPDFQueryaw_globalNavigationbar": { "id": "cmdPDFQuery", "uiAnchor": "aw_globalNavigationbar", "priority": 100 } }, "conditions": { "isCaseStudyVisible": { "expression": "conditions.true" } }, "i18n": { "cmdPDFQueryTitle": [ "C9PDFQueryListMessages" ], "cmdPDFQueryDescription": [ "C9PDFQueryListMessages" ] } } 5.创建View和viewModel6.npm run clean npm run start
关键修改内容:
标签:C9PDFQueryList,自定义,C9CaseStudyListMessages,source,json,key,i18n,AWC,页面 From: https://www.cnblogs.com/PLM-Teamcenter/p/18357962