|
@@ -1,98 +0,0 @@
|
|
|
-<template>
|
|
|
- <div class="mark-task-manage">
|
|
|
- <div class="part-box part-box-filter part-box-flex">
|
|
|
- <div></div>
|
|
|
- <div class="part-box-action">
|
|
|
- <el-button
|
|
|
- v-if="checkPrivilege('button', 'select')"
|
|
|
- type="primary"
|
|
|
- @click="toPage(1)"
|
|
|
- >查询</el-button
|
|
|
- >
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <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="courseName" label="课程名称"></el-table-column>
|
|
|
- <el-table-column prop="status" label="状态" width="100">
|
|
|
- <template slot-scope="scope">
|
|
|
- {{ 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', 'markerLogin')"
|
|
|
- class="btn-primary"
|
|
|
- type="text"
|
|
|
- @click="toMark(scope.row)"
|
|
|
- >开始阅卷</el-button
|
|
|
- >
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- </el-table>
|
|
|
- <div class="part-page">
|
|
|
- <el-pagination
|
|
|
- background
|
|
|
- layout="total,prev, pager, next"
|
|
|
- :current-page="current"
|
|
|
- :total="total"
|
|
|
- :page-size="size"
|
|
|
- @current-change="toPage"
|
|
|
- >
|
|
|
- </el-pagination>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-</template>
|
|
|
-
|
|
|
-<script>
|
|
|
-import { markTaskListPage, yptAuth } from "../api";
|
|
|
-import { autoSubmitForm } from "@/plugins/utils";
|
|
|
-
|
|
|
-export default {
|
|
|
- name: "mark-task-manage",
|
|
|
- data() {
|
|
|
- return {
|
|
|
- filter: {},
|
|
|
- current: 1,
|
|
|
- size: this.GLOBAL.pageSize,
|
|
|
- total: 0,
|
|
|
- taskList: [],
|
|
|
- curTask: {}
|
|
|
- };
|
|
|
- },
|
|
|
- mounted() {
|
|
|
- this.toPage(1);
|
|
|
- },
|
|
|
- methods: {
|
|
|
- async getList() {
|
|
|
- if (!this.checkPrivilege("list", "list")) return;
|
|
|
- const datas = {
|
|
|
- ...this.filter,
|
|
|
- pageNumber: this.current,
|
|
|
- pageSize: this.size
|
|
|
- };
|
|
|
- const data = await markTaskListPage(datas);
|
|
|
- this.taskList = data.records;
|
|
|
- this.total = data.total;
|
|
|
- },
|
|
|
- toPage(page) {
|
|
|
- this.current = page;
|
|
|
- this.getList();
|
|
|
- },
|
|
|
- toMark(row) {
|
|
|
- console.log(row);
|
|
|
- this.toAuth();
|
|
|
- },
|
|
|
- async toAuth() {
|
|
|
- const data = await yptAuth({});
|
|
|
- const url = data.redirectUrl;
|
|
|
- const params = { ...data, returnUrl: window.location.href };
|
|
|
- delete params.redirectUrl;
|
|
|
- autoSubmitForm(url, params);
|
|
|
- }
|
|
|
- }
|
|
|
-};
|
|
|
-</script>
|