PageBlueprint 加 RECIPE_MASTER_DETAIL 常量与可空 child 组件(14-arg, 保留 13-arg 兼容构造);新增 PageBlueprintChild record。 PageBlueprintCompiler.masterDetail 复用 maintenance 列表骨架, 新增/编辑表单内联 house-style input-table 子表(name=listColumn, quickEdit 控件),编辑表单 initApi 走 _LOAD 回显主+子行。 validate 接受 master-detail 并要求 child 非空/childTable/listColumn 非空/fields 非空。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
286 lines
7.3 KiB
JSON
286 lines
7.3 KiB
JSON
{
|
|
"type" : "page",
|
|
"title" : "新闻管理归档",
|
|
"body" : {
|
|
"type" : "crud",
|
|
"api" : "/api/flow/OA_NEWSMANAGE_FILINGUP_SEARCH",
|
|
"syncLocation" : false,
|
|
"selectable" : true,
|
|
"checkOnItemClick" : true,
|
|
"filter" : {
|
|
"title" : "查询",
|
|
"body" : [ {
|
|
"name" : "NEWTYPE",
|
|
"label" : "新闻类型",
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/NEWS_TYPE"
|
|
}, {
|
|
"name" : "IMPORTANT",
|
|
"label" : "重要级别",
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/Important"
|
|
}, {
|
|
"name" : "TITLE",
|
|
"label" : "主题",
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "USER_ID",
|
|
"label" : "拟稿人",
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"searchable" : true,
|
|
"source" : "/api/picker//list?q=${term}&page=${page}&perPage=${perPage}"
|
|
}, {
|
|
"name" : "STATUS",
|
|
"label" : "审批状态",
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"searchable" : true,
|
|
"source" : "/api/picker//list?q=${term}&page=${page}&perPage=${perPage}"
|
|
}, {
|
|
"name" : "ISDEL",
|
|
"label" : "是否删除",
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/YESNO"
|
|
}, {
|
|
"name" : "ISSEND",
|
|
"label" : "是否发布",
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/YESNO"
|
|
}, {
|
|
"name" : "USERSEND_ID",
|
|
"label" : "发布人",
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"searchable" : true,
|
|
"source" : "/api/picker//list?q=${term}&page=${page}&perPage=${perPage}"
|
|
}, {
|
|
"name" : "SENDTIME",
|
|
"label" : "发布时间",
|
|
"type" : "input-datetime"
|
|
}, {
|
|
"name" : "ISPLACE",
|
|
"label" : "归档状态",
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/SYS_FILINGUP_STATUS"
|
|
} ]
|
|
},
|
|
"columns" : [ {
|
|
"name" : "OA_NEWSMANAGE_ID",
|
|
"label" : "主键",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "NEWTYPE",
|
|
"label" : "新闻类型",
|
|
"width" : 80,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"0" : "普通",
|
|
"1" : "图片"
|
|
}
|
|
}, {
|
|
"name" : "IMPORTANT",
|
|
"label" : "重要级别",
|
|
"width" : 80,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"0" : "一般",
|
|
"1" : "重要"
|
|
}
|
|
}, {
|
|
"name" : "TITLE",
|
|
"label" : "主题",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "NEWSCONTENT",
|
|
"label" : "内容",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "USER_ID_DISPLAY__",
|
|
"label" : "拟稿人",
|
|
"width" : 90
|
|
}, {
|
|
"name" : "SAVETIME",
|
|
"label" : "保存时间",
|
|
"width" : 120,
|
|
"type" : "datetime",
|
|
"format" : "YYYY-MM-DD HH:mm",
|
|
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
|
|
}, {
|
|
"name" : "STATUS",
|
|
"label" : "审批状态",
|
|
"width" : 100,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"1" : "未提交",
|
|
"2" : "处理中",
|
|
"3" : "通过",
|
|
"4" : "未通过",
|
|
"5" : "重新提交",
|
|
"6" : "作废"
|
|
}
|
|
}, {
|
|
"name" : "ISDEL",
|
|
"label" : "是否删除",
|
|
"width" : 80,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"0" : "否",
|
|
"1" : "是"
|
|
}
|
|
}, {
|
|
"name" : "ISSEND",
|
|
"label" : "是否发布",
|
|
"width" : 80,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"0" : "否",
|
|
"1" : "是"
|
|
}
|
|
}, {
|
|
"name" : "USERSEND_ID_DISPLAY__",
|
|
"label" : "发布人",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "SENDTIME",
|
|
"label" : "发布时间",
|
|
"width" : 200,
|
|
"type" : "datetime",
|
|
"format" : "YYYY-MM-DD HH:mm",
|
|
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ",
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "ISSHOW",
|
|
"label" : "显示/隐藏",
|
|
"width" : 200,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"1" : "显示",
|
|
"0" : "隐藏"
|
|
},
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "ISTOP",
|
|
"label" : "是否置顶",
|
|
"width" : 200,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"0" : "否",
|
|
"1" : "是"
|
|
},
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "TOPTIME",
|
|
"label" : "置顶时间",
|
|
"width" : 200,
|
|
"type" : "datetime",
|
|
"format" : "YYYY-MM-DD HH:mm",
|
|
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ",
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "NEWSDRAFTITEMS",
|
|
"label" : "新闻详情",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "ISPLACE",
|
|
"label" : "归档状态",
|
|
"width" : 80,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"0" : "未归档",
|
|
"1" : "待归档",
|
|
"2" : "已退档",
|
|
"3" : "已归档"
|
|
}
|
|
} ],
|
|
"headerToolbar" : [ {
|
|
"type" : "button",
|
|
"id" : "归档",
|
|
"label" : "归档",
|
|
"actionType" : "dialog",
|
|
"disabledOn" : "${!selectedItems || selectedItems.length === 0}",
|
|
"dialog" : {
|
|
"type" : "dialog",
|
|
"title" : "归档",
|
|
"size" : "lg",
|
|
"data" : {
|
|
"&" : "${selectedItems[0]}"
|
|
},
|
|
"body" : {
|
|
"type" : "service",
|
|
"schemaApi" : "get:/api/page/schema/bb6033d5-b61b-44f5-8f63-756316a6f799?format=amis",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/OA_NEWSMANAGE_FILINGUP_LOAD?__egtpl=bb6033d5-b61b-44f5-8f63-756316a6f799",
|
|
"data" : {
|
|
"OA_NEWSMANAGE_ID" : "${OA_NEWSMANAGE_ID}"
|
|
},
|
|
"responseData" : {
|
|
"&" : "${result}"
|
|
}
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "保存",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/OA_NEWSMANAGE_FILINGUP_SAVE?__egtpl=bb6033d5-b61b-44f5-8f63-756316a6f799",
|
|
"close" : true
|
|
}, {
|
|
"type" : "button",
|
|
"label" : "取消",
|
|
"actionType" : "close"
|
|
} ]
|
|
}
|
|
}, {
|
|
"type" : "button",
|
|
"id" : "退档",
|
|
"label" : "退档",
|
|
"actionType" : "ajax",
|
|
"disabled" : true,
|
|
"confirmText" : "确认要退档吗?",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/OA_NEWSMANAGE_BACK",
|
|
"data" : {
|
|
"OA_NEWSMANAGE_ID" : "${selectedItems[0].OA_NEWSMANAGE_ID}"
|
|
}
|
|
}
|
|
}, "pagination" ],
|
|
"primaryField" : "OA_NEWSMANAGE_ID",
|
|
"onEvent" : {
|
|
"selectedChange" : {
|
|
"actions" : [ {
|
|
"actionType" : "disabled",
|
|
"componentId" : "退档"
|
|
}, {
|
|
"actionType" : "ajax",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/script/execute-template",
|
|
"data" : {
|
|
"seq" : 1,
|
|
"item" : "${event.data.selectedItems[0]}",
|
|
"templateId" : "7632ccc3-6b2b-453b-8009-4bbb2c85248c"
|
|
}
|
|
},
|
|
"outputVar" : "scriptResult1"
|
|
}, {
|
|
"actionType" : "replayScriptCommands",
|
|
"args" : {
|
|
"commands" : "${event.data.scriptResult1.commands}"
|
|
}
|
|
} ]
|
|
}
|
|
}
|
|
}
|
|
} |