diff --git a/src/views/course/WaitAudit.vue b/src/views/course/WaitAudit.vue index c27bff49..dedd1555 100644 --- a/src/views/course/WaitAudit.vue +++ b/src/views/course/WaitAudit.vue @@ -5,7 +5,7 @@ - + @@ -14,6 +14,7 @@ + 搜索 重置 - + - -
-
-
搜索
-
-
- - - - - - - - - -
- -
@@ -184,7 +154,7 @@
取 消 - 提交 + 提交
@@ -221,6 +191,7 @@ export default { data() { return { loading: true, + btnLoading:false, sysTypeList: [], sysTypeListMap:[], resOwnerListMap:[], @@ -229,6 +200,7 @@ export default { examin:{ detailType: '', examineId: '', + auditId:'', examineName: '', }, paperJson:{items:[]}, @@ -304,15 +276,7 @@ export default { this.loadSysTypes(); }, methods: { - remarksInterception(info){ - let name = ''; - if(info == '' || info == null || info == undefined) { - name = '--'; - } else { - name = info.split('请')[0]; - } - return name; - }, + getseatch(){ this.params.pageIndex= 1; this.searchData(); @@ -348,7 +312,7 @@ export default { //预览跳转页面 toPreview(row) { if(row.type == 10) { - + window.open(`${this.webBaseUrl}/course/microPreview?id=${row.id}`); } else{ window.open(`${this.webBaseUrl}/course/rePreview?id=${row.id}`); @@ -359,11 +323,14 @@ export default { examineData(flag) { if(this.isExamine == 1) { let params = { - id:this.examin.examineId,//课程id, + auditId:this.examin.auditId, + from:2, + courseId:this.examin.examineId,//课程id, title:this.examin.examineName,//课程的名称, pass: this.auditInfo.pass,//Boolean 是否通过, remark: this.auditInfo.remark// 备注 } + this.btnLoading=true; if(flag){ apiCourse.auditAndPublish(params).then(res=>{ if(res.status === 200) { @@ -374,6 +341,7 @@ export default { }else{ this.$message.error(res.message); } + this.btnLoading=false; }) }else{ apiCourse.audit(params).then(res=>{ @@ -385,6 +353,7 @@ export default { }else{ this.$message.error(res.message); } + this.btnLoading=false; }) } @@ -395,7 +364,7 @@ export default { }, // 课程查询 async searchData() { - + this.params.resOwner1 = this.resOwner[0]; this.params.resOwner2 = this.resOwner[1]; this.params.resOwner3 = this.resOwner[2]; @@ -407,7 +376,7 @@ export default { this.params.sysType3 = this.sysTypeList[2]; try { this.loading = true; - const {result, status,message} = await apiCourse.auditList(this.params); + const {result, status,message} = await apiCourse.teacherAuditList(this.params); if(status === 200) { this.pageData = result.list; @@ -437,6 +406,7 @@ export default { }, toExamine(row) { this.audit = {}; + this.examin.auditId=row.auditId; this.examin.detailType = row.type; this.examin.examineId = row.id; this.examin.examineName = row.name; @@ -469,11 +439,7 @@ export default { this.inviteTeacher.dlgShow = true; }, findTeachers() { - this.inviteTeacher.list = [ - { id: '1', name: '李玉冰', type:'通过',text: '实用',sex: '男', code: '1023123', orgInfo: '教育技术中心', checked: false }, - { id: '2', name: '李玉冰', type:'未通过',text: '内容在调整',sex: '男', code: '1023123', orgInfo: '教育技术中心', checked: false }, - { id: '3', name: '李玉冰', type:'驳回',text: '内容重复',sex: '男', code: '1023123', orgInfo: '教育技术中心', checked: false } - ]; + this.inviteTeacher.list = []; }, showQrimage() { this.qrcodeShow = true; diff --git a/src/views/course/WaitAudited.vue b/src/views/course/WaitAudited.vue index a60abbf7..089cd1e4 100644 --- a/src/views/course/WaitAudited.vue +++ b/src/views/course/WaitAudited.vue @@ -2,38 +2,27 @@ - - - - - - - - + + + + -
+
-
- - + + - @@ -116,9 +92,11 @@