From bf36ec2d0be17f964702110526735957a4efb229 Mon Sep 17 00:00:00 2001 From: yinsiyu <516159562@qq.com> Date: Sun, 28 Jul 2024 20:55:33 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/dictManage/returnType/index.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/views/dictManage/returnType/index.vue b/src/views/dictManage/returnType/index.vue index 96697de..457dd22 100644 --- a/src/views/dictManage/returnType/index.vue +++ b/src/views/dictManage/returnType/index.vue @@ -18,14 +18,14 @@ @@ -110,6 +110,7 @@ export default { }, visible: false, dialogTitle: "新增回访类型", + isLoading: false, formData: { id: undefined, name: null, @@ -164,13 +165,16 @@ export default { if (isValid) { return; } + this.isLoading = true; const [err, res] = await to(updateCallbackCategoryApi(this.formData)); if (!err) { this.$message.success("操作成功"); + await this.resetForm(); this.visible = false; await this.$nextTick(); this.$refs.gridRef.commitProxy("query"); } + this.isLoading = false; }); }, async resetForm() {