mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-07-13 10:35:07 +08:00
perf: 完善类型
This commit is contained in:
@ -55,7 +55,8 @@ const crudSchemas = reactive<VxeCrudSchema>({
|
||||
},
|
||||
{
|
||||
title: '邮箱',
|
||||
field: 'email'
|
||||
field: 'email',
|
||||
isTable: false
|
||||
},
|
||||
{
|
||||
title: '显示排序',
|
||||
@ -67,6 +68,12 @@ const crudSchemas = reactive<VxeCrudSchema>({
|
||||
dictType: DICT_TYPE.COMMON_STATUS,
|
||||
dictClass: 'number',
|
||||
isSearch: true
|
||||
},
|
||||
{
|
||||
title: t('common.createTime'),
|
||||
field: 'createTime',
|
||||
formatter: 'formatDate',
|
||||
isForm: false
|
||||
}
|
||||
]
|
||||
})
|
||||
|
@ -43,6 +43,12 @@ const crudSchemas = reactive<VxeCrudSchema>({
|
||||
isForm: false,
|
||||
table: {
|
||||
width: 150
|
||||
},
|
||||
search: {
|
||||
show: true,
|
||||
itemRender: {
|
||||
name: 'XDataTimePicker'
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -22,6 +22,11 @@ const crudSchemas = reactive<VxeCrudSchema>({
|
||||
title: '刷新令牌',
|
||||
field: 'refreshToken'
|
||||
},
|
||||
{
|
||||
title: '客户端编号',
|
||||
field: 'clientId',
|
||||
isSearch: true
|
||||
},
|
||||
{
|
||||
title: '用户类型',
|
||||
field: 'userType',
|
||||
|
@ -23,6 +23,14 @@ const crudSchemas = reactive<VxeCrudSchema>({
|
||||
field: 'name',
|
||||
isSearch: true
|
||||
},
|
||||
{
|
||||
title: '标签',
|
||||
field: 'tag',
|
||||
isTable: false,
|
||||
isForm: false,
|
||||
isDetail: false,
|
||||
isSearch: true
|
||||
},
|
||||
{
|
||||
title: '标签',
|
||||
field: 'tags',
|
||||
@ -57,7 +65,13 @@ const crudSchemas = reactive<VxeCrudSchema>({
|
||||
title: t('common.createTime'),
|
||||
field: 'createTime',
|
||||
formatter: 'formatDate',
|
||||
isForm: false
|
||||
isForm: false,
|
||||
search: {
|
||||
show: true,
|
||||
itemRender: {
|
||||
name: 'XDataTimePicker'
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
})
|
||||
|
@ -54,7 +54,13 @@ const crudSchemas = reactive<VxeCrudSchema>({
|
||||
title: t('common.createTime'),
|
||||
field: 'createTime',
|
||||
formatter: 'formatDate',
|
||||
isForm: false
|
||||
isForm: false,
|
||||
search: {
|
||||
show: true,
|
||||
itemRender: {
|
||||
name: 'XDataTimePicker'
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
})
|
||||
|
@ -20,6 +20,11 @@ const crudSchemas = reactive<VxeCrudSchema>({
|
||||
title: '短信内容',
|
||||
field: 'templateContent'
|
||||
},
|
||||
{
|
||||
title: '模板编号',
|
||||
field: 'templateId',
|
||||
isSearch: true
|
||||
},
|
||||
{
|
||||
title: '短信渠道',
|
||||
field: 'channelId',
|
||||
@ -35,16 +40,15 @@ const crudSchemas = reactive<VxeCrudSchema>({
|
||||
isSearch: true
|
||||
},
|
||||
{
|
||||
title: '接收状态',
|
||||
field: 'receiveStatus',
|
||||
dictType: DICT_TYPE.SYSTEM_SMS_RECEIVE_STATUS,
|
||||
dictClass: 'number',
|
||||
isSearch: true
|
||||
},
|
||||
{
|
||||
title: '模板编号',
|
||||
field: 'templateId',
|
||||
isSearch: true
|
||||
title: '发送时间',
|
||||
field: 'sendTime',
|
||||
formatter: 'formatDate',
|
||||
search: {
|
||||
show: true,
|
||||
itemRender: {
|
||||
name: 'XDataTimePicker'
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
title: '短信类型',
|
||||
@ -54,12 +58,15 @@ const crudSchemas = reactive<VxeCrudSchema>({
|
||||
isSearch: true
|
||||
},
|
||||
{
|
||||
title: '接收时间',
|
||||
field: 'receiveTime'
|
||||
title: '接收状态',
|
||||
field: 'receiveStatus',
|
||||
dictType: DICT_TYPE.SYSTEM_SMS_RECEIVE_STATUS,
|
||||
dictClass: 'number',
|
||||
isSearch: true
|
||||
},
|
||||
{
|
||||
title: t('common.createTime'),
|
||||
field: 'createTime',
|
||||
title: '接收时间',
|
||||
field: 'receiveTime',
|
||||
formatter: 'formatDate',
|
||||
search: {
|
||||
show: true,
|
||||
@ -67,6 +74,11 @@ const crudSchemas = reactive<VxeCrudSchema>({
|
||||
name: 'XDataTimePicker'
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
title: t('common.createTime'),
|
||||
field: 'createTime',
|
||||
formatter: 'formatDate'
|
||||
}
|
||||
]
|
||||
})
|
||||
|
@ -104,7 +104,7 @@
|
||||
:loading="actionLoading"
|
||||
@click="sendSmsTest()"
|
||||
/>
|
||||
<XButton :title="t('dialog.close')" @click="dialogVisible = false" />
|
||||
<XButton :title="t('dialog.close')" @click="sendVisible = false" />
|
||||
</template>
|
||||
</XModal>
|
||||
</template>
|
||||
@ -204,7 +204,7 @@ const submitForm = async () => {
|
||||
const sendSmsForm = ref({
|
||||
content: '',
|
||||
params: {},
|
||||
mobile: '141',
|
||||
mobile: '',
|
||||
templateCode: '',
|
||||
templateParams: {}
|
||||
})
|
||||
@ -230,14 +230,16 @@ const handleSendSms = (row: any) => {
|
||||
sendVisible.value = true
|
||||
}
|
||||
|
||||
const sendSmsTest = () => {
|
||||
const data = {
|
||||
const sendSmsTest = async () => {
|
||||
const data: SmsTemplateApi.SendSmsReqVO = {
|
||||
mobile: sendSmsForm.value.mobile,
|
||||
templateCode: sendSmsForm.value.templateCode,
|
||||
templateParams: sendSmsForm.value.templateParams
|
||||
templateParams: sendSmsForm.value.templateParams as unknown as Map<string, Object>
|
||||
}
|
||||
const res = await SmsTemplateApi.sendSmsApi(data)
|
||||
if (res) {
|
||||
message.success('发送成功')
|
||||
}
|
||||
SmsTemplateApi.sendSmsApi(data)
|
||||
message.info('发送成功')
|
||||
sendVisible.value = false
|
||||
}
|
||||
</script>
|
||||
|
@ -48,6 +48,7 @@ const crudSchemas = reactive<VxeCrudSchema>({
|
||||
field: 'type',
|
||||
dictType: DICT_TYPE.SYSTEM_SMS_TEMPLATE_TYPE,
|
||||
dictClass: 'number',
|
||||
isSearch: true,
|
||||
table: {
|
||||
width: 80
|
||||
}
|
||||
@ -57,6 +58,7 @@ const crudSchemas = reactive<VxeCrudSchema>({
|
||||
field: 'status',
|
||||
dictType: DICT_TYPE.COMMON_STATUS,
|
||||
dictClass: 'number',
|
||||
isSearch: true,
|
||||
table: {
|
||||
width: 80
|
||||
}
|
||||
|
@ -123,7 +123,13 @@ const crudSchemas = reactive<VxeCrudSchema>({
|
||||
title: t('table.createTime'),
|
||||
field: 'createTime',
|
||||
formatter: 'formatDate',
|
||||
isForm: false
|
||||
isForm: false,
|
||||
search: {
|
||||
show: true,
|
||||
itemRender: {
|
||||
name: 'XDataTimePicker'
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
})
|
||||
|
@ -43,6 +43,7 @@ const crudSchemas = reactive<VxeCrudSchema>({
|
||||
title: t('form.remark'),
|
||||
field: 'remark',
|
||||
isTable: false,
|
||||
isSearch: true,
|
||||
form: {
|
||||
component: 'Input',
|
||||
componentProps: {
|
||||
@ -58,7 +59,13 @@ const crudSchemas = reactive<VxeCrudSchema>({
|
||||
title: '创建时间',
|
||||
field: 'createTime',
|
||||
formatter: 'formatDate',
|
||||
isForm: false
|
||||
isForm: false,
|
||||
search: {
|
||||
show: true,
|
||||
itemRender: {
|
||||
name: 'XDataTimePicker'
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
})
|
||||
|
Reference in New Issue
Block a user