AWC 添加自定义的页面
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和viewModel
6.npm run clean npm run start
关键修改内容:
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· 记一次.NET内存居高不下排查解决与启示
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET10 - 预览版1新功能体验(一)