|
|
@@ -3,46 +3,10 @@ import { DescItem } from '/@/components/Description';
|
|
|
import { BasicColumn, FormSchema } from '/@/components/Table';
|
|
|
|
|
|
export const columns: BasicColumn[] = [
|
|
|
- {
|
|
|
- title: '渠道id',
|
|
|
- dataIndex: 'channelId',
|
|
|
- },
|
|
|
- {
|
|
|
- title: '模板id',
|
|
|
- dataIndex: 'templateId',
|
|
|
- },
|
|
|
- {
|
|
|
- title: '模板编码',
|
|
|
- dataIndex: 'templateCode',
|
|
|
- },
|
|
|
- {
|
|
|
- title: '模板类型',
|
|
|
- dataIndex: 'templateType',
|
|
|
- },
|
|
|
- {
|
|
|
- title: '模板参数',
|
|
|
- dataIndex: 'templateParams',
|
|
|
- },
|
|
|
- {
|
|
|
- title: '模板内容',
|
|
|
- dataIndex: 'templateContent',
|
|
|
- },
|
|
|
- {
|
|
|
- title: '短信API的模板编号',
|
|
|
- dataIndex: 'apiTemplateId',
|
|
|
- },
|
|
|
{
|
|
|
title: '手机号',
|
|
|
dataIndex: 'mobile',
|
|
|
},
|
|
|
- {
|
|
|
- title: '接收用户id',
|
|
|
- dataIndex: 'userid',
|
|
|
- },
|
|
|
- {
|
|
|
- title: '用户类型',
|
|
|
- dataIndex: 'userType',
|
|
|
- },
|
|
|
{
|
|
|
title: '发送状态',
|
|
|
dataIndex: 'sendStatus',
|
|
|
@@ -51,30 +15,6 @@ export const columns: BasicColumn[] = [
|
|
|
title: '发送时间',
|
|
|
dataIndex: 'sendTime',
|
|
|
},
|
|
|
- {
|
|
|
- title: '发送结果编码',
|
|
|
- dataIndex: 'sendCode',
|
|
|
- },
|
|
|
- {
|
|
|
- title: '发送消息',
|
|
|
- dataIndex: 'sendMsg',
|
|
|
- },
|
|
|
- {
|
|
|
- title: 'API 结果编号',
|
|
|
- dataIndex: 'apiSendCode',
|
|
|
- },
|
|
|
- {
|
|
|
- title: 'API 错误信息',
|
|
|
- dataIndex: 'apiSendMsg',
|
|
|
- },
|
|
|
- {
|
|
|
- title: 'API 请求编号',
|
|
|
- dataIndex: 'apiRequestId',
|
|
|
- },
|
|
|
- {
|
|
|
- title: 'API 返回序号',
|
|
|
- dataIndex: 'apiSerialNo',
|
|
|
- },
|
|
|
{
|
|
|
title: '接收状态',
|
|
|
dataIndex: 'receiveStatus',
|
|
|
@@ -84,33 +24,25 @@ export const columns: BasicColumn[] = [
|
|
|
dataIndex: 'receiveTime',
|
|
|
},
|
|
|
{
|
|
|
- title: 'API 接收结果编码',
|
|
|
- dataIndex: 'apiReceiveCode',
|
|
|
+ title: '渠道',
|
|
|
+ dataIndex: 'channelName',
|
|
|
},
|
|
|
{
|
|
|
- title: 'API 接收结果提示',
|
|
|
- dataIndex: 'apiReceiveMsg',
|
|
|
+ title: '模板',
|
|
|
+ dataIndex: 'templateName',
|
|
|
},
|
|
|
-];
|
|
|
-
|
|
|
-// 表单列定义
|
|
|
-export const searchFormSchema: FormSchema[] = [
|
|
|
{
|
|
|
- label: '渠道id',
|
|
|
- field: 'channelId',
|
|
|
- component: 'Input',
|
|
|
- componentProps: {
|
|
|
- placeholder: '请输入渠道id',
|
|
|
- },
|
|
|
+ title: '模板编码',
|
|
|
+ dataIndex: 'templateCode',
|
|
|
},
|
|
|
{
|
|
|
- label: '模板id',
|
|
|
- field: 'templateId',
|
|
|
- component: 'Input',
|
|
|
- componentProps: {
|
|
|
- placeholder: '请输入模板id',
|
|
|
- },
|
|
|
+ title: '模板类型',
|
|
|
+ dataIndex: 'templateType',
|
|
|
},
|
|
|
+];
|
|
|
+
|
|
|
+// 表单列定义
|
|
|
+export const searchFormSchema: FormSchema[] = [
|
|
|
{
|
|
|
label: '模板编码',
|
|
|
field: 'templateCode',
|
|
|
@@ -139,13 +71,12 @@ export const searchFormSchema: FormSchema[] = [
|
|
|
},
|
|
|
},
|
|
|
{
|
|
|
- label: '发送时间',
|
|
|
+ label: '发送日期',
|
|
|
field: 'sendTime',
|
|
|
- component: 'DatePicker',
|
|
|
+ component: 'RangePicker',
|
|
|
componentProps: {
|
|
|
- placeholder: '请选择时间',
|
|
|
- format: 'YYYY-MM-DD HH:mm:ss',
|
|
|
- showTime: { format: 'YYYY-MM-DD HH:mm:ss' },
|
|
|
+ format: 'YYYY-MM-DD',
|
|
|
+ showTime: { format: 'YYYY-MM-DD' },
|
|
|
},
|
|
|
},
|
|
|
{
|
|
|
@@ -160,225 +91,35 @@ export const searchFormSchema: FormSchema[] = [
|
|
|
},
|
|
|
},
|
|
|
];
|
|
|
-// 表单新增编辑
|
|
|
-export const dataFormSchema: FormSchema[] = [
|
|
|
- {
|
|
|
- label: '渠道id',
|
|
|
- field: 'channelId',
|
|
|
- required: true,
|
|
|
- component: 'Input',
|
|
|
- componentProps: {
|
|
|
- placeholder: '请输入渠道id',
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- label: '模板id',
|
|
|
- field: 'templateId',
|
|
|
- required: true,
|
|
|
- component: 'Input',
|
|
|
- componentProps: {
|
|
|
- placeholder: '请输入模板id',
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- label: '模板编码',
|
|
|
- field: 'templateCode',
|
|
|
- required: true,
|
|
|
- component: 'Input',
|
|
|
- componentProps: {
|
|
|
- placeholder: '请输入模板编码',
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- label: '模板类型',
|
|
|
- field: 'templateType',
|
|
|
- required: true,
|
|
|
- component: 'Input',
|
|
|
- componentProps: {
|
|
|
- placeholder: '请输入模板类型',
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- label: '模板参数',
|
|
|
- field: 'templateParams',
|
|
|
- required: true,
|
|
|
- component: 'Input',
|
|
|
- componentProps: {
|
|
|
- placeholder: '请输入模板参数',
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- label: '模板内容',
|
|
|
- field: 'templateContent',
|
|
|
- required: true,
|
|
|
- component: 'Input',
|
|
|
- componentProps: {
|
|
|
- placeholder: '请输入模板内容',
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- label: '短信API的模板编号',
|
|
|
- field: 'apiTemplateId',
|
|
|
- required: true,
|
|
|
- component: 'Input',
|
|
|
- componentProps: {
|
|
|
- placeholder: '请输入短信API的模板编号',
|
|
|
- },
|
|
|
- },
|
|
|
+// 表单详情查看
|
|
|
+export const viewSchema: DescItem[] = [
|
|
|
{
|
|
|
label: '手机号',
|
|
|
field: 'mobile',
|
|
|
- required: true,
|
|
|
- component: 'Input',
|
|
|
- componentProps: {
|
|
|
- placeholder: '请输入手机号',
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- label: '接收用户id',
|
|
|
- field: 'userid',
|
|
|
- required: true,
|
|
|
- component: 'Input',
|
|
|
- componentProps: {
|
|
|
- placeholder: '请输入接收用户id',
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- label: '用户类型',
|
|
|
- field: 'userType',
|
|
|
- required: true,
|
|
|
- component: 'Input',
|
|
|
- componentProps: {
|
|
|
- placeholder: '请输入用户类型',
|
|
|
- },
|
|
|
},
|
|
|
{
|
|
|
label: '发送状态',
|
|
|
field: 'sendStatus',
|
|
|
- component: 'ApiSelect',
|
|
|
- componentProps: {
|
|
|
- api: listDictModel,
|
|
|
- params: {
|
|
|
- dictCode: 'sys_sms_send',
|
|
|
- },
|
|
|
- },
|
|
|
},
|
|
|
{
|
|
|
label: '发送时间',
|
|
|
field: 'sendTime',
|
|
|
- component: 'DatePicker',
|
|
|
- componentProps: {
|
|
|
- placeholder: '请选择时间',
|
|
|
- format: 'YYYY-MM-DD HH:mm:ss',
|
|
|
- showTime: { format: 'YYYY-MM-DD HH:mm:ss' },
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- label: '发送结果编码',
|
|
|
- field: 'sendCode',
|
|
|
- required: true,
|
|
|
- component: 'Input',
|
|
|
- componentProps: {
|
|
|
- placeholder: '请输入发送结果编码',
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- label: '发送消息',
|
|
|
- field: 'sendMsg',
|
|
|
- required: true,
|
|
|
- component: 'Input',
|
|
|
- componentProps: {
|
|
|
- placeholder: '请输入发送消息',
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- label: 'API 结果编号',
|
|
|
- field: 'apiSendCode',
|
|
|
- required: true,
|
|
|
- component: 'Input',
|
|
|
- componentProps: {
|
|
|
- placeholder: '请输入API 结果编号',
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- label: 'API 错误信息',
|
|
|
- field: 'apiSendMsg',
|
|
|
- required: true,
|
|
|
- component: 'Input',
|
|
|
- componentProps: {
|
|
|
- placeholder: '请输入API 错误信息',
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- label: 'API 请求编号',
|
|
|
- field: 'apiRequestId',
|
|
|
- required: true,
|
|
|
- component: 'Input',
|
|
|
- componentProps: {
|
|
|
- placeholder: '请输入API 请求编号',
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- label: 'API 返回序号',
|
|
|
- field: 'apiSerialNo',
|
|
|
- required: true,
|
|
|
- component: 'Input',
|
|
|
- componentProps: {
|
|
|
- placeholder: '请输入API 返回序号',
|
|
|
- },
|
|
|
},
|
|
|
{
|
|
|
label: '接收状态',
|
|
|
field: 'receiveStatus',
|
|
|
- component: 'ApiSelect',
|
|
|
- componentProps: {
|
|
|
- api: listDictModel,
|
|
|
- params: {
|
|
|
- dictCode: 'sys_sms_reveice',
|
|
|
- },
|
|
|
- },
|
|
|
},
|
|
|
{
|
|
|
label: '接收时间',
|
|
|
field: 'receiveTime',
|
|
|
- required: true,
|
|
|
- component: 'Input',
|
|
|
- componentProps: {
|
|
|
- placeholder: '请输入接收时间',
|
|
|
- },
|
|
|
},
|
|
|
{
|
|
|
- label: 'API 接收结果编码',
|
|
|
- field: 'apiReceiveCode',
|
|
|
- required: true,
|
|
|
- component: 'Input',
|
|
|
- componentProps: {
|
|
|
- placeholder: '请输入API 接收结果编码',
|
|
|
- },
|
|
|
+ label: '渠道名称',
|
|
|
+ field: 'channelName',
|
|
|
},
|
|
|
{
|
|
|
- label: 'API 接收结果提示',
|
|
|
- field: 'apiReceiveMsg',
|
|
|
- required: true,
|
|
|
- component: 'Input',
|
|
|
- componentProps: {
|
|
|
- placeholder: '请输入API 接收结果提示',
|
|
|
- },
|
|
|
- },
|
|
|
-];
|
|
|
-// 表单详情查看
|
|
|
-export const viewSchema: DescItem[] = [
|
|
|
- {
|
|
|
- label: 'id',
|
|
|
- field: 'id',
|
|
|
- },
|
|
|
- {
|
|
|
- label: '渠道id',
|
|
|
- field: 'channelId',
|
|
|
- },
|
|
|
- {
|
|
|
- label: '模板id',
|
|
|
- field: 'templateId',
|
|
|
+ label: '模板名称',
|
|
|
+ field: 'templateName',
|
|
|
},
|
|
|
{
|
|
|
label: '模板编码',
|
|
|
@@ -388,38 +129,14 @@ export const viewSchema: DescItem[] = [
|
|
|
label: '模板类型',
|
|
|
field: 'templateType',
|
|
|
},
|
|
|
- {
|
|
|
- label: '模板参数',
|
|
|
- field: 'templateParams',
|
|
|
- },
|
|
|
{
|
|
|
label: '模板内容',
|
|
|
field: 'templateContent',
|
|
|
},
|
|
|
{
|
|
|
- label: '短信API的模板编号',
|
|
|
+ label: '短信API模板编号',
|
|
|
field: 'apiTemplateId',
|
|
|
},
|
|
|
- {
|
|
|
- label: '手机号',
|
|
|
- field: 'mobile',
|
|
|
- },
|
|
|
- {
|
|
|
- label: '接收用户id',
|
|
|
- field: 'userid',
|
|
|
- },
|
|
|
- {
|
|
|
- label: '用户类型',
|
|
|
- field: 'userType',
|
|
|
- },
|
|
|
- {
|
|
|
- label: '发送状态',
|
|
|
- field: 'sendStatus',
|
|
|
- },
|
|
|
- {
|
|
|
- label: '发送时间',
|
|
|
- field: 'sendTime',
|
|
|
- },
|
|
|
{
|
|
|
label: '发送结果编码',
|
|
|
field: 'sendCode',
|
|
|
@@ -429,43 +146,28 @@ export const viewSchema: DescItem[] = [
|
|
|
field: 'sendMsg',
|
|
|
},
|
|
|
{
|
|
|
- label: 'API 结果编号',
|
|
|
+ label: 'API结果编号',
|
|
|
field: 'apiSendCode',
|
|
|
},
|
|
|
{
|
|
|
- label: 'API 错误信息',
|
|
|
+ label: 'API错误信息',
|
|
|
field: 'apiSendMsg',
|
|
|
},
|
|
|
{
|
|
|
- label: 'API 请求编号',
|
|
|
+ label: 'API请求编号',
|
|
|
field: 'apiRequestId',
|
|
|
},
|
|
|
{
|
|
|
- label: 'API 返回序号',
|
|
|
+ label: 'API返回序号',
|
|
|
field: 'apiSerialNo',
|
|
|
},
|
|
|
+
|
|
|
{
|
|
|
- label: '接收状态',
|
|
|
- field: 'receiveStatus',
|
|
|
- },
|
|
|
- {
|
|
|
- label: '接收时间',
|
|
|
- field: 'receiveTime',
|
|
|
- },
|
|
|
- {
|
|
|
- label: 'API 接收结果编码',
|
|
|
+ label: 'API接收结果编码',
|
|
|
field: 'apiReceiveCode',
|
|
|
},
|
|
|
{
|
|
|
- label: 'API 接收结果提示',
|
|
|
+ label: 'API接收结果提示',
|
|
|
field: 'apiReceiveMsg',
|
|
|
},
|
|
|
- {
|
|
|
- label: 'create_time',
|
|
|
- field: 'createTime',
|
|
|
- },
|
|
|
- {
|
|
|
- label: 'update_time',
|
|
|
- field: 'updateTime',
|
|
|
- },
|
|
|
];
|