查看页和编辑页

master
3y 3 years ago
parent 35fc2ae00a
commit e8b4e9bdae

@ -1,7 +1,6 @@
{ {
"type": "page", "type": "page",
"title": "修改 ${params.id}", "title": "修改当前模板",
"remark": null,
"toolbar": [ "toolbar": [
{ {
"type": "button", "type": "button",
@ -13,91 +12,229 @@
"body": [ "body": [
{ {
"type": "form", "type": "form",
"initApi": "http://localhost:8080/messageTemplate/query/${params.id}", "mode": "horizontal",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample/$id", "title": "",
"redirect": "/crud/list", "actions": [
"controls": [
{
"type": "text",
"name": "id",
"label": "ID",
"width": 20,
"required": true
},
{ {
"type": "text", "label": "保存",
"name": "name", "type": "submit",
"label": "name" "level": "success"
}, }
],
"affixFooter": true,
"initApi": "http://localhost:8080/messageTemplate/query/${params.id}",
"api": {
"url": "http://localhost:8080/messageTemplate/save",
"method": "post",
"data": {
"id": "${id}",
"name": "${name}",
"flowId": "${flowId}",
"msgStatus": "${msgStatus}",
"auditStatus": "${auditStatus}",
"creator": "${creator}",
"updator": "${updator}",
"team": "${team}",
"auditor": "${auditor}",
"deduplicationTime": "${deduplicationTime}",
"isNightShield": "${isNightShield}",
"created": "${created}",
"updated": "${updated}",
"isDeleted": "${isDeleted}",
"idType": "${idType}",
"msgType": "${msgType}",
"templateType": "${templateType}",
"expectPushTime": "${expectPushTime}",
"proposer": "${proposer}",
"sendChannel": "${sendChannel}",
"sendAccount": "${sendAccount}",
"msgContent": "{\"content\":\"${content}\",\"url\":\"${url}\"}"
}
},
"body": [
{ {
"type": "radios", "type": "fieldSet",
"name": "idType", "title": "基本配置",
"label": "接收者ID类型", "body": [
"options": [ {
"type": "input-text",
"label": "模板名称",
"name": "name",
"size": "md",
"required": true
},
{ {
"label": "用户ID", "type": "radios",
"value": "10" "label": "接收者Id类型",
"name": "idType",
"options": [
{
"label": "用户ID",
"value": "10"
},
{
"label": "设备号",
"value": "20"
},
{
"label": "手机号",
"value": "30"
},
{
"label": "openID",
"value": "40"
},
{
"label": "邮箱地址",
"value": "50"
}
],
"required": true
}, },
{ {
"label": "设备号", "type": "radios",
"value": "20" "label": "消息类型",
"name": "msgType",
"options": [
{
"label": "通知类",
"value": "10"
},
{
"label": "营销类",
"value": "20"
},
{
"label": "验证码",
"value": "30"
}
],
"required": true
}, },
{ {
"label": "手机号", "type": "radios",
"value": "30" "label": "消息模板类型",
"name": "templateType",
"options": [
{
"label": "定时",
"value": "10"
},
{
"label": "实时",
"value": "20"
}
],
"required": true
}, },
{ {
"label": "openID", "type": "input-text",
"value": "40" "label": "cron表达式",
"name": "expectPushTime",
"size": "md",
"visibleOn": "this.templateType == 10",
"clearValueOnHidden": false,
"visible": "",
"required": true
}, },
{ {
"label": "邮箱地址", "type": "input-text",
"value": "50" "label": "模板业务方",
"name": "proposer",
"size": "md",
"mode": "",
"description": ""
} }
] ],
}, "className": "Collapse--lg",
{ "bodyClassName": "r-3x w-full text-lg r font-bold"
"type": "text",
"name": "engine",
"label": "Engine",
"required": true
},
{
"type": "divider"
},
{
"type": "text",
"name": "browser",
"label": "Browser",
"required": true
},
{
"type": "divider"
}, },
{ {
"type": "text", "type": "fieldSet",
"name": "platform", "title": "渠道信息",
"label": "Platform(s)", "body": [
"required": true {
}, "type": "radios",
{ "label": "发送渠道",
"type": "divider" "name": "sendChannel",
}, "options": [
{ {
"type": "text", "label": "IM站内信",
"name": "version", "value": "10"
"label": "Engine version" },
}, {
{ "label": "PUSH通知栏",
"type": "divider" "value": "20"
}, },
{ {
"type": "select", "label": "短信",
"name": "grade", "value": "30"
"label": "CSS grade", },
"options": ["A", "B", "C", "D", "X"] {
"label": "邮箱",
"value": "40"
},
{
"label": "服务号",
"value": "50"
},
{
"label": "小程序",
"value": "60"
}
],
"required": true
},
{
"type": "select",
"label": "短信账号",
"name": "sendAccount",
"options": [
{
"label": "腾讯云通知",
"value": "10"
},
{
"label": "腾讯云营销",
"value": "20"
}
],
"visibleOn": "this.sendChannel == 30",
"clearValueOnHidden": false,
"required": true,
"size": "lg"
},
{
"type": "input-text",
"label": "短信内容",
"name": "content",
"required": true,
"visibleOn": "this.sendChannel == 30",
"mode": "",
"size": "lg",
"clearValueOnHidden": false
},
{
"type": "input-text",
"label": "短信链接",
"name": "url",
"visibleOn": "this.sendChannel == 30",
"size": "lg",
"clearValueOnHidden": false
}
],
"className": "Collapse--lg",
"bodyClassName": "r-3x w-full text-lg r font-bold"
} }
] ],
"panelClassName": "Panel--default",
"bodyClassName": "text-lg"
} }
] ],
} "messages": {
},
"style": {
},
"bodyClassName": "p-lg p-t-lg p-r-lg p-b-lg p-l-lg m-none m-l-lg m-b-lg m-r-lg m-t-lg m-lg b-5x b-dark r-3x text-dark bg-white w-full font-bold text-lg"
}

@ -1,7 +1,6 @@
{ {
"type": "page", "type": "page",
"title": "查看详情 ${params.id}", "title": "查看模板详情",
"remark": null,
"toolbar": [ "toolbar": [
{ {
"type": "button", "type": "button",
@ -13,53 +12,197 @@
"body": [ "body": [
{ {
"type": "form", "type": "form",
"initApi": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample/${params.id}", "mode": "horizontal",
"controls": [ "title": "",
"actions": [],
"affixFooter": true,
"initApi": "http://localhost:8080/messageTemplate/query/${params.id}",
"data": {
"content": "${msgContent}"
},
"body": [
{ {
"type": "static", "type": "fieldSet",
"name": "engine", "title": "基本配置",
"label": "Engine" "body": [
{
"type": "input-text",
"label": "模板名称",
"name": "name",
"size": "md",
"required": true
},
{
"type": "radios",
"label": "接收者Id类型",
"name": "idType",
"options": [
{
"label": "用户ID",
"value": "10"
},
{
"label": "设备号",
"value": "20"
},
{
"label": "手机号",
"value": "30"
},
{
"label": "openID",
"value": "40"
},
{
"label": "邮箱地址",
"value": "50"
}
],
"required": true
},
{
"type": "radios",
"label": "消息类型",
"name": "msgType",
"options": [
{
"label": "通知类",
"value": "10"
},
{
"label": "营销类",
"value": "20"
},
{
"label": "验证码",
"value": "30"
}
],
"required": true
},
{
"type": "radios",
"label": "消息模板类型",
"name": "templateType",
"options": [
{
"label": "定时",
"value": "10"
},
{
"label": "实时",
"value": "20"
}
],
"required": true
},
{
"type": "input-text",
"label": "cron表达式",
"name": "expectPushTime",
"size": "md",
"visibleOn": "this.templateType == 10",
"clearValueOnHidden": false,
"visible": "",
"required": true
},
{
"type": "input-text",
"label": "模板业务方",
"name": "proposer",
"size": "md",
"mode": "",
"description": ""
}
],
"className": "Collapse--lg",
"bodyClassName": "r-3x w-full text-lg r font-bold"
}, },
{ {
"type": "divider" "type": "fieldSet",
}, "title": "渠道信息",
{ "body": [
"type": "static", {
"name": "browser", "type": "radios",
"label": "Browser" "label": "发送渠道",
}, "name": "sendChannel",
{ "options": [
"type": "divider" {
}, "label": "IM站内信",
{ "value": "10"
"type": "static", },
"name": "platform", {
"label": "Platform(s)" "label": "PUSH通知栏",
}, "value": "20"
{ },
"type": "divider" {
}, "label": "短信",
{ "value": "30"
"type": "static", },
"name": "version", {
"label": "Engine version" "label": "邮箱",
}, "value": "40"
{ },
"type": "divider" {
}, "label": "服务号",
{ "value": "50"
"type": "static", },
"name": "grade", {
"label": "CSS grade" "label": "小程序",
}, "value": "60"
{ }
"type": "divider" ],
}, "required": true
{ },
"type": "html", {
"html": "<p>添加其他 <span>Html 片段</span> 需要支持变量替换todo.</p>" "type": "select",
"label": "短信账号",
"name": "sendAccount",
"options": [
{
"label": "腾讯云通知",
"value": "10"
},
{
"label": "腾讯云营销",
"value": "20"
}
],
"visibleOn": "this.sendChannel == 30",
"clearValueOnHidden": false,
"required": true,
"size": "lg"
},
{
"type": "input-text",
"label": "短信内容",
"name": "content",
"required": true,
"visibleOn": "this.sendChannel == 30",
"mode": "",
"size": "lg",
"clearValueOnHidden": false
},
{
"type": "input-text",
"label": "短信链接",
"name": "url",
"visibleOn": "this.sendChannel == 30",
"size": "lg",
"clearValueOnHidden": false
}
],
"className": "Collapse--lg",
"bodyClassName": "r-3x w-full text-lg r font-bold"
} }
] ],
"panelClassName": "Panel--default",
"bodyClassName": "text-lg"
} }
] ],
} "messages": {
},
"style": {
},
"bodyClassName": "p-lg p-t-lg p-r-lg p-b-lg p-l-lg m-none m-l-lg m-b-lg m-r-lg m-t-lg m-lg b-5x b-dark r-3x text-dark bg-white w-full font-bold text-lg"
}
Loading…
Cancel
Save