|
@@ -3,11 +3,11 @@
|
|
|
* @Author: 旭颖
|
|
|
* @Date: 2023-03-22 10:15:16
|
|
|
* @LastEditors: Please set LastEditors
|
|
|
- * @LastEditTime: 2023-03-24 16:44:45
|
|
|
+ * @LastEditTime: 2023-03-24 18:13:52
|
|
|
-->
|
|
|
<template>
|
|
|
<div class="index-home" v-loading.fullscreen.lock="loadingFull">
|
|
|
- <el-page-header @back="goBack" content="考核详情"> </el-page-header>
|
|
|
+ <el-page-header @back="goBack" content="文件详情"> </el-page-header>
|
|
|
<el-table :data="tableData" style="width: 100%" border>
|
|
|
<el-table-column label="序号" width="50" type="index" />
|
|
|
<el-table-column
|
|
@@ -34,19 +34,17 @@
|
|
|
min-width="100"
|
|
|
align="center"
|
|
|
/>
|
|
|
-
|
|
|
<el-table-column
|
|
|
prop="award_day"
|
|
|
label="时间"
|
|
|
min-width="100"
|
|
|
align="center"
|
|
|
/>
|
|
|
- <el-table-column
|
|
|
- prop="point"
|
|
|
- label="得分"
|
|
|
- min-width="100"
|
|
|
- align="center"
|
|
|
- />
|
|
|
+ <el-table-column prop="point" label="得分" min-width="100" align="center">
|
|
|
+ <template #default="{ row }">
|
|
|
+ {{ row.check_status == 2 ? row.check_point : row.point }}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column
|
|
|
prop="check_status"
|
|
|
label="审核状态"
|
|
@@ -73,9 +71,9 @@
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
<!-- 上传文件 -->
|
|
|
- <checkOut ref="check-out" />
|
|
|
+ <checkOut ref="check-out" @fetch-data="getListAdmin" />
|
|
|
<!-- 文件详情 -->
|
|
|
- <detail ref="detail" />
|
|
|
+ <detail ref="detail" @fetch-data="getListAdmin" />
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
@@ -133,8 +131,11 @@ export default {
|
|
|
},
|
|
|
//学生提交列表
|
|
|
async getListAdmin() {
|
|
|
- this.loadingFull = true;
|
|
|
let route = this.$route.query;
|
|
|
+ if (route.role !== "admin") {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ this.loadingFull = true;
|
|
|
let params = {
|
|
|
type: this.type,
|
|
|
examine_question_id: route.examine_question_id,
|
|
@@ -156,9 +157,20 @@ export default {
|
|
|
},
|
|
|
//返回考核列表
|
|
|
goBack() {
|
|
|
- this.$router.push({
|
|
|
- path: "/kaohe/checkList",
|
|
|
- });
|
|
|
+ let route = this.$route.query;
|
|
|
+ if (route.role == "admin") {
|
|
|
+ this.$router.push({
|
|
|
+ path: "/kaohe/uploadList",
|
|
|
+ query: {
|
|
|
+ type: 2,
|
|
|
+ id: route.examine_question_id,
|
|
|
+ },
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ this.$router.push({
|
|
|
+ path: "/kaohe/checkList",
|
|
|
+ });
|
|
|
+ }
|
|
|
},
|
|
|
//切换页码
|
|
|
handleCurrentChange(e) {
|