Skip to content

Commit 16c4bb5

Browse files
author
puhui999
committed
update: 修复测试短信发送成功后弹窗不关闭的问题
1 parent 6e90bbe commit 16c4bb5

File tree

3 files changed

+12
-14
lines changed

3 files changed

+12
-14
lines changed

src/types/auto-components.d.ts

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
/* eslint-disable */
2-
/* prettier-ignore */
3-
// @ts-nocheck
4-
// Generated by unplugin-vue-components
1+
// generated by unplugin-vue-components
2+
// We suggest you to commit this file into source control
53
// Read more: https://github.com/vuejs/core/pull/3399
64
import '@vue/runtime-core'
75

@@ -23,8 +21,6 @@ declare module '@vue/runtime-core' {
2321
DictTag: typeof import('./../components/DictTag/src/DictTag.vue')['default']
2422
Echart: typeof import('./../components/Echart/src/Echart.vue')['default']
2523
Editor: typeof import('./../components/Editor/src/Editor.vue')['default']
26-
ElAutoResizer: typeof import('element-plus/es')['ElAutoResizer']
27-
ElAvatar: typeof import('element-plus/es')['ElAvatar']
2824
ElBadge: typeof import('element-plus/es')['ElBadge']
2925
ElButton: typeof import('element-plus/es')['ElButton']
3026
ElButtonGroup: typeof import('element-plus/es')['ElButtonGroup']
@@ -54,7 +50,6 @@ declare module '@vue/runtime-core' {
5450
ElForm: typeof import('element-plus/es')['ElForm']
5551
ElFormItem: typeof import('element-plus/es')['ElFormItem']
5652
ElIcon: typeof import('element-plus/es')['ElIcon']
57-
ElImage: typeof import('element-plus/es')['ElImage']
5853
ElImageViewer: typeof import('element-plus/es')['ElImageViewer']
5954
ElInput: typeof import('element-plus/es')['ElInput']
6055
ElInputNumber: typeof import('element-plus/es')['ElInputNumber']
@@ -69,15 +64,12 @@ declare module '@vue/runtime-core' {
6964
ElScrollbar: typeof import('element-plus/es')['ElScrollbar']
7065
ElSelect: typeof import('element-plus/es')['ElSelect']
7166
ElSkeleton: typeof import('element-plus/es')['ElSkeleton']
72-
ElSpace: typeof import('element-plus/es')['ElSpace']
7367
ElSwitch: typeof import('element-plus/es')['ElSwitch']
7468
ElTable: typeof import('element-plus/es')['ElTable']
7569
ElTableColumn: typeof import('element-plus/es')['ElTableColumn']
7670
ElTabPane: typeof import('element-plus/es')['ElTabPane']
7771
ElTabs: typeof import('element-plus/es')['ElTabs']
7872
ElTag: typeof import('element-plus/es')['ElTag']
79-
ElTimeline: typeof import('element-plus/es')['ElTimeline']
80-
ElTimelineItem: typeof import('element-plus/es')['ElTimelineItem']
8173
ElTooltip: typeof import('element-plus/es')['ElTooltip']
8274
ElTransfer: typeof import('element-plus/es')['ElTransfer']
8375
ElTree: typeof import('element-plus/es')['ElTree']
@@ -105,6 +97,7 @@ declare module '@vue/runtime-core' {
10597
ScriptTask: typeof import('./../components/bpmnProcessDesigner/package/penal/task/task-components/ScriptTask.vue')['default']
10698
Search: typeof import('./../components/Search/src/Search.vue')['default']
10799
SignalAndMessage: typeof import('./../components/bpmnProcessDesigner/package/penal/signal-message/SignalAndMessage.vue')['default']
100+
Src: typeof import('./../components/RightToolbar/src/index.vue')['default']
108101
Sticky: typeof import('./../components/Sticky/src/Sticky.vue')['default']
109102
Table: typeof import('./../components/Table/src/Table.vue')['default']
110103
Tooltip: typeof import('./../components/Tooltip/src/Tooltip.vue')['default']

src/types/auto-imports.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,5 +70,5 @@ declare global {
7070
// for type re-export
7171
declare global {
7272
// @ts-ignore
73-
export type { Component, ComponentPublicInstance, ComputedRef, InjectionKey, PropType, Ref, VNode } from 'vue'
73+
export type { Component,ComponentPublicInstance,ComputedRef,InjectionKey,PropType,Ref,VNode } from 'vue'
7474
}

src/views/system/sms/smsTemplate/form.vue

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<template>
22
<Dialog :title="modelTitle" v-model="modelVisible">
3+
<!-- 修改/新增 -->
34
<el-form
45
v-if="['template.addTitle', 'template.updtaeTitle'].includes(formType)"
56
ref="formRef"
@@ -55,6 +56,7 @@
5556
<el-input v-model="formData.remark" placeholder="请输入备注" />
5657
</el-form-item>
5758
</el-form>
59+
<!-- 短信测试 -->
5860
<el-form
5961
v-if="formType === 'template.sendSms'"
6062
ref="sendSmsFormRef"
@@ -152,7 +154,9 @@ const sendSmsFormRef = ref()
152154
/** 打开弹窗 */
153155
interface openModalOption {
154156
type: string
157+
// 编辑传id
155158
id?: ''
159+
// 短信测试传row
156160
row?: any
157161
}
158162
const openModal = async (option: openModalOption) => {
@@ -188,16 +192,16 @@ const openModal = async (option: openModalOption) => {
188192
}
189193
defineExpose({ openModal }) // 提供 openModal 方法,用于打开弹窗
190194
191-
/** 提交表单 */
192195
const emit = defineEmits(['success']) // 定义 success 事件,用于操作成功后的回调
196+
/** 提交表单 */
193197
const submitForm = async () => {
198+
formLoading.value = true
199+
// 提交请求
194200
if (['template.addTitle', 'template.updtaeTitle'].includes(formType.value)) {
195201
// 校验表单
196202
if (!formRef) return
197203
const valid = await formRef.value.validate()
198204
if (!valid) return
199-
// 提交请求
200-
formLoading.value = true
201205
try {
202206
const data = formData.value as templateApi.SmsTemplateVO
203207
if (formType.value === 'template.addTitle') {
@@ -258,5 +262,6 @@ const sendSmsTest = async () => {
258262
message.success('提交发送成功!发送结果,见发送日志编号:' + res)
259263
}
260264
formLoading.value = false
265+
modelVisible.value = false
261266
}
262267
</script>

0 commit comments

Comments
 (0)