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