From 8e375d9f4e1310248cf7ffbc116c39355efa74e2 Mon Sep 17 00:00:00 2001 From: 3y Date: Fri, 25 Nov 2022 17:13:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=A0=E9=81=93=E8=B4=A6=E5=8F=B7=E8=B5=B0?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=BA=93=EF=BC=8C=E4=B8=8D=E5=86=8D=E5=86=99?= =?UTF-8?q?=E6=AD=BB=E5=9C=A8=E4=BB=A3=E7=A0=81=E4=B8=AD=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/account-new.json | 4 +- pages/crud-edit.json | 79 +++++++------------------------------- pages/crud-new.json | 75 +++++++----------------------------- pages/crud-view.json | 74 +++++------------------------------ pages/material-upload.json | 50 ++++++++++++++++++------ 5 files changed, 78 insertions(+), 204 deletions(-) diff --git a/pages/account-new.json b/pages/account-new.json index 9cedadd..1fd90d5 100644 --- a/pages/account-new.json +++ b/pages/account-new.json @@ -106,7 +106,7 @@ "visibleOn": "this.sendChannel ==30", "mode": "normal", "inline": true, - "label": "腾讯云账号样例:{\n \"url\": \"sms.tencentcloudapi.com\",\n \"region\": \"ap-guangzhou\",\n \"secretId\": \"234234\",\n \"secretKey\": \"234324324\",\n \"smsSdkAppId\": \"2343242\",\n \"templateId\": \"234234\",\n \"signName\": \"Java3y公众号\",\n \"supplierId\": 10,\n \"supplierName\": \"腾讯云\"\n}

