diff --git a/pages/crud-edit.json b/pages/crud-edit.json
index e220a0f..310f149 100644
--- a/pages/crud-edit.json
+++ b/pages/crud-edit.json
@@ -3,8 +3,6 @@
"title": "修改当前模板",
"body": [
{
- "type": "form",
- "mode": "horizontal",
"title": "",
"actions": [
{
@@ -13,38 +11,6 @@
"level": "success"
}
],
- "affixFooter": true,
- "initApi": "http://localhost:8080/messageTemplate/query/${params.id}",
- "redirect": "/crud/list",
- "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}",
- "cronCrowdId": "${cronCrowdId}",
- "msgContent": "{\"content\":\"${content}\",\"url\":\"${url}\",\"title\":\"${title}\"}"
- }
- },
"body": [
{
"type": "fieldSet",
@@ -138,32 +104,33 @@
"clearValueOnHidden": false,
"visible": "",
"required": true,
- "description": "1、生成cron表达式页面:https://www.matools.com/cron\n2、需要【立即发送】时填0",
+ "description": "1、生成cron表达式页面:https://www.matools.com/cron 2、需要【立即发送】时填0",
"placeholder": "需要【立即发送】时填0"
},
{
"type": "input-text",
- "label": "人群Id",
- "name": "cronCrowdId",
- "size": "md",
+ "name": "cronCrowdPath",
"visibleOn": "this.templateType == 10",
+ "required": true,
+ "label": "人群文件路径",
+ "size": "md",
"clearValueOnHidden": false,
"visible": "",
- "required": true,
- "placeholder": "目前只填写需要接收消息者的ID"
+ "readOnly": true,
+ "placeholder": "上传成功后自动填写(无须编辑)"
}
],
- "className": "Collapse--lg",
- "bodyClassName": "r-3x w-full text-lg r font-bold"
+ "bodyClassName": "r-3x w-full text-lg r font-bold",
+ "className": ""
},
{
"type": "fieldSet",
"title": "渠道信息",
"body": [
{
- "type": "radios",
- "label": "发送渠道",
"name": "sendChannel",
+ "label": "发送渠道",
+ "type": "radios",
"options": [
{
"label": "IM站内信",
@@ -212,9 +179,9 @@
"size": "lg"
},
{
+ "name": "content",
"type": "input-text",
"label": "短信内容",
- "name": "content",
"required": true,
"visibleOn": "this.sendChannel == 30",
"mode": "",
@@ -271,12 +238,46 @@
"placeholder": "可用占位符{$content},可输入HTML"
}
],
- "className": "Collapse--lg",
+ "className": "",
"bodyClassName": "r-3x w-full text-lg r font-bold"
}
],
+ "type": "form",
+ "mode": "horizontal",
+ "affixFooter": true,
"panelClassName": "Panel--default",
- "bodyClassName": "text-lg"
+ "bodyClassName": "text-lg",
+ "redirect": "/crud/list",
+ "api": {
+ "url": "http://localhost:8080/messageTemplate/save",
+ "method": "post",
+ "data": {
+ "name": "${name}",
+ "idType": "${idType}",
+ "msgType": "${msgType}",
+ "templateType": "${templateType}",
+ "expectPushTime": "${expectPushTime}",
+ "proposer": "${proposer}",
+ "sendChannel": "${sendChannel}",
+ "sendAccount": "${sendAccount}",
+ "cronCrowdPath": "${cronCrowdPath}",
+ "msgContent": "{\"content\":\"${content}\",\"url\":\"${url}\",\"title\":\"${title}\"}",
+ "id": "${id}",
+ "flowId": "${flowId}",
+ "msgStatus": "${msgStatus}",
+ "auditStatus": "${auditStatus}",
+ "creator": "${creator}",
+ "updator": "${updator}",
+ "team": "${team}",
+ "auditor": "${auditor}",
+ "deduplicationTime": "${deduplicationTime}",
+ "isNightShield": "${isNightShield}",
+ "created": "${created}",
+ "updated": "${updated}",
+ "isDeleted": "${isDeleted}"
+ }
+ },
+ "initApi": "http://localhost:8080/messageTemplate/query/${params.id}"
}
],
"toolbar": [
diff --git a/pages/crud-new.json b/pages/crud-new.json
index 31973f1..538597d 100644
--- a/pages/crud-new.json
+++ b/pages/crud-new.json
@@ -3,27 +3,7 @@
"title": "新建消息模板配置",
"body": [
{
- "type": "form",
- "mode": "horizontal",
"title": "",
- "affixFooter": true,
- "redirect": "/crud/list",
- "api": {
- "url": "http://localhost:8080/messageTemplate/save",
- "method": "post",
- "data": {
- "name": "${name}",
- "idType": "${idType}",
- "msgType": "${msgType}",
- "templateType": "${templateType}",
- "expectPushTime": "${expectPushTime}",
- "proposer": "${proposer}",
- "sendChannel": "${sendChannel}",
- "sendAccount": "${sendAccount}",
- "cronCrowdId": "${cronCrowdId}",
- "msgContent": "{\"content\":\"${content}\",\"url\":\"${url}\",\"title\":\"${title}\"}"
- }
- },
"actions": [
{
"label": "保存",
@@ -124,32 +104,49 @@
"clearValueOnHidden": false,
"visible": "",
"required": true,
- "description": "1、生成cron表达式页面:https://www.matools.com/cron\n2、需要【立即发送】时填0",
+ "description": "1、生成cron表达式页面:https://www.matools.com/cron 2、需要【立即发送】时填0",
"placeholder": "需要【立即发送】时填0"
},
+ {
+ "type": "input-file",
+ "name": "file",
+ "visibleOn": "this.templateType == 10",
+ "required": true,
+ "label": "人群文件上传",
+ "accept": ".csv",
+ "receiver": "http://localhost:8080/messageTemplate/upload",
+ "remark": null,
+ "labelRemark": null,
+ "mode": "",
+ "description": "1、文件格式:csv文件 2、内容格式:列名userId,占位符变量1,占位符变量2",
+ "autoFill": {
+ "cronCrowdPath": "${value}"
+ }
+ },
{
"type": "input-text",
- "label": "人群Id",
- "name": "cronCrowdId",
+ "name": "cronCrowdPath",
"size": "md",
"visibleOn": "this.templateType == 10",
"clearValueOnHidden": false,
"visible": "",
"required": true,
- "placeholder": "目前只填写需要接收消息者的ID"
+ "readOnly": true,
+ "label": "人群文件路径",
+ "placeholder": "上传成功后自动填写(无须编辑)"
}
],
- "className": "Collapse--lg",
- "bodyClassName": "r-3x w-full text-lg r font-bold"
+ "bodyClassName": "r-3x w-full text-lg r font-bold",
+ "className": ""
},
{
"type": "fieldSet",
"title": "渠道信息",
"body": [
{
- "type": "radios",
- "label": "发送渠道",
"name": "sendChannel",
+ "label": "发送渠道",
+ "type": "radios",
"options": [
{
"label": "IM站内信",
@@ -198,9 +195,9 @@
"size": "lg"
},
{
+ "name": "content",
"type": "input-text",
"label": "短信内容",
- "name": "content",
"required": true,
"visibleOn": "this.sendChannel == 30",
"mode": "",
@@ -257,12 +254,32 @@
"placeholder": "可用占位符{$content},可输入HTML"
}
],
- "className": "Collapse--lg",
+ "className": "",
"bodyClassName": "r-3x w-full text-lg r font-bold"
}
],
+ "type": "form",
+ "mode": "horizontal",
+ "affixFooter": true,
"panelClassName": "Panel--default",
- "bodyClassName": "text-lg"
+ "bodyClassName": "text-lg",
+ "redirect": "/crud/list",
+ "api": {
+ "url": "http://localhost:8080/messageTemplate/save",
+ "method": "post",
+ "data": {
+ "name": "${name}",
+ "idType": "${idType}",
+ "msgType": "${msgType}",
+ "templateType": "${templateType}",
+ "expectPushTime": "${expectPushTime}",
+ "proposer": "${proposer}",
+ "sendChannel": "${sendChannel}",
+ "sendAccount": "${sendAccount}",
+ "cronCrowdPath": "${cronCrowdPath}",
+ "msgContent": "{\"content\":\"${content}\",\"url\":\"${url}\",\"title\":\"${title}\"}"
+ }
+ }
}
],
"toolbar": [
diff --git a/pages/crud-view.json b/pages/crud-view.json
index 9a929b1..3667e17 100644
--- a/pages/crud-view.json
+++ b/pages/crud-view.json
@@ -1,22 +1,10 @@
{
"type": "page",
"title": "查看模板详情",
- "toolbar": [
- {
- "type": "button",
- "actionType": "link",
- "link": "/crud/list",
- "label": "返回列表"
- }
- ],
"body": [
{
- "type": "form",
- "mode": "horizontal",
"title": "",
"actions": [],
- "affixFooter": true,
- "initApi": "http://localhost:8080/messageTemplate/query/${params.id}",
"body": [
{
"type": "fieldSet",
@@ -110,32 +98,33 @@
"clearValueOnHidden": false,
"visible": "",
"required": true,
- "description": "1、生成cron表达式页面:https://www.matools.com/cron\n2、需要【立即发送】时填0",
+ "description": "1、生成cron表达式页面:https://www.matools.com/cron 2、需要【立即发送】时填0",
"placeholder": "需要【立即发送】时填0"
},
{
"type": "input-text",
- "label": "人群Id",
- "name": "cronCrowdId",
- "size": "md",
+ "name": "cronCrowdPath",
"visibleOn": "this.templateType == 10",
+ "required": true,
+ "label": "人群文件路径",
+ "size": "md",
"clearValueOnHidden": false,
"visible": "",
- "required": true,
- "placeholder": "目前只填写需要接收消息者的ID"
+ "readOnly": true,
+ "placeholder": "上传成功后自动填写(无须编辑)"
}
],
- "className": "Collapse--lg",
- "bodyClassName": "r-3x w-full text-lg r font-bold"
+ "bodyClassName": "r-3x w-full text-lg r font-bold",
+ "className": ""
},
{
"type": "fieldSet",
"title": "渠道信息",
"body": [
{
- "type": "radios",
- "label": "发送渠道",
"name": "sendChannel",
+ "label": "发送渠道",
+ "type": "radios",
"options": [
{
"label": "IM站内信",
@@ -184,9 +173,9 @@
"size": "lg"
},
{
+ "name": "content",
"type": "input-text",
"label": "短信内容",
- "name": "content",
"required": true,
"visibleOn": "this.sendChannel == 30",
"mode": "",
@@ -243,17 +232,27 @@
"placeholder": "可用占位符{$content},可输入HTML"
}
],
- "className": "Collapse--lg",
+ "className": "",
"bodyClassName": "r-3x w-full text-lg r font-bold"
}
],
+ "type": "form",
+ "mode": "horizontal",
+ "affixFooter": true,
"panelClassName": "Panel--default",
- "bodyClassName": "text-lg"
+ "bodyClassName": "text-lg",
+ "initApi": "http://localhost:8080/messageTemplate/query/${params.id}"
+ }
+ ],
+ "toolbar": [
+ {
+ "type": "button",
+ "actionType": "link",
+ "link": "/crud/list",
+ "label": "返回列表"
}
],
- "messages": {
- },
- "style": {
- },
+ "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"
}
\ No newline at end of file