按钮loading-标准清单发布/更新流程
This commit is contained in:
@@ -1051,6 +1051,7 @@ export default {
|
||||
//保存事件
|
||||
handleSave() {
|
||||
this.saveLoading = true;
|
||||
this.isSubmit = true
|
||||
this.listForm.dataList = this.dataList
|
||||
this.listForm.fileName = this.fileInfoList
|
||||
let _formData = new FormData();
|
||||
@@ -1068,8 +1069,9 @@ export default {
|
||||
this.saveLoading = false;
|
||||
this.$message.success("保存成功");
|
||||
this.bpnId = res.result;
|
||||
}).catch(e => {
|
||||
}).finally(() => {
|
||||
this.saveLoading = false;
|
||||
this.isSubmit = false
|
||||
});
|
||||
},
|
||||
//提交事件
|
||||
@@ -1087,6 +1089,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,
|
||||
@@ -1121,7 +1124,11 @@ export default {
|
||||
this.$router.push("/processCenter");
|
||||
}
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
});
|
||||
} else {
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
}
|
||||
});
|
||||
} else {
|
||||
|
||||
@@ -197,7 +197,7 @@
|
||||
show-transfer
|
||||
show-submit
|
||||
:submitLoading="isSubmit"
|
||||
:transferLoading="isTransfer"
|
||||
:transferLoading="isSubmit"
|
||||
@transfer="handleTransfer"
|
||||
@submit="handleSubmit"
|
||||
>
|
||||
@@ -379,14 +379,13 @@ export default {
|
||||
},
|
||||
//确认转办
|
||||
checkedRole (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('调整成功')
|
||||
@@ -395,6 +394,8 @@ export default {
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
}).finally(() => {
|
||||
this.isSubmit = false
|
||||
})
|
||||
},
|
||||
// 请求转换流程图
|
||||
|
||||
@@ -377,7 +377,6 @@
|
||||
show-save
|
||||
show-submit
|
||||
:submitLoading="isSubmit"
|
||||
:transfer-loading="isTransfer"
|
||||
:saveLoading="saveLoading"
|
||||
@transfer="handleTransfer"
|
||||
@save="handleSave"
|
||||
@@ -519,14 +518,14 @@ export default {
|
||||
methods: {
|
||||
//确认转办
|
||||
checkedRole (data) {
|
||||
this.assigneeNewLoading = true
|
||||
this.saveLoading = 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('调整成功')
|
||||
@@ -535,6 +534,9 @@ export default {
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
}).finally(() => {
|
||||
this.saveLoading = false
|
||||
this.isSubmit = false
|
||||
})
|
||||
},
|
||||
// 请求转换流程图
|
||||
@@ -847,6 +849,7 @@ export default {
|
||||
//保存事件
|
||||
handleSave() {
|
||||
this.saveLoading = true;
|
||||
this.isSubmit = true
|
||||
let _formData = new FormData();
|
||||
_formData.append("id", this.bpnId || "");
|
||||
_formData.append("prcType", "4");
|
||||
@@ -856,11 +859,11 @@ export default {
|
||||
commentText: this.commentText
|
||||
}));
|
||||
saveTaskForPub(_formData).then(res => {
|
||||
this.saveLoading = false;
|
||||
this.$message.success("保存成功");
|
||||
this.bpnId = res.result;
|
||||
}).catch(e => {
|
||||
}).finally(() => {
|
||||
this.saveLoading = false;
|
||||
this.isSubmit = false
|
||||
});
|
||||
},
|
||||
//提交事件
|
||||
@@ -869,6 +872,7 @@ export default {
|
||||
this.listForm.dataList = this.dataList
|
||||
const json = JSON.stringify(this.listForm);
|
||||
this.isSubmit = true
|
||||
this.saveLoading = true
|
||||
this.$http.post('lawss/activiti/completeTask', {
|
||||
taskIds: this.taskIds,
|
||||
userId: this.userId,
|
||||
@@ -881,6 +885,7 @@ export default {
|
||||
this.$router.push('/processCenter')
|
||||
}
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
});
|
||||
},
|
||||
//标准表格选择框改变
|
||||
|
||||
@@ -199,9 +199,9 @@
|
||||
show-transfer
|
||||
show-back
|
||||
show-submit
|
||||
:transfer-loading="isTransfer"
|
||||
:submitLoading="isSubmit"
|
||||
:saveLoading="saveLoading"
|
||||
:isSubmitBack="isSubmit"
|
||||
:approval="true"
|
||||
@transfer="handleTransfer"
|
||||
@back="beforeBack"
|
||||
@@ -296,14 +296,14 @@ export default {
|
||||
methods: {
|
||||
//确认转办
|
||||
checkedRole (data) {
|
||||
this.assigneeNewLoading = true
|
||||
this.saveLoading = 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('调整成功')
|
||||
@@ -312,6 +312,9 @@ export default {
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
}).finally(() => {
|
||||
this.saveLoading = false
|
||||
this.isSubmit = false
|
||||
})
|
||||
},
|
||||
// 请求转换流程图
|
||||
@@ -475,6 +478,7 @@ export default {
|
||||
//提交事件
|
||||
handleSubmit() {
|
||||
this.isSubmit = true;
|
||||
this.saveLoading = true
|
||||
this.listForm.approvalOpinion = "2";
|
||||
this.listForm.commentText = this.commentText;
|
||||
const json = JSON.stringify(this.listForm);
|
||||
@@ -490,6 +494,7 @@ export default {
|
||||
this.$router.push("/processCenter");
|
||||
}
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
});
|
||||
},
|
||||
//选择标准取消事件
|
||||
|
||||
Reference in New Issue
Block a user