教师课程邀请审核

This commit is contained in:
daihh
2022-09-06 19:59:39 +08:00
parent f1199cfd01
commit a9bb2f0222
5 changed files with 60 additions and 90 deletions

View File

@@ -5,7 +5,7 @@
<!-- <el-col :span="6">
<el-cascader placeholder="资源归属" clearable v-model="resOwner" :props="defaultProps" :options="resOwnerListMap"></el-cascader>
</el-col> -->
<el-col :span="4">
<el-col :span="6">
<el-cascader placeholder="内容分类" clearable v-model="sysTypeList" :props="defaultTypeProps" :options="sysTypeListMap"></el-cascader>
</el-col>
<el-col :span="4">
@@ -14,6 +14,7 @@
<el-col :span="4">
<el-input placeholder="名称" v-model="params.keyword" clearable></el-input>
</el-col>
<!--
<el-col :span="4">
<el-select v-model="params.publish" placeholder="是否发布" clearable>
<el-option label="全部" :value="null"></el-option>
@@ -21,12 +22,13 @@
<el-option label="未发布" :value="false"></el-option>
</el-select>
</el-col>
-->
<el-col :span="8">
<el-button type="primary" @click="getseatch();" icon="el-icon-search">搜索</el-button>
<el-button icon="el-icon-refresh-right" type="primary" @click="reset">重置</el-button>
</el-col>
</el-row>
</div>
<!-- <div style="padding-left">
@@ -66,17 +68,10 @@
<span v-if="scope.row.status == 3">审核未通过</span>
</template>
</el-table-column>
<el-table-column label="是否发布" width="130px">
<template slot-scope="scope">
{{ scope.row.published !== true ? '未发布' : '已发布' }}
</template>
</el-table-column>
<el-table-column label="创建人" prop="sysCreateBy"></el-table-column>
<el-table-column label="创建时间" prop="sysCreateTime" width="200px" show-overflow-tooltip></el-table-column>
<el-table-column label="邀请" prop="auditInfo" width="150px">
<template slot-scope="scope">
{{remarksInterception(scope.row.auditInfo)}}
</template>
<el-table-column label="邀请审核" prop="auditInfo" width="150px">
<template slot-scope="scope">{{scope.row.auditInfo}}</template>
</el-table-column>
<el-table-column label="操作" width="100px" fixed="right">
<template slot-scope="scope">
@@ -97,32 +92,7 @@
:total="page.count"
></el-pagination>
</div>
<div style="height: 100px;"></div>
<!--邀请审核-->
<el-dialog custom-class="g-dialog" title="邀请教师审核课程" :visible.sync="inviteTeacher.dlgShow">
<div style="display: flex;justify-content:flex-start;padding-bottom: 10px;">
<div style="padding: 0px 5px;"><el-input placeholder="姓名" v-model="inviteTeacher.params.name"></el-input></div>
<div style="padding: 0px 5px;"><el-button @click="findTeachers()" icon="el-icon-search" type="primary" size="small">搜索</el-button></div>
</div>
<div>
<el-table max-height="500" border :data="inviteTeacher.list" style="width: 100%">
<el-table-column prop="name" label="姓名" width="180"></el-table-column>
<el-table-column prop="sex" label="性别"></el-table-column>
<el-table-column prop="code" label="工号"></el-table-column>
<el-table-column prop="orgInfo" label="组织"></el-table-column>
<el-table-column prop="orgInfo" label="选择">
<template slot-scope="scope">
<el-radio v-model="scope.row.checked">选择</el-radio>
</template>
</el-table-column>
</el-table>
</div>
<template #footer>
<el-button @click="inviteTeacher.dlgShow = false"> </el-button>
<el-button type="primary" @click="enSure">确认</el-button>
</template>
</el-dialog>
<!-- 审核 -->
<el-dialog title="审核" :visible.sync="dialogVisible" width="900px" custom-class="g-dialog" @close="examin={}">
<div v-show="expandDetails">
@@ -229,6 +199,7 @@ export default {
examin:{
detailType: '',
examineId: '',
auditId:'',
examineName: '',
},
paperJson:{items:[]},
@@ -304,15 +275,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 +311,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,7 +322,8 @@ export default {
examineData(flag) {
if(this.isExamine == 1) {
let params = {
id:this.examin.examineId,//课程id,
auditId:this.examin.auditId,
courseId:this.examin.examineId,//课程id,
title:this.examin.examineName,//课程的名称,
pass: this.auditInfo.pass,//Boolean 是否通过,
remark: this.auditInfo.remark// 备注
@@ -395,7 +359,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 +371,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 +401,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;