|
@@ -1,32 +1,34 @@
|
|
<template>
|
|
<template>
|
|
<div class="wait-task-mark">
|
|
<div class="wait-task-mark">
|
|
<div class="part-box part-box-pad">
|
|
<div class="part-box part-box-pad">
|
|
- <el-table ref="TableList" :data="dataList" height="127">
|
|
|
|
|
|
+ <el-table ref="TableList" :data="dataList" :height="tableHeight">
|
|
<el-table-column
|
|
<el-table-column
|
|
type="index"
|
|
type="index"
|
|
label="序号"
|
|
label="序号"
|
|
width="70"
|
|
width="70"
|
|
:index="indexMethod"
|
|
:index="indexMethod"
|
|
></el-table-column>
|
|
></el-table-column>
|
|
- <el-table-column prop="courseName" label="课程(代码)" min-width="260">
|
|
|
|
|
|
+ <el-table-column
|
|
|
|
+ prop="courseName"
|
|
|
|
+ label="课程(代码)"
|
|
|
|
+ min-width="300"
|
|
|
|
+ show-overflow-tooltip
|
|
|
|
+ >
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
{{ scope.row.courseName }}({{ scope.row.courseCode }})
|
|
{{ scope.row.courseName }}({{ scope.row.courseCode }})
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column
|
|
|
|
- prop="openCollege"
|
|
|
|
- label="开课学院"
|
|
|
|
- min-width="160"
|
|
|
|
- ></el-table-column>
|
|
|
|
<el-table-column
|
|
<el-table-column
|
|
prop="paperNumber"
|
|
prop="paperNumber"
|
|
label="试卷编号"
|
|
label="试卷编号"
|
|
- width="160"
|
|
|
|
|
|
+ min-width="200"
|
|
|
|
+ show-overflow-tooltip
|
|
></el-table-column>
|
|
></el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
prop="groupQuestions"
|
|
prop="groupQuestions"
|
|
label="评阅题目"
|
|
label="评阅题目"
|
|
- min-width="200"
|
|
|
|
|
|
+ width="115"
|
|
|
|
+ show-overflow-tooltip
|
|
></el-table-column>
|
|
></el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
prop="markedCount"
|
|
prop="markedCount"
|
|
@@ -38,13 +40,13 @@
|
|
label="待评"
|
|
label="待评"
|
|
width="80"
|
|
width="80"
|
|
></el-table-column>
|
|
></el-table-column>
|
|
- <el-table-column prop="percent" label="评卷进度" width="100">
|
|
|
|
|
|
+ <el-table-column prop="percent" label="评卷进度" width="90">
|
|
<span slot-scope="scope"> {{ scope.row.percent || 0 }}%</span>
|
|
<span slot-scope="scope"> {{ scope.row.percent || 0 }}%</span>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
class-name="action-column"
|
|
class-name="action-column"
|
|
label="操作"
|
|
label="操作"
|
|
- width="140"
|
|
|
|
|
|
+ width="100"
|
|
fixed="right"
|
|
fixed="right"
|
|
>
|
|
>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
@@ -57,7 +59,7 @@
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
- <div class="part-page">
|
|
|
|
|
|
+ <div v-if="!isOnePage" class="part-page">
|
|
<el-pagination
|
|
<el-pagination
|
|
background
|
|
background
|
|
layout="total, prev, pager, next, jumper"
|
|
layout="total, prev, pager, next, jumper"
|
|
@@ -74,7 +76,7 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
-import { mapActions, mapMutations } from "vuex";
|
|
|
|
|
|
+import { mapState, mapActions } from "vuex";
|
|
import markMinxin from "@/modules/mark/markMinxin";
|
|
import markMinxin from "@/modules/mark/markMinxin";
|
|
import { markWaitTaskListPage } from "../api";
|
|
import { markWaitTaskListPage } from "../api";
|
|
|
|
|
|
@@ -90,6 +92,18 @@ export default {
|
|
curTask: {},
|
|
curTask: {},
|
|
};
|
|
};
|
|
},
|
|
},
|
|
|
|
+ computed: {
|
|
|
|
+ ...mapState("exam", ["waitTask"]),
|
|
|
|
+ isOnePage() {
|
|
|
|
+ return this.waitTask.mark <= 3;
|
|
|
|
+ },
|
|
|
|
+ pageSize() {
|
|
|
|
+ return this.isOnePage ? 3 : 2;
|
|
|
|
+ },
|
|
|
|
+ tableHeight() {
|
|
|
|
+ return this.isOnePage ? 174 : 127;
|
|
|
|
+ },
|
|
|
|
+ },
|
|
mounted() {
|
|
mounted() {
|
|
window.addEventListener("focus", this.updateList);
|
|
window.addEventListener("focus", this.updateList);
|
|
this.getList();
|
|
this.getList();
|
|
@@ -98,21 +112,19 @@ export default {
|
|
window.removeEventListener("focus", this.updateList);
|
|
window.removeEventListener("focus", this.updateList);
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
- ...mapMutations("exam", ["updateWaitTask"]),
|
|
|
|
...mapActions("exam", ["updateWaitTaskCount"]),
|
|
...mapActions("exam", ["updateWaitTaskCount"]),
|
|
- updateList() {
|
|
|
|
- this.getList();
|
|
|
|
- this.updateWaitTaskCount();
|
|
|
|
|
|
+ async updateList() {
|
|
|
|
+ await this.updateWaitTaskCount();
|
|
|
|
+ await this.getList();
|
|
},
|
|
},
|
|
async getList() {
|
|
async getList() {
|
|
const datas = {
|
|
const datas = {
|
|
pageNumber: this.current,
|
|
pageNumber: this.current,
|
|
- pageSize: this.size,
|
|
|
|
|
|
+ pageSize: this.pageSize,
|
|
};
|
|
};
|
|
const data = await markWaitTaskListPage(datas);
|
|
const data = await markWaitTaskListPage(datas);
|
|
this.dataList = data.records;
|
|
this.dataList = data.records;
|
|
this.total = data.total;
|
|
this.total = data.total;
|
|
- this.updateWaitTask({ mark: this.total });
|
|
|
|
},
|
|
},
|
|
toPage(page) {
|
|
toPage(page) {
|
|
this.current = page;
|
|
this.current = page;
|