按钮loading-手机端-参与外部标准制修订信息提报流程
This commit is contained in:
@@ -75,7 +75,7 @@
|
|||||||
show-save
|
show-save
|
||||||
show-submit
|
show-submit
|
||||||
:submitLoading="isSubmit"
|
:submitLoading="isSubmit"
|
||||||
:saveLoading="saveLoading"
|
:saveLoading="isSubmit"
|
||||||
@save="handleSave"
|
@save="handleSave"
|
||||||
@submit="handleSubmit"
|
@submit="handleSubmit"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -172,8 +172,8 @@
|
|||||||
show-back
|
show-back
|
||||||
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"
|
||||||
@@ -324,6 +324,7 @@ export default {
|
|||||||
};
|
};
|
||||||
this.$refs["wbbzForm"].validate((valid) => {
|
this.$refs["wbbzForm"].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
|
this.isSubmit = true;
|
||||||
this.$http.post("lawss/activiti/completeTask", {
|
this.$http.post("lawss/activiti/completeTask", {
|
||||||
taskIds: this.$route.query.taskIds,
|
taskIds: this.$route.query.taskIds,
|
||||||
userId: this.$store.getters.userInfo.account,
|
userId: this.$store.getters.userInfo.account,
|
||||||
@@ -346,7 +347,6 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
this.isSubmit = true;
|
|
||||||
if (this.participantsData.length < 1) {
|
if (this.participantsData.length < 1) {
|
||||||
this.$message.warning("项目信息不能为空");
|
this.$message.warning("项目信息不能为空");
|
||||||
} else {
|
} else {
|
||||||
@@ -363,6 +363,7 @@ export default {
|
|||||||
};
|
};
|
||||||
this.$refs["wbbzForm"].validate((valid) => {
|
this.$refs["wbbzForm"].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
|
this.isSubmit = true;
|
||||||
this.$http.post("lawss/activiti/completeTask", {
|
this.$http.post("lawss/activiti/completeTask", {
|
||||||
taskIds: this.$route.query.taskIds,
|
taskIds: this.$route.query.taskIds,
|
||||||
userId: this.$store.getters.userInfo.account,
|
userId: this.$store.getters.userInfo.account,
|
||||||
@@ -395,6 +396,7 @@ export default {
|
|||||||
this.roleTransfer = data
|
this.roleTransfer = data
|
||||||
this.phoneRoleList = this.roleTransfer
|
this.phoneRoleList = this.roleTransfer
|
||||||
this.turnLoading = true
|
this.turnLoading = 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, // 被委托人
|
||||||
@@ -410,6 +412,8 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
}
|
}
|
||||||
|
}).finally(() => {
|
||||||
|
this.isSubmit = false
|
||||||
})
|
})
|
||||||
this.modalshowflag = false
|
this.modalshowflag = false
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -172,8 +172,8 @@
|
|||||||
show-back
|
show-back
|
||||||
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"
|
||||||
@@ -324,6 +324,7 @@ export default {
|
|||||||
};
|
};
|
||||||
this.$refs["wbbzForm"].validate((valid) => {
|
this.$refs["wbbzForm"].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
|
this.isSubmit = true;
|
||||||
this.$http.post("lawss/activiti/completeTask", {
|
this.$http.post("lawss/activiti/completeTask", {
|
||||||
taskIds: this.$route.query.taskIds,
|
taskIds: this.$route.query.taskIds,
|
||||||
userId: this.$store.getters.userInfo.account,
|
userId: this.$store.getters.userInfo.account,
|
||||||
@@ -346,7 +347,6 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
this.isSubmit = true;
|
|
||||||
if (this.participantsData.length < 1) {
|
if (this.participantsData.length < 1) {
|
||||||
this.$message.warning("项目信息不能为空");
|
this.$message.warning("项目信息不能为空");
|
||||||
} else {
|
} else {
|
||||||
@@ -363,6 +363,7 @@ export default {
|
|||||||
};
|
};
|
||||||
this.$refs["wbbzForm"].validate((valid) => {
|
this.$refs["wbbzForm"].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
|
this.isSubmit = true;
|
||||||
this.$http.post("lawss/activiti/completeTask", {
|
this.$http.post("lawss/activiti/completeTask", {
|
||||||
taskIds: this.$route.query.taskIds,
|
taskIds: this.$route.query.taskIds,
|
||||||
userId: this.$store.getters.userInfo.account,
|
userId: this.$store.getters.userInfo.account,
|
||||||
@@ -395,6 +396,7 @@ export default {
|
|||||||
this.roleTransfer = data
|
this.roleTransfer = data
|
||||||
this.phoneRoleList = this.roleTransfer
|
this.phoneRoleList = this.roleTransfer
|
||||||
this.turnLoading = true
|
this.turnLoading = 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, // 被委托人
|
||||||
@@ -410,6 +412,8 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
}
|
}
|
||||||
|
}).finally(() => {
|
||||||
|
this.isSubmit = false
|
||||||
})
|
})
|
||||||
this.modalshowflag = false
|
this.modalshowflag = false
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -172,8 +172,8 @@
|
|||||||
show-back
|
show-back
|
||||||
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"
|
||||||
@@ -324,6 +324,7 @@ export default {
|
|||||||
};
|
};
|
||||||
this.$refs["wbbzForm"].validate((valid) => {
|
this.$refs["wbbzForm"].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
|
this.isSubmit = true;
|
||||||
this.$http.post("lawss/activiti/completeTask", {
|
this.$http.post("lawss/activiti/completeTask", {
|
||||||
taskIds: this.$route.query.taskIds,
|
taskIds: this.$route.query.taskIds,
|
||||||
userId: this.$store.getters.userInfo.account,
|
userId: this.$store.getters.userInfo.account,
|
||||||
@@ -346,7 +347,6 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
this.isSubmit = true;
|
|
||||||
if (this.participantsData.length < 1) {
|
if (this.participantsData.length < 1) {
|
||||||
this.$message.warning("项目信息不能为空");
|
this.$message.warning("项目信息不能为空");
|
||||||
} else {
|
} else {
|
||||||
@@ -363,6 +363,7 @@ export default {
|
|||||||
};
|
};
|
||||||
this.$refs["wbbzForm"].validate((valid) => {
|
this.$refs["wbbzForm"].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
|
this.isSubmit = true;
|
||||||
this.$http.post("lawss/activiti/completeTask", {
|
this.$http.post("lawss/activiti/completeTask", {
|
||||||
taskIds: this.$route.query.taskIds,
|
taskIds: this.$route.query.taskIds,
|
||||||
userId: this.$store.getters.userInfo.account,
|
userId: this.$store.getters.userInfo.account,
|
||||||
@@ -395,6 +396,7 @@ export default {
|
|||||||
this.roleTransfer = data
|
this.roleTransfer = data
|
||||||
this.phoneRoleList = this.roleTransfer
|
this.phoneRoleList = this.roleTransfer
|
||||||
this.turnLoading = true
|
this.turnLoading = 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, // 被委托人
|
||||||
@@ -410,6 +412,8 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
}
|
}
|
||||||
|
}).finally(() => {
|
||||||
|
this.isSubmit = false
|
||||||
})
|
})
|
||||||
this.modalshowflag = false
|
this.modalshowflag = false
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user