按钮loading-企标制修订立项计划
This commit is contained in:
@@ -563,7 +563,7 @@ export default {
|
|||||||
this.$router.push('/processCenter')
|
this.$router.push('/processCenter')
|
||||||
}
|
}
|
||||||
this.isSubmit = false
|
this.isSubmit = false
|
||||||
this.isSubmit = false
|
this.saveLoading = false
|
||||||
}, e => {
|
}, e => {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1062,6 +1062,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 保存按钮
|
// 保存按钮
|
||||||
handleSave() {
|
handleSave() {
|
||||||
|
this.saveLoading = true;
|
||||||
this.saveLoading = true;
|
this.saveLoading = true;
|
||||||
let _formData = new FormData();
|
let _formData = new FormData();
|
||||||
this.qblx_pageData.qblxFile = this.fileInfoList
|
this.qblx_pageData.qblxFile = this.fileInfoList
|
||||||
@@ -1076,8 +1077,9 @@ export default {
|
|||||||
this.saveLoading = false;
|
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;
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
listSubmit (item) {
|
listSubmit (item) {
|
||||||
@@ -1137,6 +1139,7 @@ export default {
|
|||||||
this.$refs["roleForm"].validate(async (valid) => {
|
this.$refs["roleForm"].validate(async (valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.isSubmit = true
|
this.isSubmit = true
|
||||||
|
this.saveLoading = true;
|
||||||
let finishCount = 0;
|
let finishCount = 0;
|
||||||
while (finishCount < jsonData.length) {
|
while (finishCount < jsonData.length) {
|
||||||
await this.listSubmit(jsonData[finishCount])
|
await this.listSubmit(jsonData[finishCount])
|
||||||
@@ -1151,6 +1154,7 @@ export default {
|
|||||||
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("请完善人员信息");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -539,7 +539,6 @@
|
|||||||
<ProcessFooter
|
<ProcessFooter
|
||||||
show-transfer
|
show-transfer
|
||||||
show-submit
|
show-submit
|
||||||
:transfer-loading="isTransfer"
|
|
||||||
:submitLoading="isSubmit"
|
:submitLoading="isSubmit"
|
||||||
:saveLoading="saveLoading"
|
:saveLoading="saveLoading"
|
||||||
:approval="true"
|
:approval="true"
|
||||||
@@ -848,6 +847,7 @@ export default {
|
|||||||
this.$refs["roleForm"].validate((valid) => {
|
this.$refs["roleForm"].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.isSubmit = true
|
this.isSubmit = true
|
||||||
|
this.saveLoading = true
|
||||||
this.qbfsForm.commentText = this.commentText
|
this.qbfsForm.commentText = this.commentText
|
||||||
this.qbfsForm.LXD = this.lxdList && this.lxdList.length > 0 ? this.lxdList[0].id : ''
|
this.qbfsForm.LXD = this.lxdList && this.lxdList.length > 0 ? this.lxdList[0].id : ''
|
||||||
this.qbfsForm.LXDName = '立项单'
|
this.qbfsForm.LXDName = '立项单'
|
||||||
@@ -903,11 +903,19 @@ export default {
|
|||||||
this.$router.push({ path: "/processCenter?tabsName=ProcessCenter" });
|
this.$router.push({ path: "/processCenter?tabsName=ProcessCenter" });
|
||||||
// this.isSubmit = false;
|
// this.isSubmit = false;
|
||||||
}
|
}
|
||||||
|
this.isSubmit = false;
|
||||||
|
this.saveLoading = false;
|
||||||
});
|
});
|
||||||
|
} else {
|
||||||
|
this.isSubmit = false;
|
||||||
|
this.saveLoading = false;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
// }
|
// }
|
||||||
// })
|
// })
|
||||||
|
} else {
|
||||||
|
this.isSubmit = false;
|
||||||
|
this.saveLoading = false;
|
||||||
}
|
}
|
||||||
// this.isSubmit = false
|
// this.isSubmit = false
|
||||||
}, e => {
|
}, e => {
|
||||||
@@ -931,6 +939,8 @@ export default {
|
|||||||
//确认转办
|
//确认转办
|
||||||
checkedRole3 (data) {
|
checkedRole3 (data) {
|
||||||
this.assigneeNewLoading = true
|
this.assigneeNewLoading = true
|
||||||
|
this.saveLoading = 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, // 被委托人
|
||||||
@@ -946,6 +956,9 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
}
|
}
|
||||||
|
}).finally(() => {
|
||||||
|
this.saveLoading = false
|
||||||
|
this.isSubmit = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 请求转换流程图
|
// 请求转换流程图
|
||||||
|
|||||||
Reference in New Issue
Block a user