按钮loading-企标制修订立项计划

This commit is contained in:
zyn
2023-11-06 09:49:06 +08:00
parent 3a403e8761
commit 6dc35be591
3 changed files with 20 additions and 3 deletions
@@ -563,7 +563,7 @@ export default {
this.$router.push('/processCenter')
}
this.isSubmit = false
this.isSubmit = false
this.saveLoading = false
}, e => {
});
}
@@ -1062,6 +1062,7 @@ export default {
},
// 保存按钮
handleSave() {
this.saveLoading = true;
this.saveLoading = true;
let _formData = new FormData();
this.qblx_pageData.qblxFile = this.fileInfoList
@@ -1076,8 +1077,9 @@ export default {
this.saveLoading = false;
this.$message.success("保存成功");
this.bpnId = res.result;
}).catch(e => {
}).finally(() => {
this.saveLoading = false;
this.isSubmit = false;
})
},
listSubmit (item) {
@@ -1137,6 +1139,7 @@ export default {
this.$refs["roleForm"].validate(async (valid) => {
if (valid) {
this.isSubmit = true
this.saveLoading = true;
let finishCount = 0;
while (finishCount < jsonData.length) {
await this.listSubmit(jsonData[finishCount])
@@ -1151,6 +1154,7 @@ export default {
this.$router.push('/processCenter')
}
this.isSubmit = false
this.saveLoading = false;
} else {
return this.$message.warning("请完善人员信息");
}
@@ -539,7 +539,6 @@
<ProcessFooter
show-transfer
show-submit
:transfer-loading="isTransfer"
:submitLoading="isSubmit"
:saveLoading="saveLoading"
:approval="true"
@@ -848,6 +847,7 @@ export default {
this.$refs["roleForm"].validate((valid) => {
if (valid) {
this.isSubmit = true
this.saveLoading = true
this.qbfsForm.commentText = this.commentText
this.qbfsForm.LXD = this.lxdList && this.lxdList.length > 0 ? this.lxdList[0].id : ''
this.qbfsForm.LXDName = '立项单'
@@ -903,11 +903,19 @@ export default {
this.$router.push({ path: "/processCenter?tabsName=ProcessCenter" });
// this.isSubmit = false;
}
this.isSubmit = false;
this.saveLoading = false;
});
} else {
this.isSubmit = false;
this.saveLoading = false;
}
});
// }
// })
} else {
this.isSubmit = false;
this.saveLoading = false;
}
// this.isSubmit = false
}, e => {
@@ -931,6 +939,8 @@ export default {
//确认转办
checkedRole3 (data) {
this.assigneeNewLoading = true
this.saveLoading = true
this.isSubmit = true
changeAssigneeNew({
taskId: this.$route.query.taskIds, // 任务id
assignee: data[0].id, // 被委托人
@@ -946,6 +956,9 @@ export default {
} else {
this.$message.warning(res.message)
}
}).finally(() => {
this.saveLoading = false
this.isSubmit = false
})
},
// 请求转换流程图