You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
204 lines
5.2 KiB
204 lines
5.2 KiB
{
|
|
"type": "page",
|
|
"title": "新建消息模板配置",
|
|
"toolbar": [
|
|
{
|
|
"type": "button",
|
|
"actionType": "link",
|
|
"link": "/crud/list",
|
|
"label": "返回列表"
|
|
}
|
|
],
|
|
"body": [
|
|
{
|
|
"type": "form",
|
|
"mode": "horizontal",
|
|
"title": "",
|
|
"affixFooter": true,
|
|
"api": "http://localhost:8080/messageTemplate/save",
|
|
"actions": [
|
|
{
|
|
"label": "保存",
|
|
"type": "submit",
|
|
"level": "success"
|
|
}
|
|
],
|
|
"body": [
|
|
{
|
|
"type": "fieldSet",
|
|
"title": "基本配置",
|
|
"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": ""
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "fieldSet",
|
|
"title": "渠道信息",
|
|
"body": [
|
|
{
|
|
"type": "radios",
|
|
"label": "发送渠道",
|
|
"name": "sendChannel",
|
|
"options": [
|
|
{
|
|
"label": "IM站内信",
|
|
"value": "10"
|
|
},
|
|
{
|
|
"label": "PUSH通知栏",
|
|
"value": "20"
|
|
},
|
|
{
|
|
"label": "短信",
|
|
"value": "30"
|
|
},
|
|
{
|
|
"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": ""
|
|
}
|
|
],
|
|
"panelClassName": "Panel--default",
|
|
"bodyClassName": "text-lg"
|
|
}
|
|
]
|
|
}
|