From 3407cc66a97c2cd66e2a30a40a88d85fa25bb86e Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sat, 2 Dec 2023 22:39:52 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E4=BF=AE=E5=A4=8D=20sms=20?= =?UTF-8?q?=E5=9C=A8=20IDEA=20=E6=8A=A5=E9=94=99=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/sms/smsChannel/index.ts | 2 +- src/api/system/sms/smsTemplate/index.ts | 6 +++--- src/views/system/sms/channel/SmsChannelForm.vue | 4 ++-- src/views/system/sms/channel/index.vue | 2 +- .../system/sms/template/SmsTemplateForm.vue | 16 ++++++++-------- src/views/system/sms/template/index.vue | 10 +++++----- 6 files changed, 20 insertions(+), 20 deletions(-) diff --git a/src/api/system/sms/smsChannel/index.ts b/src/api/system/sms/smsChannel/index.ts index f335628f..bcdaa7f9 100644 --- a/src/api/system/sms/smsChannel/index.ts +++ b/src/api/system/sms/smsChannel/index.ts @@ -19,7 +19,7 @@ export const getSmsChannelPage = (params: PageParam) => { // 获得短信渠道精简列表 export function getSimpleSmsChannelList() { - return request.get({ url: '/system/sms-channel/list-all-simple' }) + return request.get({ url: '/system/sms-channel/simple-list' }) } // 查询短信渠道详情 diff --git a/src/api/system/sms/smsTemplate/index.ts b/src/api/system/sms/smsTemplate/index.ts index 35cb489d..868ddd47 100644 --- a/src/api/system/sms/smsTemplate/index.ts +++ b/src/api/system/sms/smsTemplate/index.ts @@ -1,15 +1,15 @@ import request from '@/config/axios' export interface SmsTemplateVO { - id: number | null - type: number | null + id?: number + type?: number status: number code: string name: string content: string remark: string apiTemplateId: string - channelId: number | null + channelId?: number channelCode?: string params?: string[] createTime?: Date diff --git a/src/views/system/sms/channel/SmsChannelForm.vue b/src/views/system/sms/channel/SmsChannelForm.vue index 049868a3..52ee006c 100644 --- a/src/views/system/sms/channel/SmsChannelForm.vue +++ b/src/views/system/sms/channel/SmsChannelForm.vue @@ -14,7 +14,7 @@ @@ -24,7 +24,7 @@ {{ dict.label }} diff --git a/src/views/system/sms/channel/index.vue b/src/views/system/sms/channel/index.vue index 417d870e..17360173 100644 --- a/src/views/system/sms/channel/index.vue +++ b/src/views/system/sms/channel/index.vue @@ -21,7 +21,7 @@ diff --git a/src/views/system/sms/template/SmsTemplateForm.vue b/src/views/system/sms/template/SmsTemplateForm.vue index 83906cd4..760d1e61 100644 --- a/src/views/system/sms/template/SmsTemplateForm.vue +++ b/src/views/system/sms/template/SmsTemplateForm.vue @@ -24,7 +24,7 @@ @@ -43,7 +43,7 @@ {{ dict.label }} @@ -79,15 +79,15 @@ const dialogTitle = ref('') // 弹窗的标题 const formLoading = ref(false) // 表单的加载中:1)修改时的数据加载;2)提交的按钮禁用 const formType = ref('') // 表单的类型 const formData = ref({ - id: null, - type: null, + id: undefined, + type: undefined, status: CommonStatusEnum.ENABLE, code: '', name: '', content: '', remark: '', apiTemplateId: '', - channelId: null + channelId: undefined }) const formRules = reactive({ type: [{ required: true, message: '短信类型不能为空', trigger: 'change' }], @@ -148,15 +148,15 @@ const submitForm = async () => { /** 重置表单 */ const resetForm = () => { formData.value = { - id: null, - type: null, + id: undefined, + type: undefined, status: CommonStatusEnum.ENABLE, code: '', name: '', content: '', remark: '', apiTemplateId: '', - channelId: null + channelId: undefined } formRef.value?.resetFields() } diff --git a/src/views/system/sms/template/index.vue b/src/views/system/sms/template/index.vue index a879a538..d94baff2 100644 --- a/src/views/system/sms/template/index.vue +++ b/src/views/system/sms/template/index.vue @@ -19,7 +19,7 @@ > @@ -34,7 +34,7 @@ > @@ -232,12 +232,12 @@ const queryFormRef = ref() // 搜索的表单 const queryParams = reactive({ pageNo: 1, pageSize: 10, - type: null, - status: null, + type: undefined, + status: undefined, code: '', content: '', apiTemplateId: '', - channelId: null, + channelId: undefined, createTime: [] }) const exportLoading = ref(false) // 导出的加载中