按钮loading-手机端-标准征求意见流程

This commit is contained in:
zyn
2023-11-07 09:15:17 +08:00
parent 62152dc88d
commit a2ae1a8278
7 changed files with 44 additions and 8 deletions
@@ -170,6 +170,8 @@
this.drawerModal = true
},
checkedRole (data) {
this.saveLoading = true
this.isSubmit = true
changeAssigneeNew({
taskId: this.$route.query.taskIds, // 任务id
userId:this.$store.getters.userInfo.account, // 委托人
@@ -186,6 +188,9 @@
} else {
this.$message.warning(res.message)
}
}).finally(() => {
this.saveLoading = false
this.isSubmit = false
})
},
// 请求转换流程图
@@ -241,6 +246,7 @@
//保存事件
handleSave() {
this.saveLoading = true;
this.isSubmit = true
let _formData = new FormData();
_formData.append("id", this.bpnId || "");
_formData.append("prcType", "3");
@@ -250,17 +256,18 @@
commentText2: this.commentText2
}));
saveTaskForPub(_formData).then(res => {
this.saveLoading = false;
this.$message.success("保存成功");
this.bpnId = res.result;
}).catch(e => {
}).finally(() => {
this.saveLoading = false;
this.isSubmit = false
});
},
handleSubmit() {
this.$refs["bzzqyjForm"].validate((valid) => {
if (valid) {
this.isSubmit = true;
this.saveLoading = true;
var json = this.json;
json.onlyKey = this.onlyKey
json.commentText = this.commentText2;
@@ -281,6 +288,7 @@
// this.$router.push("/processCenter");
}
this.isSubmit = false;
this.saveLoading = false;
});
} else {
return this.$message.warning("请完善基础信息");
@@ -147,7 +147,8 @@
<ProcessFooter
show-submit
:submitLoading="isSubmit"
:saveLoading="saveLoading"
:isSubmitBack="isSubmit"
:saveLoading="isSubmit"
show-transfer
@transfer="handleTransfer"
@submit="handleSubmit"
@@ -272,6 +273,7 @@
this.drawerModal = true
},
checkedRole (data) {
this.isSubmit = true
changeAssigneeNew({
taskId: this.$route.query.taskIds, // 任务id
userId:this.$store.getters.userInfo.account, // 委托人
@@ -288,6 +290,8 @@
} else {
this.$message.warning(res.message)
}
}).finally(() => {
this.isSubmit = false
})
},
// 请求转换流程图
@@ -350,6 +354,7 @@
var json = this.json
json.spFlag = '1'
json.commentText = this.commentText41
this.isSubmit = true
this.$http.post('lawss/activiti/completeTask', {
json: JSON.stringify(json),
taskId: this.taskIds,
@@ -361,6 +366,7 @@
this.$router.go(-2)
// this.$router.push('/processCenter')
}
this.isSubmit = false
})
} else {
this.$message.warning('请输入反馈意见')
@@ -134,7 +134,8 @@
<ProcessFooter
show-submit
:submitLoading="isSubmit"
:saveLoading="saveLoading"
:isSubmitBack="isSubmit"
:saveLoading="isSubmit"
show-transfer
@transfer="handleTransfer"
@submit="handleSubmit"
@@ -263,6 +264,7 @@
this.drawerModal = true
},
checkedRole (data) {
this.isSubmit = true
changeAssigneeNew({
taskId: this.$route.query.taskIds, // 任务id
userId:this.$store.getters.userInfo.account, // 委托人
@@ -279,6 +281,8 @@
} else {
this.$message.warning(res.message)
}
}).finally(() => {
this.isSubmit = false
})
},
// 请求转换流程图
@@ -333,6 +337,7 @@
var json = this.json
json.bzFlag = '1'
json.commentText = this.commentText42
this.isSubmit = true
this.$http.post('lawss/activiti/completeTask', {
json: JSON.stringify(json),
taskId: this.taskIds,
@@ -344,6 +349,7 @@
this.$router.go(-2)
// this.$router.push('/processCenter')
}
this.isSubmit = false
})
} else {
this.$message.warning('请输入反馈意见')
@@ -169,7 +169,8 @@
<ProcessFooter
show-submit
:submitLoading="isSubmit"
:saveLoading="saveLoading"
:isSubmitBack="isSubmit"
:saveLoading="isSubmit"
@submit="handleSubmit"
show-back
@back="handleSubmitNo"
@@ -318,6 +319,7 @@
this.drawerModal = true
},
checkedRole (data) {
this.isSubmit = true
changeAssigneeNew({
taskId: this.$route.query.taskIds, // 任务id
userId:this.$store.getters.userInfo.account, // 委托人
@@ -334,6 +336,8 @@
} else {
this.$message.warning(res.message)
}
}).finally(() => {
this.isSubmit = false
})
},
// 请求转换流程图
@@ -159,7 +159,8 @@
<ProcessFooter
show-submit
:submitLoading="isSubmit"
:saveLoading="saveLoading"
:isSubmitBack="isSubmit"
:saveLoading="isSubmit"
@submit="handleSubmit"
show-back
@back="handleSubmitNo"
@@ -274,6 +275,7 @@
this.drawerModal = true
},
checkedRole (data) {
this.isSubmit = true
changeAssigneeNew({
taskId: this.$route.query.taskIds, // 任务id
userId:this.$store.getters.userInfo.account, // 委托人
@@ -290,6 +292,8 @@
} else {
this.$message.warning(res.message)
}
}).finally(() => {
this.isSubmit = false
})
},
// 请求转换流程图
@@ -159,7 +159,8 @@
<ProcessFooter
show-submit
:submitLoading="isSubmit"
:saveLoading="saveLoading"
:isSubmitBack="isSubmit"
:saveLoading="isSubmit"
@save="handleSave"
@submit="handleSubmit"
show-back
@@ -275,6 +276,7 @@
this.drawerModal = true
},
checkedRole (data) {
this.isSubmit = true
changeAssigneeNew({
taskId: this.$route.query.taskIds, // 任务id
userId:this.$store.getters.userInfo.account, // 委托人
@@ -291,6 +293,8 @@
} else {
this.$message.warning(res.message)
}
}).finally(() => {
this.isSubmit = false
})
},
// 请求转换流程图
@@ -159,7 +159,8 @@
<ProcessFooter
show-submit
:submitLoading="isSubmit"
:saveLoading="saveLoading"
:isSubmitBack="isSubmit"
:saveLoading="isSubmit"
@save="handleSave"
@submit="handleSubmit"
show-back
@@ -290,6 +291,7 @@
this.drawerModal = true
},
checkedRole (data) {
this.isSubmit = true
changeAssigneeNew({
taskId: this.$route.query.taskIds, // 任务id
userId:this.$store.getters.userInfo.account, // 委托人
@@ -306,6 +308,8 @@
} else {
this.$message.warning(res.message)
}
}).finally(() => {
this.isSubmit = false
})
},
// 请求转换流程图