按钮loading-参与外部标准制修订信息提报流程
This commit is contained in:
@@ -187,6 +187,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,
|
||||
@@ -219,7 +220,11 @@ export default {
|
||||
this.$router.push("/processCenter");
|
||||
}
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
});
|
||||
} else {
|
||||
this.saveLoading = false
|
||||
this.isSubmit = false
|
||||
}
|
||||
});
|
||||
} else {
|
||||
@@ -230,6 +235,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);
|
||||
@@ -240,11 +246,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;
|
||||
});
|
||||
},
|
||||
},
|
||||
|
||||
@@ -91,7 +91,7 @@
|
||||
show-save
|
||||
show-submit
|
||||
:submitLoading="isSubmit"
|
||||
:saveLoading="saveLoading"
|
||||
:saveLoading="isSubmit"
|
||||
@save="handleSave"
|
||||
@submit="handleSubmit"
|
||||
>
|
||||
|
||||
@@ -390,9 +390,9 @@
|
||||
show-save
|
||||
show-submit
|
||||
show-record
|
||||
:recordLoading="recordLoading"
|
||||
:recordLoading="isSubmit"
|
||||
:submitLoading="isSubmit"
|
||||
:saveLoading="saveLoading"
|
||||
:saveLoading="isSubmit"
|
||||
@record="handleRecord"
|
||||
@save="handleSave"
|
||||
@submit="handleSubmit"
|
||||
@@ -641,6 +641,7 @@ export default {
|
||||
let json = {
|
||||
signFlag: '2',
|
||||
};
|
||||
this.isSubmit = true;
|
||||
this.$http.post("lawss/activiti/completeTask", {
|
||||
taskIds: this.$route.query.taskIds,
|
||||
userId: this.$store.getters.userInfo.userId,
|
||||
@@ -670,6 +671,7 @@ export default {
|
||||
wbbzform: this.wbbzform,
|
||||
signFlag: '1',
|
||||
};
|
||||
this.isSubmit = true;
|
||||
this.$refs["wbbzForm"].validate((valid) => {
|
||||
if (valid) {
|
||||
this.$http.post("lawss/activiti/completeTask", {
|
||||
|
||||
@@ -223,8 +223,8 @@
|
||||
show-transfer
|
||||
show-submit
|
||||
:submitLoading="isSubmit"
|
||||
:transfer-loading="isTransfer"
|
||||
:saveLoading="saveLoading"
|
||||
:isSubmitBack="isSubmit"
|
||||
:saveLoading="isSubmit"
|
||||
:approval="true"
|
||||
@back="beforeBack"
|
||||
@transfer="handleTransfer"
|
||||
@@ -369,6 +369,7 @@ export default {
|
||||
};
|
||||
this.$refs["wbbzForm"].validate((valid) => {
|
||||
if (valid) {
|
||||
this.isSubmit = true
|
||||
this.$http.post("lawss/activiti/completeTask", {
|
||||
taskIds: this.$route.query.taskIds,
|
||||
userId: this.$store.getters.userInfo.userId,
|
||||
@@ -389,7 +390,6 @@ export default {
|
||||
}
|
||||
},
|
||||
handleSubmit() {
|
||||
this.isSubmit = true;
|
||||
if (this.participantsData.length < 1) {
|
||||
this.$message.warning("项目信息不能为空");
|
||||
} else {
|
||||
@@ -406,6 +406,7 @@ export default {
|
||||
};
|
||||
this.$refs["wbbzForm"].validate((valid) => {
|
||||
if (valid) {
|
||||
this.isSubmit = true;
|
||||
this.$http.post("lawss/activiti/completeTask", {
|
||||
taskIds: this.$route.query.taskIds,
|
||||
userId: this.$store.getters.userInfo.userId,
|
||||
@@ -433,14 +434,13 @@ export default {
|
||||
},
|
||||
//确认转办
|
||||
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('调整成功')
|
||||
@@ -449,6 +449,8 @@ export default {
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
}).finally(() => {
|
||||
this.isSubmit = false
|
||||
})
|
||||
},
|
||||
},
|
||||
|
||||
@@ -223,8 +223,8 @@
|
||||
show-transfer
|
||||
show-submit
|
||||
:submitLoading="isSubmit"
|
||||
:transfer-loading="isTransfer"
|
||||
:saveLoading="saveLoading"
|
||||
:isSubmitBack="isSubmit"
|
||||
:saveLoading="isSubmit"
|
||||
:approval="true"
|
||||
@back="beforeBack"
|
||||
@transfer="handleTransfer"
|
||||
@@ -369,6 +369,7 @@ export default {
|
||||
};
|
||||
this.$refs["wbbzForm"].validate((valid) => {
|
||||
if (valid) {
|
||||
this.isSubmit = true
|
||||
this.$http.post("lawss/activiti/completeTask", {
|
||||
taskIds: this.$route.query.taskIds,
|
||||
userId: this.$store.getters.userInfo.userId,
|
||||
@@ -389,7 +390,6 @@ export default {
|
||||
}
|
||||
},
|
||||
handleSubmit() {
|
||||
this.isSubmit = true
|
||||
if (this.participantsData.length < 1) {
|
||||
this.$message.warning("项目信息不能为空");
|
||||
} else {
|
||||
@@ -406,6 +406,7 @@ export default {
|
||||
};
|
||||
this.$refs["wbbzForm"].validate((valid) => {
|
||||
if (valid) {
|
||||
this.isSubmit = true
|
||||
this.$http.post("lawss/activiti/completeTask", {
|
||||
taskIds: this.$route.query.taskIds,
|
||||
userId: this.$store.getters.userInfo.userId,
|
||||
@@ -433,14 +434,13 @@ export default {
|
||||
},
|
||||
//确认转办
|
||||
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('调整成功')
|
||||
@@ -449,6 +449,8 @@ export default {
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
}).finally(() => {
|
||||
this.isSubmit = false
|
||||
})
|
||||
},
|
||||
},
|
||||
|
||||
@@ -223,8 +223,8 @@
|
||||
show-transfer
|
||||
show-submit
|
||||
:submitLoading="isSubmit"
|
||||
:transfer-loading="isTransfer"
|
||||
:saveLoading="saveLoading"
|
||||
:isSubmitBack="isSubmit"
|
||||
:saveLoading="isSubmit"
|
||||
:approval="true"
|
||||
@back="beforeBack"
|
||||
@transfer="handleTransfer"
|
||||
@@ -369,6 +369,7 @@ export default {
|
||||
};
|
||||
this.$refs["wbbzForm"].validate((valid) => {
|
||||
if (valid) {
|
||||
this.isSubmit = true;
|
||||
this.$http.post("lawss/activiti/completeTask", {
|
||||
taskIds: this.$route.query.taskIds,
|
||||
userId: this.$store.getters.userInfo.userId,
|
||||
@@ -389,7 +390,6 @@ export default {
|
||||
}
|
||||
},
|
||||
handleSubmit() {
|
||||
this.isSubmit = true
|
||||
if (this.participantsData.length < 1) {
|
||||
this.$message.warning("项目信息不能为空");
|
||||
} else {
|
||||
@@ -406,6 +406,7 @@ export default {
|
||||
};
|
||||
this.$refs["wbbzForm"].validate((valid) => {
|
||||
if (valid) {
|
||||
this.isSubmit = true
|
||||
this.$http.post("lawss/activiti/completeTask", {
|
||||
taskIds: this.$route.query.taskIds,
|
||||
userId: this.$store.getters.userInfo.userId,
|
||||
@@ -433,14 +434,13 @@ export default {
|
||||
},
|
||||
//确认转办
|
||||
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('调整成功')
|
||||
@@ -449,6 +449,8 @@ export default {
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
}).finally(() => {
|
||||
this.isSubmit = false
|
||||
})
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user