From 2fe29d3f101bef40571b04f65a94602aada0115c Mon Sep 17 00:00:00 2001 From: yanyizhou <2311759275@qq.com> Date: Mon, 20 Dec 2021 10:18:41 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B5=84=E6=96=99=E4=B8=AD=E5=BF=83=20-=20?= =?UTF-8?q?=E6=8F=90=E4=BA=A4=E6=8C=89=E9=92=AEloading?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/regulatoryRepository/dataCenter/index.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/pages/regulatoryRepository/dataCenter/index.vue b/src/pages/regulatoryRepository/dataCenter/index.vue index ef76a4595..6b8a3cf09 100644 --- a/src/pages/regulatoryRepository/dataCenter/index.vue +++ b/src/pages/regulatoryRepository/dataCenter/index.vue @@ -182,6 +182,7 @@ size="mini" icon="el-icon-check" @click="saveInfo" + :loading="submitLoading" >提交 @@ -205,6 +206,7 @@ export default { data() { return { loading: false, + submitLoading: false, fileList: [], attributeTitle: '', showInfoModal: false, @@ -376,6 +378,7 @@ export default { // this.attributeEO.attachFileId = fileIdList.join(',') }, saveInfo() { + this.submitLoading = true this.$refs['attributeEO'].validate((valid) => { if (valid && this.attributeEO.attachFileId !== '') { if (this.attributeTitle === '新增'){ @@ -388,6 +391,7 @@ export default { (res) => { if (res.ok) { this.$message.success('新增成功') + this.submitLoading = false this.cancelModel() this.searchInfo() } @@ -403,6 +407,7 @@ export default { (res) => { if (res.ok) { this.$message.success('修改成功') + this.submitLoading = false this.cancelModel() this.searchInfo() } @@ -412,6 +417,7 @@ export default { } else { this.$message.error('附件不能为空') + this.submitLoading = false } })