mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-11 03:46:44 +08:00
提交时增加加载状态控制
This commit is contained in:
@@ -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;
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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];
|
||||||
|
|||||||
Reference in New Issue
Block a user