From c3bb35b20d6e076f73a1cad50fd6b9b94ca399a7 Mon Sep 17 00:00:00 2001 From: zhouwx <1175765986@qq.com> Date: 星期一, 06 一月 2025 16:15:05 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- src/views/onlineEducation/courseSupervision/index.vue | 58 +++++++++++++++++++++++++++++++--------------------------- 1 files changed, 31 insertions(+), 27 deletions(-) diff --git a/src/views/onlineEducation/courseSupervision/index.vue b/src/views/onlineEducation/courseSupervision/index.vue index feb3c95..4065841 100644 --- a/src/views/onlineEducation/courseSupervision/index.vue +++ b/src/views/onlineEducation/courseSupervision/index.vue @@ -24,12 +24,12 @@ >重置</el-button> </div> <el-table v-loading="loading" :data="expertList" style="margin-top: 10px"> - <el-table-column label="课程标识" align="center" prop="courseCode" /> + <el-table-column label="课程编码" align="center" prop="courseCode" /> <el-table-column label="上报平台" align="center" prop="institutionName" /> <el-table-column label="课程名称" align="center" prop="courseName" /> - <el-table-column label="课程章节数" align="center" prop="courseNum" > + <el-table-column label="课程内容" align="center" prop="courseNum" > <template #default="scope"> - <span @click="handleViewCourse(scope.row)" style="color: #1890ff;cursor: pointer">{{scope.row.courseNum}}</span> + <span @click="handleViewCourse(scope.row,'')" style="color: #1890ff;cursor: pointer">{{scope.row.courseNum}}</span> </template> </el-table-column> <el-table-column label="总课时" align="center" prop="lessonNum" /> @@ -38,7 +38,6 @@ <span style="color: #1890ff;cursor: pointer" @click="openStudent(scope.row)">{{scope.row.studentCount}}</span> </template> </el-table-column> -<!-- <el-table-column label="审核状态" align="center" prop="state" />--> <el-table-column label="删除标识" align="center" prop="delFlag" > <template #default="scope"> <span>{{scope.row.delFlag == 0 ? '未删除' : '已删除'}}</span> @@ -46,28 +45,33 @@ </el-table-column> <el-table-column label="创建时间" align="center" prop="createTime" width="100"/> <el-table-column label="最近修改时间" align="center" prop="updateTime" width="100" /> -<!-- <el-table-column label="操作" align="center" class-name="small-padding fixed-width">--> -<!-- <template #default="scope">--> -<!-- <el-button--> -<!-- size="mini"--> -<!-- type="text"--> -<!-- style="color: #1890ff"--> -<!-- @click="openUrl(scope.row)"--> -<!-- >预览课程</el-button>--> -<!--<!– <el-button–>--> -<!--<!– v-if="scope.row.state == '未审核'"–>--> -<!--<!– size="mini"–>--> -<!--<!– type="text"–>--> -<!--<!– style="color: #1890ff"–>--> -<!--<!– @click="check(scope.row)"–>--> -<!--<!– >审核</el-button>–>--> -<!-- </template>--> -<!-- </el-table-column>--> + <el-table-column label="审核状态" align="center" prop="" > + <template #default="scope"> + <span>{{scope.row.status == 1 ? '待审核' :scope.row.status == 2 ? '审核通过' :scope.row.status == 3 ? '审核驳回' : '' }}</span> + </template> + </el-table-column> + <el-table-column label="操作" align="center" class-name="small-padding fixed-width"> + <template #default="scope"> + <el-button + size="mini" + type="text" + style="color: #1890ff" + @click="handleViewCourse(scope.row,'')" + >详情</el-button> + <el-button + v-if="scope.row.status == 1" + size="mini" + type="text" + style="color: #1890ff" + @click="handleViewCourse(scope.row,'check')" + >审核</el-button> + </template> + </el-table-column> </el-table> <pagination v-show="total>0" :total="total" - :page.sync="queryParams.pageIndex" + :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize" @pagination="getList" /> @@ -97,7 +101,7 @@ platformList: [], expertList: [], queryParams: { - pageIndex: 1, + pageNum: 1, pageSize: 10, institutionId: '' }, @@ -115,7 +119,7 @@ this.expertList = res.rows.map(item => { return { ...item, - courseNum: item.outline ? item.outline.length : '' + courseNum: item.outline ? item.outline.length : '', } }) this.total = res.total @@ -143,14 +147,14 @@ }, resetQuery(){ this.queryParams = { - pageIndex: 1, + pageNum: 1, pageSize: 10, institutionId: '' } this.getList(); }, - handleViewCourse(data){ - this.$refs.courseDialogRef.openDialog(data,'course'); + handleViewCourse(data,courseType){ + this.$refs.courseDialogRef.openDialog(data,'course',courseType); }, openStudent(data) { this.$refs.studentDialog.openDialog(data,'course'); -- Gitblit v1.9.2