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() {