增加 定时任务 信息

master
3y 3 years ago
parent f36a5f45e6
commit 14982308a6

@ -1,14 +1,6 @@
{ {
"type": "page", "type": "page",
"title": "修改当前模板", "title": "修改当前模板",
"toolbar": [
{
"type": "button",
"actionType": "link",
"link": "/crud/list",
"label": "返回列表"
}
],
"body": [ "body": [
{ {
"type": "form", "type": "form",
@ -49,6 +41,7 @@
"proposer": "${proposer}", "proposer": "${proposer}",
"sendChannel": "${sendChannel}", "sendChannel": "${sendChannel}",
"sendAccount": "${sendAccount}", "sendAccount": "${sendAccount}",
"cronCrowdId": "${cronCrowdId}",
"msgContent": "{\"content\":\"${content}\",\"url\":\"${url}\",\"title\":\"${title}\"}" "msgContent": "{\"content\":\"${content}\",\"url\":\"${url}\",\"title\":\"${title}\"}"
} }
}, },
@ -64,6 +57,14 @@
"size": "md", "size": "md",
"required": true "required": true
}, },
{
"type": "input-text",
"label": "模板业务方",
"name": "proposer",
"size": "md",
"mode": "",
"description": ""
},
{ {
"type": "radios", "type": "radios",
"label": "接收者Id类型", "label": "接收者Id类型",
@ -136,15 +137,20 @@
"visibleOn": "this.templateType == 10", "visibleOn": "this.templateType == 10",
"clearValueOnHidden": false, "clearValueOnHidden": false,
"visible": "", "visible": "",
"required": true "required": true,
"description": "1、<font color=\"#008252\">生成cron表达式页面<a href=\"https://www.matools.com/cron\" target=\"_blank\">https://www.matools.com/cron</a></font></br>\n2、<font color=\"#008252\">需要【立即发送】时填0</font>",
"placeholder": "需要【立即发送】时填0"
}, },
{ {
"type": "input-text", "type": "input-text",
"label": "模板业务方", "label": "人群Id",
"name": "proposer", "name": "cronCrowdId",
"size": "md", "size": "md",
"mode": "", "visibleOn": "this.templateType == 10",
"description": "" "clearValueOnHidden": false,
"visible": "",
"required": true,
"placeholder": "目前只填写需要接收消息者的ID"
} }
], ],
"className": "Collapse--lg", "className": "Collapse--lg",
@ -225,6 +231,25 @@
"clearValueOnHidden": false, "clearValueOnHidden": false,
"placeholder": "可用占位符{$url}" "placeholder": "可用占位符{$url}"
}, },
{
"type": "select",
"label": "邮件账号",
"name": "sendAccount",
"options": [
{
"label": "QQ邮箱",
"value": "10"
},
{
"label": "163邮箱",
"value": "20"
}
],
"visibleOn": "this.sendChannel == 40",
"clearValueOnHidden": false,
"required": true,
"size": "lg"
},
{ {
"type": "input-text", "type": "input-text",
"label": "邮件标题", "label": "邮件标题",
@ -254,9 +279,15 @@
"bodyClassName": "text-lg" "bodyClassName": "text-lg"
} }
], ],
"messages": { "toolbar": [
}, {
"style": { "type": "button",
}, "actionType": "link",
"link": "/crud/list",
"label": "返回列表"
}
],
"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" "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,23 +1,12 @@
{ {
"type": "page", "type": "page",
"title": "列表管理", "title": "列表管理",
"remark": null,
"name": "page-demo",
"toolbar": [
{
"type": "button",
"actionType": "link",
"link": "/crud/new",
"icon": "fa fa-plus",
"label": "新增",
"primary": true
}
],
"body": [ "body": [
{ {
"type": "crud", "type": "crud",
"name": "sample",
"api": "http://localhost:8080/messageTemplate/list", "api": "http://localhost:8080/messageTemplate/list",
"bodyClassName": "panel-default",
"name": "sample",
"filter": { "filter": {
"title": "", "title": "",
"mode": "inline", "mode": "inline",
@ -195,6 +184,24 @@
"actionType": "link", "actionType": "link",
"link": "/crud/${id}/edit" "link": "/crud/${id}/edit"
}, },
{
"type": "button",
"label": "启动",
"level": "success",
"actionType": "ajax",
"confirmText": "您确认要启动吗?",
"api": "post:http://localhost:8080/messageTemplate/start/$id",
"visibleOn": "this.templateType==10 && this.msgStatus!=30"
},
{
"type": "button",
"label": "停止",
"level": "success",
"actionType": "ajax",
"confirmText": "您确认要暂停吗?",
"api": "post:http://localhost:8080/messageTemplate/stop/$id",
"visibleOn": "this.templateType==10 && this.msgStatus==30"
},
{ {
"type": "button", "type": "button",
"label": "复制", "label": "复制",
@ -225,8 +232,19 @@
"headerClassName": "crud-table-header", "headerClassName": "crud-table-header",
"footerClassName": "crud-table-footer", "footerClassName": "crud-table-footer",
"toolbarClassName": "crud-table-toolbar", "toolbarClassName": "crud-table-toolbar",
"combineNum": 0, "combineNum": 0
"bodyClassName": "panel-default"
} }
] ],
"toolbar": [
{
"type": "button",
"actionType": "link",
"link": "/crud/new",
"label": "新增",
"icon": "fa fa-plus",
"primary": true
}
],
"remark": null,
"name": "page-demo"
} }

@ -20,6 +20,7 @@
"proposer": "${proposer}", "proposer": "${proposer}",
"sendChannel": "${sendChannel}", "sendChannel": "${sendChannel}",
"sendAccount": "${sendAccount}", "sendAccount": "${sendAccount}",
"cronCrowdId": "${cronCrowdId}",
"msgContent": "{\"content\":\"${content}\",\"url\":\"${url}\",\"title\":\"${title}\"}" "msgContent": "{\"content\":\"${content}\",\"url\":\"${url}\",\"title\":\"${title}\"}"
} }
}, },
@ -42,6 +43,14 @@
"size": "md", "size": "md",
"required": true "required": true
}, },
{
"type": "input-text",
"label": "模板业务方",
"name": "proposer",
"size": "md",
"mode": "",
"description": ""
},
{ {
"type": "radios", "type": "radios",
"label": "接收者Id类型", "label": "接收者Id类型",
@ -114,15 +123,20 @@
"visibleOn": "this.templateType == 10", "visibleOn": "this.templateType == 10",
"clearValueOnHidden": false, "clearValueOnHidden": false,
"visible": "", "visible": "",
"required": true "required": true,
"description": "1、<font color=\"#008252\">生成cron表达式页面<a href=\"https://www.matools.com/cron\" target=\"_blank\">https://www.matools.com/cron</a></font></br>\n2、<font color=\"#008252\">需要【立即发送】时填0</font>",
"placeholder": "需要【立即发送】时填0"
}, },
{ {
"type": "input-text", "type": "input-text",
"label": "模板业务方", "label": "人群Id",
"name": "proposer", "name": "cronCrowdId",
"size": "md", "size": "md",
"mode": "", "visibleOn": "this.templateType == 10",
"description": "" "clearValueOnHidden": false,
"visible": "",
"required": true,
"placeholder": "目前只填写需要接收消息者的ID"
} }
], ],
"className": "Collapse--lg", "className": "Collapse--lg",

