mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-07-13 18:45:06 +08:00
perf: 完善类型
This commit is contained in:
@ -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>
|
||||
|
Reference in New Issue
Block a user