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>
252 lines
6.9 KiB
JSON
252 lines
6.9 KiB
JSON
{
|
|
"type" : "page",
|
|
"title" : "实名制微信账号管理",
|
|
"body" : {
|
|
"type" : "crud",
|
|
"api" : "/api/flow/GB_USER_WX_SEARCH",
|
|
"syncLocation" : false,
|
|
"selectable" : true,
|
|
"checkOnItemClick" : true,
|
|
"filter" : {
|
|
"title" : "查询",
|
|
"body" : [ {
|
|
"name" : "USERNAME",
|
|
"label" : "用户姓名",
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "TEL",
|
|
"label" : "手机号码",
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "ACCOUNT",
|
|
"label" : "平台登录账号",
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "PLATFORM",
|
|
"label" : "所属平台",
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/GB_USER_WX_URL"
|
|
}, {
|
|
"name" : "REMARK",
|
|
"label" : "备注",
|
|
"type" : "input-text"
|
|
} ]
|
|
},
|
|
"columns" : [ {
|
|
"name" : "GB_USER_WX_ID",
|
|
"label" : "主键",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "USERNAME",
|
|
"label" : "用户姓名",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "TEL",
|
|
"label" : "手机号码",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "ACCOUNT",
|
|
"label" : "平台登录账号",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "PLATFORM",
|
|
"label" : "所属平台",
|
|
"width" : 200,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"1" : "鼎思实名制平台"
|
|
}
|
|
}, {
|
|
"name" : "REMARK",
|
|
"label" : "备注",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "ISBINDING",
|
|
"label" : "是否绑定",
|
|
"width" : 200,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"0" : "否",
|
|
"1" : "是",
|
|
"false" : "否",
|
|
"true" : "是"
|
|
}
|
|
} ],
|
|
"headerToolbar" : [ {
|
|
"type" : "button",
|
|
"id" : "添加",
|
|
"label" : "添加",
|
|
"level" : "primary",
|
|
"actionType" : "dialog",
|
|
"dialog" : {
|
|
"type" : "dialog",
|
|
"title" : "添加",
|
|
"size" : "lg",
|
|
"body" : {
|
|
"type" : "service",
|
|
"schemaApi" : "get:/api/page/schema/75ddbbb1-6bfb-4032-a2a4-4412279950c0?format=amis",
|
|
"api" : {
|
|
"method" : "get",
|
|
"url" : "/api/form/GB_USER_WX/defaults?templateId=75ddbbb1-6bfb-4032-a2a4-4412279950c0"
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "保存",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/GB_USER_WX_ADD?__egtpl=75ddbbb1-6bfb-4032-a2a4-4412279950c0",
|
|
"close" : true
|
|
}, {
|
|
"type" : "button",
|
|
"label" : "取消",
|
|
"actionType" : "close"
|
|
} ]
|
|
}
|
|
}, {
|
|
"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/75ddbbb1-6bfb-4032-a2a4-4412279950c0?format=amis",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/GB_USER_WX_LOAD?__egtpl=75ddbbb1-6bfb-4032-a2a4-4412279950c0",
|
|
"data" : {
|
|
"GB_USER_WX_ID" : "${GB_USER_WX_ID}"
|
|
},
|
|
"responseData" : {
|
|
"&" : "${result}"
|
|
}
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "保存",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/GB_USER_WX_UPDATE?__egtpl=75ddbbb1-6bfb-4032-a2a4-4412279950c0",
|
|
"close" : true
|
|
}, {
|
|
"type" : "button",
|
|
"label" : "取消",
|
|
"actionType" : "close"
|
|
} ]
|
|
}
|
|
}, {
|
|
"type" : "button",
|
|
"id" : "删除",
|
|
"label" : "删除",
|
|
"level" : "danger",
|
|
"actionType" : "ajax",
|
|
"disabledOn" : "${!selectedItems || selectedItems.length === 0}",
|
|
"confirmText" : "确认要删除此记录吗?",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/GB_USER_WX_DELETE",
|
|
"data" : {
|
|
"ids" : "${selectedItems|pick:GB_USER_WX_ID|join:','}"
|
|
}
|
|
}
|
|
}, {
|
|
"type" : "button",
|
|
"id" : "查看",
|
|
"label" : "查看",
|
|
"actionType" : "dialog",
|
|
"disabledOn" : "${!selectedItems || selectedItems.length === 0}",
|
|
"dialog" : {
|
|
"type" : "dialog",
|
|
"title" : "查看",
|
|
"size" : "lg",
|
|
"data" : {
|
|
"&" : "${selectedItems[0]}",
|
|
"__readonly" : true
|
|
},
|
|
"body" : {
|
|
"type" : "service",
|
|
"schemaApi" : "get:/api/page/schema/75ddbbb1-6bfb-4032-a2a4-4412279950c0?format=amis",
|
|
"static" : true,
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/GB_USER_WX_LOAD?__egtpl=75ddbbb1-6bfb-4032-a2a4-4412279950c0",
|
|
"data" : {
|
|
"GB_USER_WX_ID" : "${GB_USER_WX_ID}"
|
|
},
|
|
"responseData" : {
|
|
"&" : "${result}"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}, {
|
|
"type" : "button",
|
|
"id" : "解绑",
|
|
"label" : "解绑",
|
|
"actionType" : "ajax",
|
|
"disabled" : true,
|
|
"confirmText" : "确认要解绑吗?",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/GB_USER_WX_DELTOKEN",
|
|
"data" : {
|
|
"GB_USER_WX_ID" : "${selectedItems[0].GB_USER_WX_ID}"
|
|
}
|
|
}
|
|
}, {
|
|
"type" : "button",
|
|
"id" : "清除登录状态",
|
|
"label" : "清除登录状态",
|
|
"actionType" : "ajax",
|
|
"disabled" : true,
|
|
"confirmText" : "确认要清除用户登录状态吗?清除后该账号微信小程序需要重新登录!",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/GB_USER_WX_REMOVETOKEN",
|
|
"data" : {
|
|
"GB_USER_WX_ID" : "${selectedItems[0].GB_USER_WX_ID}"
|
|
}
|
|
}
|
|
}, "pagination" ],
|
|
"primaryField" : "GB_USER_WX_ID",
|
|
"onEvent" : {
|
|
"selectedChange" : {
|
|
"actions" : [ {
|
|
"actionType" : "disabled",
|
|
"componentId" : "解绑"
|
|
}, {
|
|
"actionType" : "disabled",
|
|
"componentId" : "清除登录状态"
|
|
}, {
|
|
"actionType" : "ajax",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/script/execute-template",
|
|
"data" : {
|
|
"seq" : 1,
|
|
"item" : "${event.data.selectedItems[0]}",
|
|
"templateId" : "d22b5fc6-dc5b-4e4d-88d5-df6ab3a6c095"
|
|
}
|
|
},
|
|
"outputVar" : "scriptResult1"
|
|
}, {
|
|
"actionType" : "replayScriptCommands",
|
|
"args" : {
|
|
"commands" : "${event.data.scriptResult1.commands}"
|
|
}
|
|
} ]
|
|
}
|
|
}
|
|
}
|
|
} |