@ -29,6 +29,14 @@
"size": "md", "size": "md",
"required": true "required": true
}, },
{
"type": "input-text",
"label": "模板业务方",
"name": "proposer",
"size": "md",
"mode": "",
"description": ""
},
{ {
"type": "radios", "type": "radios",
"label": "接收者Id类型", "label": "接收者Id类型",
@ -101,15 +109,20 @@
"visibleOn": "this.templateType == 10", "visibleOn": "this.templateType == 10",
"clearValueOnHidden": false, "clearValueOnHidden": false,
"visible": "", "visible": "",
"required": true "required": true,
"description": "1、<font color=\"#008252\">生成cron表达式页面<a href=\"https://www.matools.com/cron\" target=\"_blank\">https://www.matools.com/cron</a></font></br>\n2、<font color=\"#008252\">需要【立即发送】时填0</font>",
"placeholder": "需要【立即发送】时填0"
}, },
{ {
"type": "input-text", "type": "input-text",
"label": "模板业务方", "label": "人群Id",
"name": "proposer", "name": "cronCrowdId",
"size": "md", "size": "md",
"mode": "", "visibleOn": "this.templateType == 10",
"description": "" "clearValueOnHidden": false,
"visible": "",
"required": true,
"placeholder": "目前只填写需要接收消息者的ID"
} }
], ],
"className": "Collapse--lg", "className": "Collapse--lg",
@ -178,7 +191,8 @@
"visibleOn": "this.sendChannel == 30", "visibleOn": "this.sendChannel == 30",
"mode": "", "mode": "",
"size": "lg", "size": "lg",
"clearValueOnHidden": false "clearValueOnHidden": false,
"placeholder": "可用占位符{$content}"
}, },
{ {
"type": "input-text", "type": "input-text",
@ -186,7 +200,27 @@
"name": "url", "name": "url",
"visibleOn": "this.sendChannel == 30", "visibleOn": "this.sendChannel == 30",
"size": "lg", "size": "lg",
"clearValueOnHidden": false "clearValueOnHidden": false,
"placeholder": "可用占位符{$url}"
},
{
"type": "select",
"label": "邮件账号",
"name": "sendAccount",
"options": [
{
"label": "QQ邮箱",
"value": "10"
},
{
"label": "163邮箱",
"value": "20"
}
],
"visibleOn": "this.sendChannel == 40",
"clearValueOnHidden": false,
"required": true,
"size": "lg"
}, },
{ {
"type": "input-text", "type": "input-text",
@ -195,7 +229,8 @@
"required": true, "required": true,
"visibleOn": "this.sendChannel == 40", "visibleOn": "this.sendChannel == 40",
"size": "lg", "size": "lg",
"clearValueOnHidden": false "clearValueOnHidden": false,
"placeholder": "可用占位符{$title}"
}, },
{ {
"type": "input-text", "type": "input-text",
@ -205,7 +240,7 @@
"visibleOn": "this.sendChannel == 40", "visibleOn": "this.sendChannel == 40",
"size": "lg", "size": "lg",
"clearValueOnHidden": false, "clearValueOnHidden": false,
"placeholder": "可用占位符{$var}可输入HTML" "placeholder": "可用占位符{$content}可输入HTML"
} }
], ],
"className": "Collapse--lg", "className": "Collapse--lg",

Loading…
Cancel
Save