- 拆 ssw.dacli.menu.builder 包: MenuBuilder 接口 + MenuBuildContext + 5 type builder
- WebMenuBuilder (type=1/2/3/9, 默认)
- NoSpaMenuBuilder (type=7, /ssw/{app}/... token 模板)
- DataReportMenuBuilder (type=5/6/8/10, bi/portal URL)
- LinkMenuBuilder (type=7, 完整 http:// 链接)
- ButtonMenuBuilder (type=0, 按钮, parentId 必非 -1)
- 共享 PropertyJsonBuilder + AuthorizeFieldsBuilder (4 authorize 必含)
- MenuBuilderFactory SPI 加载, 未注册 category 抛明确错误
- ssw.dacli.MenuBuilder 变轻量门面, 委派给 factory
- META-INF/services/ssw.dacli.menu.builder.MenuBuilder (5 行 SPI)
Task 2.1 baseline 157 menu (dev 54 + work 103) 收集 + type 分布:
docs/dacli/2/v13-f2-menu-type-distribution.md
docs/dacli/2/v13-f2-todo.md
注: baseline/{developSystem,workSystem}/menu/*.json 全部 0 字节
(v13 Phase 0 baseline-collect.sh 只建 ID 壳, 需 v14 修复)
本次用 dacli live API 拉真数据作 0 误差源
mvn -pl ssw-dacli -am clean compile -DskipTests ✓ BUILD SUCCESS
smoke test 5 SPI 加载 ✓ UnsupportedOperationException 错误信息正确
2 lines
9.2 KiB
JSON
2 lines
9.2 KiB
JSON
{"code":200,"msg":"Success","data":{"id":"833736669482983301","fullName":"test_parent_child","enCode":"test_parent_child","category":"757e9dc9c3ca452aa62f8378bb5aa602","type":1,"description":"由dacli创建","formData":"{\"formRef\":\"formRef\",\"formModel\":\"dataForm\",\"size\":\"default\",\"labelPosition\":\"right\",\"labelWidth\":100,\"labelSuffix\":\"\",\"formRules\":\"rules\",\"popupType\":\"general\",\"generalWidth\":\"1000px\",\"fullScreenWidth\":\"100%\",\"drawerWidth\":\"600px\",\"gutter\":15,\"disabled\":false,\"span\":24,\"colon\":false,\"hasCancelBtn\":true,\"cancelButtonText\":\"取消\",\"hasConfirmBtn\":true,\"confirmButtonText\":\"确定\",\"hasConfirmAndAddBtn\":true,\"hasPrintBtn\":false,\"customBtns\":[],\"appCustomBtns\":[],\"primaryKeyPolicy\":1,\"concurrencyLock\":false,\"logicalDelete\":false,\"dataLog\":false,\"useBusinessKey\":false,\"businessKeyList\":[],\"businessKeyTip\":\"数据已存在,请勿重复提交!\",\"className\":[],\"classJson\":\"\",\"detailExtraList\":[],\"fields\":[{\"__config__\":{\"formId\":101,\"visibility\":[\"pc\",\"app\"],\"jnpfKey\":\"input\",\"noShow\":false,\"tipLabel\":\"\",\"dragDisabled\":false,\"className\":[],\"label\":\"姓名\",\"trigger\":\"blur\",\"showLabel\":true,\"required\":false,\"tableName\":\"test_parent_child\",\"renderKey\":1780914715436,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-input\",\"tag\":\"JnpfInput\",\"regList\":[],\"span\":24,\"dictionaryType\":\"\"},\"__vModel__\":\"f_name\",\"field\":\"f_name\",\"clearable\":true,\"suffixIcon\":\"\",\"addonAfter\":\"\",\"readonly\":false,\"showPassword\":false,\"style\":{\"width\":\"100%\"},\"disabled\":false,\"placeholder\":\"请输入姓名\",\"prefixIcon\":\"\",\"addonBefore\":\"\",\"on\":{\"blur\":\"\",\"change\":\"\"},\"id\":\"f_name\",\"fullName\":\"姓名\",\"fullNameI18nCode\":[\"\"]}],\"idGlobal\":101,\"formBtns\":false,\"tableName\":\"test_parent_child\"}","columnData":"{\"formData\":{\"formRef\":\"formRef\",\"formModel\":\"query\",\"size\":\"default\",\"labelPosition\":\"right\",\"labelWidth\":100,\"gutter\":15,\"disabled\":false,\"span\":6,\"formBtns\":true,\"fields\":[{\"__config__\":{\"label\":\"\",\"jnpfKey\":\"input\",\"tag\":\"JnpfInput\",\"formId\":201,\"visibility\":[\"pc\",\"app\"]},\"__vModel__\":\"f_name\"}],\"idGlobal\":201},\"tableConfig\":{\"border\":true,\"stripe\":false,\"size\":\"default\",\"showRadio\":false,\"showRowNumber\":true,\"showSummary\":false,\"hiddenBatchBtn\":false,\"dragRow\":false},\"columnOptions\":[{\"value\":\"f_name\",\"label\":\"\",\"width\":120,\"sort\":0}],\"columnList\":[{\"label\":\"\",\"prop\":\"f_name\",\"jnpfKey\":\"input\",\"fixed\":\"none\",\"headerAlign\":\"left\",\"align\":\"left\",\"sortable\":false,\"width\":null,\"id\":\"f_name\",\"fullName\":\"\",\"fullNameI18nCode\":[\"\"]}],\"searchList\":[{\"field\":\"f_name\",\"label\":\"\",\"jnpfKey\":\"input\",\"prop\":\"f_name\",\"sourceType\":2,\"searchType\":2,\"searchMultiple\":false,\"isKeyword\":false,\"id\":\"f_name\",\"fullName\":\"\",\"fullNameI18nCode\":[\"\"],\"search\":1,\"searchPop\":0}],\"defaultColumnList\":[{\"prop\":\"f_name\",\"label\":\"\",\"jnpfKey\":\"input\",\"fixed\":\"none\",\"headerAlign\":\"left\",\"align\":\"left\",\"sortable\":false,\"width\":null,\"id\":\"f_name\",\"fullName\":\"\",\"fullNameI18nCode\":[\"\"],\"checked\":true}],\"btnsList\":[{\"value\":\"add\",\"label\":\"新增\",\"type\":\"primary\",\"onClick\":\"add()\"},{\"value\":\"batchRemove\",\"label\":\"批量删除\",\"type\":\"danger\",\"onClick\":\"batchRemove()\"},{\"value\":\"export\",\"label\":\"导出\",\"type\":\"\",\"onClick\":\"export()\"},{\"value\":\"import\",\"label\":\"导入\",\"type\":\"\",\"onClick\":\"import()\"},{\"value\":\"batchPrint\",\"label\":\"批量打印\",\"type\":\"\",\"onClick\":\"batchPrint()\"}],\"columnBtnsList\":[{\"value\":\"edit\",\"label\":\"编辑\",\"type\":\"\",\"onClick\":\"edit(row)\"},{\"value\":\"remove\",\"label\":\"删除\",\"type\":\"danger\",\"onClick\":\"remove(row)\"},{\"value\":\"detail\",\"label\":\"详情\",\"type\":\"\",\"onClick\":\"detail(row)\"}],\"cardListConfig\":{\"primaryKey\":\"F_Id\",\"title\":\"fullName\",\"content\":\"\",\"label\":\"\"},\"tabConfig\":{\"on\":false,\"relationField\":\"\",\"hasAllTab\":true},\"ruleList\":{\"matchLogic\":\"and\",\"conditionList\":[]},\"relationForm\":{\" popupTable\":\"\",\"columnOptions\":[],\"searchForms\":[]},\"uploaderTemplateJson\":\"{}\",\"complexHeaderList\":[],\"resizable\":true,\"hasSuperQuery\":true,\"showOverflow\":true,\"childTableStyle\":1,\"showSummary\":false,\"summaryField\":[],\"type\":1,\"defaultSortConfig\":[],\"viewKey\":\"\",\"hasPage\":true,\"pageSize\":20,\"hasTreeQuery\":false,\"funcs\":{\"afterOnload\":\"\",\"rowStyle\":\"\",\"cellStyle\":\"\"}}","appColumnData":"{\"formData\":{\"formRef\":\"formRef\",\"formModel\":\"query\",\"size\":\"default\",\"labelPosition\":\"right\",\"labelWidth\":100,\"gutter\":15,\"disabled\":false,\"span\":6,\"formBtns\":true,\"fields\":[{\"__config__\":{\"label\":\"\",\"jnpfKey\":\"input\",\"tag\":\"JnpfInput\",\"formId\":201,\"visibility\":[\"pc\",\"app\"]},\"__vModel__\":\"f_name\"}],\"idGlobal\":201},\"tableConfig\":{\"border\":true,\"stripe\":false,\"size\":\"default\",\"showRadio\":false,\"showRowNumber\":true,\"showSummary\":false,\"hiddenBatchBtn\":false,\"dragRow\":false},\"columnOptions\":[{\"value\":\"f_name\",\"label\":\"\",\"width\":120,\"sort\":0}],\"columnList\":[{\"label\":\"\",\"prop\":\"f_name\",\"jnpfKey\":\"input\",\"fixed\":\"none\",\"headerAlign\":\"left\",\"align\":\"left\",\"sortable\":false,\"width\":null,\"id\":\"f_name\",\"fullName\":\"\",\"fullNameI18nCode\":[\"\"]}],\"searchList\":[{\"field\":\"f_name\",\"label\":\"\",\"jnpfKey\":\"input\",\"prop\":\"f_name\",\"sourceType\":2,\"searchType\":2,\"searchMultiple\":false,\"isKeyword\":false,\"id\":\"f_name\",\"fullName\":\"\",\"fullNameI18nCode\":[\"\"],\"search\":1,\"searchPop\":0}],\"defaultColumnList\":[{\"prop\":\"f_name\",\"label\":\"\",\"jnpfKey\":\"input\",\"fixed\":\"none\",\"headerAlign\":\"left\",\"align\":\"left\",\"sortable\":false,\"width\":null,\"id\":\"f_name\",\"fullName\":\"\",\"fullNameI18nCode\":[\"\"],\"checked\":true}],\"btnsList\":[{\"value\":\"add\",\"label\":\"新增\",\"type\":\"primary\",\"onClick\":\"add()\"},{\"value\":\"batchRemove\",\"label\":\"批量删除\",\"type\":\"danger\",\"onClick\":\"batchRemove()\"},{\"value\":\"export\",\"label\":\"导出\",\"type\":\"\",\"onClick\":\"export()\"},{\"value\":\"import\",\"label\":\"导入\",\"type\":\"\",\"onClick\":\"import()\"},{\"value\":\"batchPrint\",\"label\":\"批量打印\",\"type\":\"\",\"onClick\":\"batchPrint()\"}],\"columnBtnsList\":[{\"value\":\"edit\",\"label\":\"编辑\",\"type\":\"\",\"onClick\":\"edit(row)\"},{\"value\":\"remove\",\"label\":\"删除\",\"type\":\"danger\",\"onClick\":\"remove(row)\"},{\"value\":\"detail\",\"label\":\"详情\",\"type\":\"\",\"onClick\":\"detail(row)\"}],\"cardListConfig\":{\"primaryKey\":\"F_Id\",\"title\":\"fullName\",\"content\":\"\",\"label\":\"\"},\"tabConfig\":{\"on\":false,\"relationField\":\"\",\"hasAllTab\":true},\"ruleList\":{\"matchLogic\":\"and\",\"conditionList\":[]},\"relationForm\":{\" popupTable\":\"\",\"columnOptions\":[],\"searchForms\":[]},\"uploaderTemplateJson\":\"{}\",\"complexHeaderList\":[],\"resizable\":true,\"hasSuperQuery\":true,\"showOverflow\":true,\"childTableStyle\":1,\"showSummary\":false,\"summaryField\":[],\"type\":1,\"defaultSortConfig\":[],\"viewKey\":\"\",\"hasPage\":true,\"pageSize\":20,\"hasTreeQuery\":false,\"funcs\":{\"afterOnload\":\"\",\"rowStyle\":\"\",\"cellStyle\":\"\"}}","tables":"[{\"relationTable\":\"\",\"tableField\":\"\",\"comment\":\"主表\",\"typeId\":\"1\",\"fields\":[{\"allowNull\":1,\"autoIncrement\":0,\"columnName\":null,\"dataLength\":\"255\",\"dataType\":\"varchar\",\"field\":\"f_name\",\"fieldName\":\"姓名\",\"identity\":0,\"primaryKey\":0},{\"allowNull\":0,\"autoIncrement\":0,\"columnName\":null,\"dataLength\":\"50\",\"dataType\":\"varchar\",\"field\":\"f_id\",\"fieldName\":\"主键\",\"identity\":0,\"primaryKey\":1},{\"allowNull\":0,\"autoIncrement\":0,\"columnName\":null,\"dataLength\":\"50\",\"dataType\":\"varchar\",\"field\":\"f_tenant_id\",\"fieldName\":\"租户id\",\"identity\":0,\"primaryKey\":1},{\"allowNull\":1,\"autoIncrement\":0,\"columnName\":null,\"dataLength\":\"50\",\"dataType\":\"varchar\",\"field\":\"f_flow_id\",\"fieldName\":\"流程id\",\"identity\":0,\"primaryKey\":0},{\"allowNull\":1,\"autoIncrement\":0,\"columnName\":null,\"dataLength\":null,\"dataType\":\"int\",\"field\":\"f_version\",\"fieldName\":\"乐观锁\",\"identity\":0,\"primaryKey\":0},{\"allowNull\":1,\"autoIncrement\":0,\"columnName\":null,\"dataLength\":\"50\",\"dataType\":\"varchar\",\"field\":\"f_flow_task_id\",\"fieldName\":\"流程任务主键\",\"identity\":0,\"primaryKey\":0},{\"allowNull\":1,\"autoIncrement\":0,\"columnName\":null,\"dataLength\":null,\"dataType\":\"int\",\"field\":\"f_flow_state\",\"fieldName\":\"流程任务状态\",\"identity\":0,\"primaryKey\":0}],\"relationField\":\"\",\"table\":\"test_parent_child\",\"tableName\":\"test_parent_child\"}]","state":1,"dbLinkId":"2056521674462703616","webType":"2","sortCode":0,"enableFlow":0,"flowTemplateJson":null,"interfaceId":null,"interfaceName":null,"interfaceParam":null,"urlAddress":null,"appUrlAddress":null,"interfaceUrl":null,"webAddress":null,"appAddress":null,"buttonData":null,"appButtonData":null}}
|