按钮loading-加入标准化协会信息备案流程

This commit is contained in:
zyn
2023-11-06 18:38:14 +08:00
parent f81b67b5e0
commit 62152dc88d
4 changed files with 25 additions and 18 deletions
@@ -186,6 +186,7 @@ export default {
this.$refs["Form"].validate((valid) => {
if (valid) {
this.isSubmit = true
this.saveLoading = true
this.$http.post("lawss/activiti/startProcessRollBack", {
createUser: this.$store.getters.userInfo.userId,
createUserName: this.$store.getters.userInfo.userName,
@@ -218,7 +219,11 @@ export default {
this.$router.push("/processCenter");
}
this.isSubmit = false
this.saveLoading = false
});
} else {
this.saveLoading = false
this.isSubmit = false
}
});
} else {
@@ -229,6 +234,7 @@ export default {
},
handleSave(){
this.saveLoading = true;
this.isSubmit = true;
let _formData = new FormData();
_formData.append("id", this.bpnId || "");
_formData.append("createUser", this.$store.getters.userInfo.userId);
@@ -239,11 +245,11 @@ export default {
roleForm: this.roleForm,
}));
saveTaskFirst(_formData).then(res => {
this.saveLoading = false;
this.$message.success("保存成功");
this.bpnId = res.result;
}).catch(e => {
}).finally(() => {
this.saveLoading = false;
this.isSubmit = false;
});
},
},
@@ -323,9 +323,9 @@
show-save
show-submit
show-record
:recordLoading="recordLoading"
:recordLoading="isSubmit"
:submitLoading="isSubmit"
:saveLoading="saveLoading"
:saveLoading="isSubmit"
@record="handleRecord"
@save="handleSave"
@submit="handleSubmit"
@@ -561,7 +561,7 @@ export default {
},
//不备案
handleRecord(){
this.recordLoading = true
this.isSubmit = true
this.dlFlag = '0'
this.wbbzform.commentText = this.commentText;
this.wbbzform.participantsData = this.participantsData
@@ -578,14 +578,14 @@ export default {
this.$message.success(res.message);
this.$router.push("/processCenter");
}
this.recordLoading = false
this.isSubmit = false
}, e => {
});
},
//流程保存
handleSave() {
this.saveLoading = true
this.isSubmit = true
this.wbbzform.fileName = this.fileInfoList
this.wbbzform.commentText = this.commentText;
this.wbbzform.participantsData = this.participantsData
@@ -600,11 +600,10 @@ export default {
form: this.wbbzform,
}))
saveTaskForPub(_formData).then(res => {
this.saveLoading = false
this.$message.success('保存成功')
this.bpnId = res.result
}).catch(e => {
this.saveLoading = false
}).finally(() => {
this.isSubmit = false
})
},
//流程提交
@@ -278,8 +278,8 @@
show-transfer
show-submit
:submitLoading="isSubmit"
:transfer-loading="isTransfer"
:saveLoading="saveLoading"
:isSubmitBack="isSubmit"
:saveLoading="isSubmit"
:approval="true"
@back="beforeBack"
@transfer="handleTransfer"
@@ -384,14 +384,13 @@ export default {
methods: {
//确认转办
checkedTransferRole (data) {
this.assigneeNewLoading = true
this.isSubmit = true
changeAssigneeNew({
taskId: this.$route.query.taskIds, // 任务id
assignee: data[0].id, // 被委托人
userId: this.$store.getters.userInfo.userId, // 委托人
pId: this.$route.query.prcId // 流程实例
}).then(res => {
this.isTransfer = false
if (res.success) {
this.drawerModal = false
this.$message.success('调整成功')
@@ -400,6 +399,8 @@ export default {
} else {
this.$message.warning(res.message)
}
}).finally(() => {
this.isSubmit = false
})
},
processTable() {
@@ -278,8 +278,8 @@
show-transfer
show-submit
:submitLoading="isSubmit"
:transfer-loading="isTransfer"
:saveLoading="saveLoading"
:isSubmitBack="isSubmit"
:saveLoading="isSubmit"
:approval="true"
@back="beforeBack"
@transfer="handleTransfer"
@@ -384,14 +384,13 @@ export default {
methods: {
//确认转办
checkedTransferRole (data) {
this.assigneeNewLoading = true
this.isSubmit = true
changeAssigneeNew({
taskId: this.$route.query.taskIds, // 任务id
assignee: data[0].id, // 被委托人
userId: this.$store.getters.userInfo.userId, // 委托人
pId: this.$route.query.prcId // 流程实例
}).then(res => {
this.isTransfer = false
if (res.success) {
this.drawerModal = false
this.$message.success('调整成功')
@@ -400,6 +399,8 @@ export default {
} else {
this.$message.warning(res.message)
}
}).finally(() => {
this.isSubmit = false
})
},
processTable() {