提交时增加加载状态控制

This commit is contained in:
daihh
2022-09-08 12:48:21 +08:00
parent 73f3fd43fb
commit f1e285f149
2 changed files with 4 additions and 1 deletions

View File

@@ -330,6 +330,7 @@ export default {
pass: this.auditInfo.pass,//Boolean 是否通过, pass: this.auditInfo.pass,//Boolean 是否通过,
remark: this.auditInfo.remark// 备注 remark: this.auditInfo.remark// 备注
} }
this.btnLoading=true;
if(flag){ if(flag){
apiCourse.auditAndPublish(params).then(res=>{ apiCourse.auditAndPublish(params).then(res=>{
if(res.status === 200) { if(res.status === 200) {
@@ -340,6 +341,7 @@ export default {
}else{ }else{
this.$message.error(res.message); this.$message.error(res.message);
} }
this.btnLoading=false;
}) })
}else{ }else{
apiCourse.audit(params).then(res=>{ apiCourse.audit(params).then(res=>{
@@ -351,6 +353,7 @@ export default {
}else{ }else{
this.$message.error(res.message); this.$message.error(res.message);
} }
this.btnLoading=false;
}) })
} }

View File

@@ -490,7 +490,7 @@ export default {
this.params.resOwner1 = this.resOwner[0]; this.params.resOwner1 = this.resOwner[0];
this.params.resOwner2 = this.resOwner[1]; this.params.resOwner2 = this.resOwner[1];
this.params.resOwner3 = this.resOwner[2]; this.params.resOwner3 = this.resOwner[2];
this.params.status = 2; this.params.auditStatus = 1;
this.params.pageIndex = this.page.pageIndex; this.params.pageIndex = this.page.pageIndex;
this.params.pageSize = this.page.pageSize; this.params.pageSize = this.page.pageSize;
this.params.sysType1 = this.sysTypeList[0]; this.params.sysType1 = this.sysTypeList[0];