按钮loading-手机端-标准征求意见流程
This commit is contained in:
@@ -170,6 +170,8 @@
|
|||||||
this.drawerModal = true
|
this.drawerModal = true
|
||||||
},
|
},
|
||||||
checkedRole (data) {
|
checkedRole (data) {
|
||||||
|
this.saveLoading = true
|
||||||
|
this.isSubmit = true
|
||||||
changeAssigneeNew({
|
changeAssigneeNew({
|
||||||
taskId: this.$route.query.taskIds, // 任务id
|
taskId: this.$route.query.taskIds, // 任务id
|
||||||
userId:this.$store.getters.userInfo.account, // 委托人
|
userId:this.$store.getters.userInfo.account, // 委托人
|
||||||
@@ -186,6 +188,9 @@
|
|||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
}
|
}
|
||||||
|
}).finally(() => {
|
||||||
|
this.saveLoading = false
|
||||||
|
this.isSubmit = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 请求转换流程图
|
// 请求转换流程图
|
||||||
@@ -241,6 +246,7 @@
|
|||||||
//保存事件
|
//保存事件
|
||||||
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("prcType", "3");
|
_formData.append("prcType", "3");
|
||||||
@@ -250,17 +256,18 @@
|
|||||||
commentText2: this.commentText2
|
commentText2: this.commentText2
|
||||||
}));
|
}));
|
||||||
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.saveLoading = false;
|
||||||
|
this.isSubmit = false
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
this.$refs["bzzqyjForm"].validate((valid) => {
|
this.$refs["bzzqyjForm"].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.isSubmit = true;
|
this.isSubmit = true;
|
||||||
|
this.saveLoading = true;
|
||||||
var json = this.json;
|
var json = this.json;
|
||||||
json.onlyKey = this.onlyKey
|
json.onlyKey = this.onlyKey
|
||||||
json.commentText = this.commentText2;
|
json.commentText = this.commentText2;
|
||||||
@@ -281,6 +288,7 @@
|
|||||||
// this.$router.push("/processCenter");
|
// this.$router.push("/processCenter");
|
||||||
}
|
}
|
||||||
this.isSubmit = false;
|
this.isSubmit = false;
|
||||||
|
this.saveLoading = false;
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
return this.$message.warning("请完善基础信息");
|
return this.$message.warning("请完善基础信息");
|
||||||
|
|||||||
@@ -147,7 +147,8 @@
|
|||||||
<ProcessFooter
|
<ProcessFooter
|
||||||
show-submit
|
show-submit
|
||||||
:submitLoading="isSubmit"
|
:submitLoading="isSubmit"
|
||||||
:saveLoading="saveLoading"
|
:isSubmitBack="isSubmit"
|
||||||
|
:saveLoading="isSubmit"
|
||||||
show-transfer
|
show-transfer
|
||||||
@transfer="handleTransfer"
|
@transfer="handleTransfer"
|
||||||
@submit="handleSubmit"
|
@submit="handleSubmit"
|
||||||
@@ -272,6 +273,7 @@
|
|||||||
this.drawerModal = true
|
this.drawerModal = true
|
||||||
},
|
},
|
||||||
checkedRole (data) {
|
checkedRole (data) {
|
||||||
|
this.isSubmit = true
|
||||||
changeAssigneeNew({
|
changeAssigneeNew({
|
||||||
taskId: this.$route.query.taskIds, // 任务id
|
taskId: this.$route.query.taskIds, // 任务id
|
||||||
userId:this.$store.getters.userInfo.account, // 委托人
|
userId:this.$store.getters.userInfo.account, // 委托人
|
||||||
@@ -288,6 +290,8 @@
|
|||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
}
|
}
|
||||||
|
}).finally(() => {
|
||||||
|
this.isSubmit = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 请求转换流程图
|
// 请求转换流程图
|
||||||
@@ -350,6 +354,7 @@
|
|||||||
var json = this.json
|
var json = this.json
|
||||||
json.spFlag = '1'
|
json.spFlag = '1'
|
||||||
json.commentText = this.commentText41
|
json.commentText = this.commentText41
|
||||||
|
this.isSubmit = true
|
||||||
this.$http.post('lawss/activiti/completeTask', {
|
this.$http.post('lawss/activiti/completeTask', {
|
||||||
json: JSON.stringify(json),
|
json: JSON.stringify(json),
|
||||||
taskId: this.taskIds,
|
taskId: this.taskIds,
|
||||||
@@ -361,6 +366,7 @@
|
|||||||
this.$router.go(-2)
|
this.$router.go(-2)
|
||||||
// this.$router.push('/processCenter')
|
// this.$router.push('/processCenter')
|
||||||
}
|
}
|
||||||
|
this.isSubmit = false
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning('请输入反馈意见')
|
this.$message.warning('请输入反馈意见')
|
||||||
|
|||||||
@@ -134,7 +134,8 @@
|
|||||||
<ProcessFooter
|
<ProcessFooter
|
||||||
show-submit
|
show-submit
|
||||||
:submitLoading="isSubmit"
|
:submitLoading="isSubmit"
|
||||||
:saveLoading="saveLoading"
|
:isSubmitBack="isSubmit"
|
||||||
|
:saveLoading="isSubmit"
|
||||||
show-transfer
|
show-transfer
|
||||||
@transfer="handleTransfer"
|
@transfer="handleTransfer"
|
||||||
@submit="handleSubmit"
|
@submit="handleSubmit"
|
||||||
@@ -263,6 +264,7 @@
|
|||||||
this.drawerModal = true
|
this.drawerModal = true
|
||||||
},
|
},
|
||||||
checkedRole (data) {
|
checkedRole (data) {
|
||||||
|
this.isSubmit = true
|
||||||
changeAssigneeNew({
|
changeAssigneeNew({
|
||||||
taskId: this.$route.query.taskIds, // 任务id
|
taskId: this.$route.query.taskIds, // 任务id
|
||||||
userId:this.$store.getters.userInfo.account, // 委托人
|
userId:this.$store.getters.userInfo.account, // 委托人
|
||||||
@@ -279,6 +281,8 @@
|
|||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
}
|
}
|
||||||
|
}).finally(() => {
|
||||||
|
this.isSubmit = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 请求转换流程图
|
// 请求转换流程图
|
||||||
@@ -333,6 +337,7 @@
|
|||||||
var json = this.json
|
var json = this.json
|
||||||
json.bzFlag = '1'
|
json.bzFlag = '1'
|
||||||
json.commentText = this.commentText42
|
json.commentText = this.commentText42
|
||||||
|
this.isSubmit = true
|
||||||
this.$http.post('lawss/activiti/completeTask', {
|
this.$http.post('lawss/activiti/completeTask', {
|
||||||
json: JSON.stringify(json),
|
json: JSON.stringify(json),
|
||||||
taskId: this.taskIds,
|
taskId: this.taskIds,
|
||||||
@@ -344,6 +349,7 @@
|
|||||||
this.$router.go(-2)
|
this.$router.go(-2)
|
||||||
// this.$router.push('/processCenter')
|
// this.$router.push('/processCenter')
|
||||||
}
|
}
|
||||||
|
this.isSubmit = false
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning('请输入反馈意见')
|
this.$message.warning('请输入反馈意见')
|
||||||
|
|||||||
@@ -169,7 +169,8 @@
|
|||||||
<ProcessFooter
|
<ProcessFooter
|
||||||
show-submit
|
show-submit
|
||||||
:submitLoading="isSubmit"
|
:submitLoading="isSubmit"
|
||||||
:saveLoading="saveLoading"
|
:isSubmitBack="isSubmit"
|
||||||
|
:saveLoading="isSubmit"
|
||||||
@submit="handleSubmit"
|
@submit="handleSubmit"
|
||||||
show-back
|
show-back
|
||||||
@back="handleSubmitNo"
|
@back="handleSubmitNo"
|
||||||
@@ -318,6 +319,7 @@
|
|||||||
this.drawerModal = true
|
this.drawerModal = true
|
||||||
},
|
},
|
||||||
checkedRole (data) {
|
checkedRole (data) {
|
||||||
|
this.isSubmit = true
|
||||||
changeAssigneeNew({
|
changeAssigneeNew({
|
||||||
taskId: this.$route.query.taskIds, // 任务id
|
taskId: this.$route.query.taskIds, // 任务id
|
||||||
userId:this.$store.getters.userInfo.account, // 委托人
|
userId:this.$store.getters.userInfo.account, // 委托人
|
||||||
@@ -334,6 +336,8 @@
|
|||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
}
|
}
|
||||||
|
}).finally(() => {
|
||||||
|
this.isSubmit = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 请求转换流程图
|
// 请求转换流程图
|
||||||
|
|||||||
@@ -159,7 +159,8 @@
|
|||||||
<ProcessFooter
|
<ProcessFooter
|
||||||
show-submit
|
show-submit
|
||||||
:submitLoading="isSubmit"
|
:submitLoading="isSubmit"
|
||||||
:saveLoading="saveLoading"
|
:isSubmitBack="isSubmit"
|
||||||
|
:saveLoading="isSubmit"
|
||||||
@submit="handleSubmit"
|
@submit="handleSubmit"
|
||||||
show-back
|
show-back
|
||||||
@back="handleSubmitNo"
|
@back="handleSubmitNo"
|
||||||
@@ -274,6 +275,7 @@
|
|||||||
this.drawerModal = true
|
this.drawerModal = true
|
||||||
},
|
},
|
||||||
checkedRole (data) {
|
checkedRole (data) {
|
||||||
|
this.isSubmit = true
|
||||||
changeAssigneeNew({
|
changeAssigneeNew({
|
||||||
taskId: this.$route.query.taskIds, // 任务id
|
taskId: this.$route.query.taskIds, // 任务id
|
||||||
userId:this.$store.getters.userInfo.account, // 委托人
|
userId:this.$store.getters.userInfo.account, // 委托人
|
||||||
@@ -290,6 +292,8 @@
|
|||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
}
|
}
|
||||||
|
}).finally(() => {
|
||||||
|
this.isSubmit = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 请求转换流程图
|
// 请求转换流程图
|
||||||
|
|||||||
@@ -159,7 +159,8 @@
|
|||||||
<ProcessFooter
|
<ProcessFooter
|
||||||
show-submit
|
show-submit
|
||||||
:submitLoading="isSubmit"
|
:submitLoading="isSubmit"
|
||||||
:saveLoading="saveLoading"
|
:isSubmitBack="isSubmit"
|
||||||
|
:saveLoading="isSubmit"
|
||||||
@save="handleSave"
|
@save="handleSave"
|
||||||
@submit="handleSubmit"
|
@submit="handleSubmit"
|
||||||
show-back
|
show-back
|
||||||
@@ -275,6 +276,7 @@
|
|||||||
this.drawerModal = true
|
this.drawerModal = true
|
||||||
},
|
},
|
||||||
checkedRole (data) {
|
checkedRole (data) {
|
||||||
|
this.isSubmit = true
|
||||||
changeAssigneeNew({
|
changeAssigneeNew({
|
||||||
taskId: this.$route.query.taskIds, // 任务id
|
taskId: this.$route.query.taskIds, // 任务id
|
||||||
userId:this.$store.getters.userInfo.account, // 委托人
|
userId:this.$store.getters.userInfo.account, // 委托人
|
||||||
@@ -291,6 +293,8 @@
|
|||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
}
|
}
|
||||||
|
}).finally(() => {
|
||||||
|
this.isSubmit = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 请求转换流程图
|
// 请求转换流程图
|
||||||
|
|||||||
@@ -159,7 +159,8 @@
|
|||||||
<ProcessFooter
|
<ProcessFooter
|
||||||
show-submit
|
show-submit
|
||||||
:submitLoading="isSubmit"
|
:submitLoading="isSubmit"
|
||||||
:saveLoading="saveLoading"
|
:isSubmitBack="isSubmit"
|
||||||
|
:saveLoading="isSubmit"
|
||||||
@save="handleSave"
|
@save="handleSave"
|
||||||
@submit="handleSubmit"
|
@submit="handleSubmit"
|
||||||
show-back
|
show-back
|
||||||
@@ -290,6 +291,7 @@
|
|||||||
this.drawerModal = true
|
this.drawerModal = true
|
||||||
},
|
},
|
||||||
checkedRole (data) {
|
checkedRole (data) {
|
||||||
|
this.isSubmit = true
|
||||||
changeAssigneeNew({
|
changeAssigneeNew({
|
||||||
taskId: this.$route.query.taskIds, // 任务id
|
taskId: this.$route.query.taskIds, // 任务id
|
||||||
userId:this.$store.getters.userInfo.account, // 委托人
|
userId:this.$store.getters.userInfo.account, // 委托人
|
||||||
@@ -306,6 +308,8 @@
|
|||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
}
|
}
|
||||||
|
}).finally(() => {
|
||||||
|
this.isSubmit = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 请求转换流程图
|
// 请求转换流程图
|
||||||
|
|||||||
Reference in New Issue
Block a user