文件上传处理

master
3y 3 years ago
parent 14982308a6
commit 21df31b5d4

@ -3,8 +3,6 @@
"title": "修改当前模板", "title": "修改当前模板",
"body": [ "body": [
{ {
"type": "form",
"mode": "horizontal",
"title": "", "title": "",
"actions": [ "actions": [
{ {
@ -13,38 +11,6 @@
"level": "success" "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": [ "body": [
{ {
"type": "fieldSet", "type": "fieldSet",
@ -138,32 +104,33 @@
"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>", "description": "1、<font color=\"#008252\">生成cron表达式页面<a href=\"https://www.matools.com/cron\" target=\"_blank\">https://www.matools.com/cron</a></font> 2、<font color=\"#008252\">需要【立即发送】时填0</font>",
"placeholder": "需要【立即发送】时填0" "placeholder": "需要【立即发送】时填0"
}, },
{ {
"type": "input-text", "type": "input-text",
"label": "人群Id", "name": "cronCrowdPath",
"name": "cronCrowdId",
"size": "md",
"visibleOn": "this.templateType == 10", "visibleOn": "this.templateType == 10",
"required": true,
"label": "人群文件路径",
"size": "md",
"clearValueOnHidden": false, "clearValueOnHidden": false,
"visible": "", "visible": "",
"required": true, "readOnly": true,
"placeholder": "目前只填写需要接收消息者的ID" "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", "type": "fieldSet",
"title": "渠道信息", "title": "渠道信息",
"body": [ "body": [
{ {
"type": "radios",
"label": "发送渠道",
"name": "sendChannel", "name": "sendChannel",
"label": "发送渠道",
"type": "radios",
"options": [ "options": [
{ {
"label": "IM站内信", "label": "IM站内信",
@ -212,9 +179,9 @@
"size": "lg" "size": "lg"
}, },
{ {
"name": "content",
"type": "input-text", "type": "input-text",
"label": "短信内容", "label": "短信内容",
"name": "content",
"required": true, "required": true,
"visibleOn": "this.sendChannel == 30", "visibleOn": "this.sendChannel == 30",
"mode": "", "mode": "",
@ -271,12 +238,46 @@
"placeholder": "可用占位符{$content}可输入HTML" "placeholder": "可用占位符{$content}可输入HTML"
} }
], ],
"className": "Collapse--lg", "className": "",
"bodyClassName": "r-3x w-full text-lg r font-bold" "bodyClassName": "r-3x w-full text-lg r font-bold"
} }
], ],
"type": "form",
"mode": "horizontal",
"affixFooter": true,
"panelClassName": "Panel--default", "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": [ "toolbar": [

@ -3,27 +3,7 @@
"title": "新建消息模板配置", "title": "新建消息模板配置",
"body": [ "body": [
{ {
"type": "form",
"mode": "horizontal",
"title": "", "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": [ "actions": [
{ {
"label": "保存", "label": "保存",
@ -124,32 +104,49 @@
"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>", "description": "1、<font color=\"#008252\">生成cron表达式页面<a href=\"https://www.matools.com/cron\" target=\"_blank\">https://www.matools.com/cron</a></font> 2、<font color=\"#008252\">需要【立即发送】时填0</font>",
"placeholder": "需要【立即发送】时填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、<font color=\"#008252\">文件格式csv文件</font> 2、<font color=\"#008252\">内容格式列名userId,占位符变量1,占位符变量2</font>",
"autoFill": {
"cronCrowdPath": "${value}"
}
},
{ {
"type": "input-text", "type": "input-text",
"label": "人群Id", "name": "cronCrowdPath",
"name": "cronCrowdId",
"size": "md", "size": "md",
"visibleOn": "this.templateType == 10", "visibleOn": "this.templateType == 10",
"clearValueOnHidden": false, "clearValueOnHidden": false,
"visible": "", "visible": "",
"required": true, "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", "type": "fieldSet",
"title": "渠道信息", "title": "渠道信息",
"body": [ "body": [
{ {
"type": "radios",
"label": "发送渠道",
"name": "sendChannel", "name": "sendChannel",
"label": "发送渠道",
"type": "radios",
"options": [ "options": [
{ {
"label": "IM站内信", "label": "IM站内信",
@ -198,9 +195,9 @@
"size": "lg" "size": "lg"
}, },
{ {
"name": "content",
"type": "input-text", "type": "input-text",
"label": "短信内容", "label": "短信内容",
"name": "content",
"required": true, "required": true,
"visibleOn": "this.sendChannel == 30", "visibleOn": "this.sendChannel == 30",
"mode": "", "mode": "",
@ -257,12 +254,32 @@
"placeholder": "可用占位符{$content}可输入HTML" "placeholder": "可用占位符{$content}可输入HTML"
} }
], ],
"className": "Collapse--lg", "className": "",
"bodyClassName": "r-3x w-full text-lg r font-bold" "bodyClassName": "r-3x w-full text-lg r font-bold"
} }
], ],
"type": "form",
"mode": "horizontal",
"affixFooter": true,
"panelClassName": "Panel--default", "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": [ "toolbar": [

@ -1,22 +1,10 @@
{ {
"type": "page", "type": "page",
"title": "查看模板详情", "title": "查看模板详情",
"toolbar": [
{
"type": "button",
"actionType": "link",
"link": "/crud/list",
"label": "返回列表"
}
],
"body": [ "body": [
{ {
"type": "form",
"mode": "horizontal",
"title": "", "title": "",
"actions": [], "actions": [],
"affixFooter": true,
"initApi": "http://localhost:8080/messageTemplate/query/${params.id}",
"body": [ "body": [
{ {
"type": "fieldSet", "type": "fieldSet",
@ -110,32 +98,33 @@
"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>", "description": "1、<font color=\"#008252\">生成cron表达式页面<a href=\"https://www.matools.com/cron\" target=\"_blank\">https://www.matools.com/cron</a></font> 2、<font color=\"#008252\">需要【立即发送】时填0</font>",
"placeholder": "需要【立即发送】时填0" "placeholder": "需要【立即发送】时填0"
}, },
{ {
"type": "input-text", "type": "input-text",
"label": "人群Id", "name": "cronCrowdPath",
"name": "cronCrowdId",
"size": "md",
"visibleOn": "this.templateType == 10", "visibleOn": "this.templateType == 10",
"required": true,
"label": "人群文件路径",
"size": "md",
"clearValueOnHidden": false, "clearValueOnHidden": false,
"visible": "", "visible": "",
"required": true, "readOnly": true,
"placeholder": "目前只填写需要接收消息者的ID" "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", "type": "fieldSet",
"title": "渠道信息", "title": "渠道信息",
"body": [ "body": [
{ {
"type": "radios",
"label": "发送渠道",
"name": "sendChannel", "name": "sendChannel",
"label": "发送渠道",
"type": "radios",
"options": [ "options": [
{ {
"label": "IM站内信", "label": "IM站内信",
@ -184,9 +173,9 @@
"size": "lg" "size": "lg"
}, },
{ {
"name": "content",
"type": "input-text", "type": "input-text",
"label": "短信内容", "label": "短信内容",
"name": "content",
"required": true, "required": true,
"visibleOn": "this.sendChannel == 30", "visibleOn": "this.sendChannel == 30",
"mode": "", "mode": "",
@ -243,17 +232,27 @@
"placeholder": "可用占位符{$content}可输入HTML" "placeholder": "可用占位符{$content}可输入HTML"
} }
], ],
"className": "Collapse--lg", "className": "",
"bodyClassName": "r-3x w-full text-lg r font-bold" "bodyClassName": "r-3x w-full text-lg r font-bold"
} }
], ],
"type": "form",
"mode": "horizontal",
"affixFooter": true,
"panelClassName": "Panel--default", "panelClassName": "Panel--default",
"bodyClassName": "text-lg" "bodyClassName": "text-lg",
"initApi": "http://localhost:8080/messageTemplate/query/${params.id}"
} }
], ],
"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"
} }
Loading…
Cancel
Save