- 拆 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
13 KiB
JSON
2 lines
13 KiB
JSON
{"code":200,"msg":"Success","data":{"id":"833737463619919749","fullName":"主子表测试A","enCode":"test_parent_a","category":"06c6c124b7bc49f08683781528a67984","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_a\",\"renderKey\":1780914904957,\"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\":{\"change\":\"\",\"blur\":\"\"},\"id\":\"f_name\",\"fullName\":\"姓名\",\"fullNameI18nCode\":[\"\"]},{\"showSummary\":0,\"actionText\":\"添加\",\"tableConf\":{},\"defaultValue\":[],\"footerBtnsList\":[{\"label\":\"添加\",\"btnIcon\":\"icon-ym icon-ym-btn-add\",\"show\":true,\"btnType\":\"primary\",\"value\":\"add\"},{\"value\":\"batchRemove\",\"showConfirm\":true,\"btnType\":\"danger\",\"btnIcon\":\"icon-ym icon-ym-btn-clearn\",\"label\":\"批量删除\",\"show\":true}],\"addTableConf\":{\"hasPage\":true,\"interfaceName\":\"\",\"popupWidth\":\"800px\",\"interfaceId\":\"\",\"pageSize\":20,\"popupTitle\":\"选择数据\",\"templateJson\":[],\"relationOptions\":[],\"columnOptions\":[],\"popupType\":\"dialog\"},\"columnBtnsList\":[{\"label\":\"复制\",\"btnIcon\":\"icon-ym icon-ym-btn-edit\",\"show\":true,\"btnType\":\"primary\",\"value\":\"copy\"},{\"value\":\"remove\",\"showConfirm\":true,\"btnType\":\"danger\",\"btnIcon\":\"icon-ym icon-ym-btn-clearn\",\"label\":\"删除\",\"show\":true}],\"summaryField\":[],\"showDeleteBtn\":true,\"addType\":0,\"__config__\":{\"formId\":5940,\"visibility\":[\"pc\",\"app\"],\"jnpfKey\":\"table\",\"defaultValue\":[],\"noShow\":false,\"tipLabel\":\"\",\"dragDisabled\":false,\"className\":[],\"label\":\"订单明细\",\"type\":\"table\",\"showLabel\":false,\"tableName\":\"ct833737463619919749_1\",\"renderKey\":1780914910924,\"layout\":\"rowFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-table\",\"children\":[{\"clearable\":true,\"__config__\":{\"formId\":5941,\"visibility\":[\"pc\",\"app\"],\"jnpfKey\":\"input\",\"noShow\":false,\"parentVModel\":\"orderItems\",\"tipLabel\":\"\",\"dragDisabled\":false,\"className\":[],\"label\":\"商品\",\"trigger\":\"blur\",\"showLabel\":true,\"required\":false,\"tableName\":\"test_parent_a\",\"relationTable\":\"ct833737463619919749_1\",\"renderKey\":1780914910932,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-input\",\"isSubTable\":true,\"tag\":\"JnpfInput\",\"regList\":[],\"span\":24},\"__vModel__\":\"subField5942\",\"style\":{\"width\":\"100%\"},\"placeholder\":\"请输入\"},{\"clearable\":true,\"__config__\":{\"formId\":5942,\"visibility\":[\"pc\",\"app\"],\"jnpfKey\":\"input\",\"noShow\":false,\"parentVModel\":\"orderItems\",\"tipLabel\":\"\",\"dragDisabled\":false,\"className\":[],\"label\":\"数量\",\"trigger\":\"blur\",\"showLabel\":true,\"required\":false,\"tableName\":\"test_parent_a\",\"relationTable\":\"ct833737463619919749_1\",\"renderKey\":1780914910934,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-input\",\"isSubTable\":true,\"tag\":\"JnpfInput\",\"regList\":[],\"span\":24},\"__vModel__\":\"subField5943\",\"style\":{\"width\":\"100%\"},\"placeholder\":\"请输入\"}],\"showTitle\":true,\"complexHeaderList\":[],\"tag\":\"JnpfInputTable\",\"componentName\":\"table5940\",\"span\":24},\"showAddBtn\":true,\"__vModel__\":\"orderItems\",\"layoutType\":\"table\",\"disabled\":false}],\"idGlobal\":101,\"formBtns\":false,\"tableName\":\"test_parent_a\"}","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_a\",\"tableName\":\"test_parent_a\"},{\"relationTable\":\"test_parent_a\",\"tableKey\":\"f_id\",\"typeId\":\"0\",\"fields\":[{\"allowNull\":0,\"autoIncrement\":0,\"columnName\":null,\"dataLength\":\"20\",\"dataType\":\"varchar\",\"field\":\"f_id\",\"fieldName\":\"主键\",\"identity\":0,\"primaryKey\":1},{\"allowNull\":1,\"autoIncrement\":0,\"columnName\":null,\"dataLength\":\"20\",\"dataType\":\"varchar\",\"field\":\"f_foreignId\",\"fieldName\":\"外键\",\"identity\":0,\"primaryKey\":0},{\"allowNull\":1,\"autoIncrement\":0,\"columnName\":null,\"dataLength\":\"20\",\"dataType\":\"varchar\",\"field\":\"f_tenant_id\",\"fieldName\":\"租户\",\"identity\":0,\"primaryKey\":0},{\"allowNull\":1,\"autoIncrement\":0,\"columnName\":null,\"dataLength\":\"100\",\"dataType\":\"varchar\",\"field\":\"f_goods\",\"fieldName\":\"商品\",\"identity\":0,\"primaryKey\":0},{\"allowNull\":1,\"autoIncrement\":0,\"columnName\":null,\"dataLength\":null,\"dataType\":\"int\",\"field\":\"f_qty\",\"fieldName\":\"数量\",\"identity\":0,\"primaryKey\":0}],\"relationField\":\"f_id\",\"table\":\"ct833737463619919749_1\",\"tableName\":\"订单明细\"}]","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}}
|