|
@@ -14,24 +14,25 @@
|
|
|
<div class="part-box part-box-pad">
|
|
|
<el-table ref="TableList" :data="taskList">
|
|
|
<el-table-column prop="examId" label="考试ID"></el-table-column>
|
|
|
- <el-table-column prop="examName" label="考试姓名"></el-table-column>
|
|
|
- <el-table-column prop="enable" label="状态" width="100">
|
|
|
+ <el-table-column prop="paperNumber" label="试卷ID"></el-table-column>
|
|
|
+ <el-table-column prop="paperType" label="试卷类型"></el-table-column>
|
|
|
+ <el-table-column prop="status" label="状态" width="100">
|
|
|
<template slot-scope="scope">
|
|
|
- {{ scope.row.enable | enableFilter }}
|
|
|
+ {{ scope.row.status | markTaskSyncStatusFilter }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column class-name="action-column" label="操作" width="220px">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button
|
|
|
- v-if="!checkPrivilege('link', 'edit')"
|
|
|
+ v-if="checkPrivilege('link', 'UploadStructure')"
|
|
|
class="btn-primary"
|
|
|
type="text"
|
|
|
@click="toUpload(scope.row)"
|
|
|
>上传试卷结构/标答</el-button
|
|
|
>
|
|
|
<el-button
|
|
|
- v-if="!checkPrivilege('link', 'reset')"
|
|
|
- class="btn-danger"
|
|
|
+ v-if="checkPrivilege('link', 'markerLogin')"
|
|
|
+ class="btn-primary"
|
|
|
type="text"
|
|
|
@click="toMark(scope.row)"
|
|
|
>开始阅卷</el-button
|
|
@@ -61,8 +62,9 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { markTaskListPage } from "../api";
|
|
|
+import { markTaskListPage, yptAuth } from "../api";
|
|
|
import UploadPaperAnswerDialog from "../components/UploadPaperAnswerDialog";
|
|
|
+import { autoSubmitForm } from "@/plugins/utils";
|
|
|
|
|
|
export default {
|
|
|
name: "mark-task-manage",
|
|
@@ -77,7 +79,7 @@ export default {
|
|
|
{
|
|
|
id: "111",
|
|
|
examId: "111",
|
|
|
- examName: "232323",
|
|
|
+ paperNumber: "232323",
|
|
|
paperType: "A,B",
|
|
|
enable: false
|
|
|
}
|
|
@@ -90,7 +92,7 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
async getList() {
|
|
|
- if (!this.checkPrivilege("list", "list")) return;
|
|
|
+ // if (!this.checkPrivilege("list", "list")) return;
|
|
|
const datas = {
|
|
|
...this.filter,
|
|
|
pageNumber: this.current,
|
|
@@ -111,6 +113,15 @@ export default {
|
|
|
},
|
|
|
toMark(row) {
|
|
|
console.log(row);
|
|
|
+ this.toAuth();
|
|
|
+ },
|
|
|
+ async toAuth() {
|
|
|
+ const data = await yptAuth({});
|
|
|
+ console.log(data);
|
|
|
+ const url = data.redirectUrl;
|
|
|
+ const params = { ...data, returnUrl: window.location.href };
|
|
|
+ delete params.redirectUrl;
|
|
|
+ autoSubmitForm(url, params);
|
|
|
}
|
|
|
}
|
|
|
};
|