云片账号配置样例:{\n \"url\": \"https://sms.yunpian.com/v2/sms/tpl_batch_send.json\",\n \"apikey\": \"23423432\",\n \"tpl_id\": \"23423432\",\n \"supplierId\": 20,\n \"supplierName\": \"云片\"\n}" + "label": "腾讯云账号样例:{\"url\":\"sms.tencentcloudapi.com\",\"region\":\"ap-guangzhou\",\"secretId\":\"AKIDhDxxxxxxxx1WljQq\",\"secretKey\":\"B4hwww39yxxxrrrrgxyi\",\"smsSdkAppId\":\"1423123125\",\"templateId\":\"1182097\",\"signName\":\"Java3y公众号\",\"supplierId\":10,\"supplierName\":\"腾讯云\",\"scriptName\":\"TencentSmsScript\"}

云片账号配置样例:{\"url\":\"https://sms.yunpian.com/v2/sms/tpl_batch_send.json\",\"apikey\":\"caffff8234234231b5cd7\",\"tpl_id\":\"523333332\",\"supplierId\":20,\"supplierName\":\"云片\",\"scriptName\":\"YunPianSmsScript\"}" }, { "type": "static", @@ -189,7 +189,7 @@ "affixFooter": true, "panelClassName": "Panel--default", "bodyClassName": "text-lg", - "redirect": "/crud/list", + "redirect": "/crud/account/list?page=1", "api": { "url": "http://localhost:8080/account/save", "method": "post", diff --git a/pages/crud-edit.json b/pages/crud-edit.json index 5453b8f..aae38f2 100644 --- a/pages/crud-edit.json +++ b/pages/crud-edit.json @@ -215,17 +215,20 @@ ], "required": true }, + { + "type": "hidden", + "name": "sendAccount", + "value": "0", + "visibleOn": "this.sendChannel == 30" + }, { "type": "input-text", "label": "短信账号", - "name": "sendAccount", "disabled": true, - "value": "0", - "placeholder": "自动会根据消息类型选择发送账号", - "description": "自动会根据消息类型选择发送账号", + "value": "根据【消息类型】按流量分配到对应短信渠道", "visibleOn": "this.sendChannel == 30", "clearValueOnHidden": false, - "required": true, + "required": false, "size": "lg" }, { @@ -252,16 +255,7 @@ "type": "select", "label": "飞书机器人", "name": "sendAccount", - "options": [ - { - "label": "austin", - "value": "10" - }, - { - "label": "athena", - "value": "20" - } - ], + "source": "http://localhost:8080/account/queryByChannelType?channelType=110", "visibleOn": "this.sendChannel == 110", "clearValueOnHidden": false, "required": true, @@ -323,16 +317,7 @@ "type": "select", "label": "推送账号", "name": "sendAccount", - "options": [ - { - "label": "个推", - "value": "10" - }, - { - "label": "信鸽", - "value": "20" - } - ], + "source": "http://localhost:8080/account/queryByChannelType?channelType=20", "visibleOn": "this.sendChannel == 20", "clearValueOnHidden": false, "required": true, @@ -373,16 +358,7 @@ "type": "select", "label": "邮件账号", "name": "sendAccount", - "options": [ - { - "label": "QQ邮箱", - "value": "10" - }, - { - "label": "163邮箱", - "value": "20" - } - ], + "source": "http://localhost:8080/account/queryByChannelType?channelType=40", "visibleOn": "this.sendChannel == 40", "clearValueOnHidden": false, "required": true, @@ -412,16 +388,7 @@ "type": "select", "label": "企业微信应用", "name": "sendAccount", - "options": [ - { - "label": "austin", - "value": "10" - }, - { - "label": "athena", - "value": "20" - } - ], + "source": "http://localhost:8080/account/queryByChannelType?channelType=70", "visibleOn": "this.sendChannel == 70", "clearValueOnHidden": false, "required": true, @@ -431,16 +398,7 @@ "type": "select", "label": "钉钉群机器人", "name": "sendAccount", - "options": [ - { - "label": "austin", - "value": "10" - }, - { - "label": "athena", - "value": "20" - } - ], + "source": "http://localhost:8080/account/queryByChannelType?channelType=80", "visibleOn": "this.sendChannel == 80", "clearValueOnHidden": false, "required": true, @@ -450,16 +408,7 @@ "type": "select", "label": "钉钉应用", "name": "sendAccount", - "options": [ - { - "label": "austin", - "value": "10" - }, - { - "label": "athena", - "value": "20" - } - ], + "source": "http://localhost:8080/account/queryByChannelType?channelType=90", "visibleOn": "this.sendChannel == 90", "clearValueOnHidden": false, "required": true, diff --git a/pages/crud-new.json b/pages/crud-new.json index 1897e98..ee2bdd0 100644 --- a/pages/crud-new.json +++ b/pages/crud-new.json @@ -231,17 +231,20 @@ ], "required": true }, + { + "type": "hidden", + "name": "sendAccount", + "value": "0", + "visibleOn": "this.sendChannel == 30" + }, { "type": "input-text", "label": "短信账号", - "name": "sendAccount", "disabled": true, - "value": "0", - "placeholder": "自动会根据消息类型选择发送账号", - "description": "自动会根据消息类型选择发送账号", + "value": "根据【消息类型】按流量分配到对应短信渠道", "visibleOn": "this.sendChannel == 30", "clearValueOnHidden": false, - "required": true, + "required": false, "size": "lg" }, { @@ -268,12 +271,7 @@ "type": "select", "label": "发送账号", "name": "sendAccount", - "options": [ - { - "label": "个推", - "value": "10" - } - ], + "source": "http://localhost:8080/account/queryByChannelType?channelType=20", "visibleOn": "this.sendChannel == 20", "clearValueOnHidden": false, "required": true, @@ -315,16 +313,7 @@ "type": "select", "label": "邮件账号", "name": "sendAccount", - "options": [ - { - "label": "QQ邮箱", - "value": "10" - }, - { - "label": "163邮箱", - "value": "20" - } - ], + "source": "http://localhost:8080/account/queryByChannelType?channelType=40", "visibleOn": "this.sendChannel == 40", "clearValueOnHidden": false, "required": true, @@ -354,16 +343,7 @@ "type": "select", "label": "飞书机器人", "name": "sendAccount", - "options": [ - { - "label": "austin", - "value": "10" - }, - { - "label": "athena", - "value": "20" - } - ], + "source": "http://localhost:8080/account/queryByChannelType?channelType=110", "visibleOn": "this.sendChannel == 110", "clearValueOnHidden": false, "required": true, @@ -425,16 +405,7 @@ "type": "select", "label": "企业微信应用", "name": "sendAccount", - "options": [ - { - "label": "austin", - "value": "10" - }, - { - "label": "athena", - "value": "20" - } - ], + "source": "http://localhost:8080/account/queryByChannelType?channelType=70", "visibleOn": "this.sendChannel == 70", "clearValueOnHidden": false, "required": true, @@ -444,16 +415,7 @@ "type": "select", "label": "钉钉群机器人", "name": "sendAccount", - "options": [ - { - "label": "austin", - "value": "10" - }, - { - "label": "athena", - "value": "20" - } - ], + "source": "http://localhost:8080/account/queryByChannelType?channelType=80", "visibleOn": "this.sendChannel == 80", "clearValueOnHidden": false, "required": true, @@ -463,16 +425,7 @@ "type": "select", "label": "钉钉应用", "name": "sendAccount", - "options": [ - { - "label": "austin", - "value": "10" - }, - { - "label": "athena", - "value": "20" - } - ], + "source": "http://localhost:8080/account/queryByChannelType?channelType=90", "visibleOn": "this.sendChannel == 90", "clearValueOnHidden": false, "required": true, diff --git a/pages/crud-view.json b/pages/crud-view.json index ef1da47..567e7a9 100644 --- a/pages/crud-view.json +++ b/pages/crud-view.json @@ -212,14 +212,11 @@ { "type": "input-text", "label": "短信账号", - "name": "sendAccount", "disabled": true, - "value": "0", - "placeholder": "自动会根据消息类型选择发送账号", - "description": "自动会根据消息类型选择发送账号", + "value": "根据【消息类型】按流量分配到对应短信渠道", "visibleOn": "this.sendChannel == 30", "clearValueOnHidden": false, - "required": true, + "required": false, "size": "lg" }, { @@ -246,16 +243,7 @@ "type": "select", "label": "飞书机器人", "name": "sendAccount", - "options": [ - { - "label": "austin", - "value": "10" - }, - { - "label": "athena", - "value": "20" - } - ], + "source": "http://localhost:8080/account/queryByChannelType?channelType=110", "visibleOn": "this.sendChannel == 110", "clearValueOnHidden": false, "required": true, @@ -317,16 +305,7 @@ "type": "select", "label": "推送账号", "name": "sendAccount", - "options": [ - { - "label": "个推", - "value": "10" - }, - { - "label": "信鸽", - "value": "20" - } - ], + "source": "http://localhost:8080/account/queryByChannelType?channelType=20", "visibleOn": "this.sendChannel == 20", "clearValueOnHidden": false, "required": true, @@ -368,16 +347,7 @@ "type": "select", "label": "邮件账号", "name": "sendAccount", - "options": [ - { - "label": "QQ邮箱", - "value": "10" - }, - { - "label": "163邮箱", - "value": "20" - } - ], + "source": "http://localhost:8080/account/queryByChannelType?channelType=40", "visibleOn": "this.sendChannel == 40", "clearValueOnHidden": false, "required": true, @@ -406,16 +376,8 @@ "type": "select", "label": "企业微信应用", "name": "sendAccount", - "options": [ - { - "label": "austin", - "value": "10" - }, - { - "label": "athena", - "value": "20" - } - ], + "source": "http://localhost:8080/account/queryByChannelType?channelType=70", + "visibleOn": "this.sendChannel == 70", "clearValueOnHidden": false, "required": true, @@ -425,16 +387,7 @@ "type": "select", "label": "钉钉群机器人", "name": "sendAccount", - "options": [ - { - "label": "austin", - "value": "10" - }, - { - "label": "athena", - "value": "20" - } - ], + "source": "http://localhost:8080/account/queryByChannelType?channelType=80", "visibleOn": "this.sendChannel == 80", "clearValueOnHidden": false, "required": true, @@ -444,16 +397,7 @@ "type": "select", "label": "钉钉应用账号", "name": "sendAccount", - "options": [ - { - "label": "austin", - "value": "10" - }, - { - "label": "athena", - "value": "20" - } - ], + "source": "http://localhost:8080/account/queryByChannelType?channelType=90", "visibleOn": "this.sendChannel == 90", "clearValueOnHidden": false, "required": true, diff --git a/pages/material-upload.json b/pages/material-upload.json index 39daacf..2627f61 100644 --- a/pages/material-upload.json +++ b/pages/material-upload.json @@ -6,6 +6,7 @@ "label": "渠道类型", "type": "radios", "name": "sendChannel", + "required": true, "options": [ { "label": "服务号", @@ -27,23 +28,49 @@ }, { "type": "select", - "label": "渠道账号", + "label": "服务号账号", "name": "sendAccount", - "options": [ - { - "label": "austin", - "value": "10" - }, - { - "label": "athena", - "value": "20" - } - ] + "source": "http://localhost:8080/account/queryByChannelType?channelType=50", + "visibleOn": "this.sendChannel == 50", + "clearValueOnHidden": false, + "required": true, + "size": "lg" + }, + { + "type": "select", + "label": "小程序账号", + "name": "sendAccount", + "source": "http://localhost:8080/account/queryByChannelType?channelType=60", + "visibleOn": "this.sendChannel == 60", + "clearValueOnHidden": false, + "required": true, + "size": "lg" + }, + { + "type": "select", + "label": "企业微信账号", + "name": "sendAccount", + "source": "http://localhost:8080/account/queryByChannelType?channelType=70", + "visibleOn": "this.sendChannel == 70", + "clearValueOnHidden": false, + "required": true, + "size": "lg" + }, + { + "type": "select", + "label": "钉钉工作消息账号", + "name": "sendAccount", + "source": "http://localhost:8080/account/queryByChannelType?channelType=90", + "visibleOn": "this.sendChannel == 90", + "clearValueOnHidden": false, + "required": true, + "size": "lg" }, { "type": "radios", "label": "文件类型", "name": "fileType", + "required": true, "options": [ { "label": "图片", @@ -67,6 +94,7 @@ "type": "input-file", "label": "上传素材", "name": "file", + "required": true, "asBlob": true }, {