|
@@ -1,6 +1,11 @@
|
|
|
<template>
|
|
<template>
|
|
|
- <el-row>
|
|
|
|
|
- <el-row>
|
|
|
|
|
|
|
+ <el-container>
|
|
|
|
|
+ <el-header height="220">
|
|
|
|
|
+ <el-row style="margin-top: 10px">
|
|
|
|
|
+ <el-button type="plain" icon="el-icon-plus" @click="addSubjectVisible = true">添加</el-button>
|
|
|
|
|
+ </el-row>
|
|
|
|
|
+ </el-header>
|
|
|
|
|
+ <el-main>
|
|
|
<el-table
|
|
<el-table
|
|
|
:data="dataList"
|
|
:data="dataList"
|
|
|
border
|
|
border
|
|
@@ -12,48 +17,47 @@
|
|
|
type="index"
|
|
type="index"
|
|
|
/>
|
|
/>
|
|
|
<el-table-column
|
|
<el-table-column
|
|
|
- prop="examName"
|
|
|
|
|
|
|
+ prop="subjectName"
|
|
|
label="科目"
|
|
label="科目"
|
|
|
/>
|
|
/>
|
|
|
<el-table-column
|
|
<el-table-column
|
|
|
- prop="passScore"
|
|
|
|
|
|
|
+ prop="question7Count"
|
|
|
label="单选题"
|
|
label="单选题"
|
|
|
/>
|
|
/>
|
|
|
<el-table-column
|
|
<el-table-column
|
|
|
- prop="passScore"
|
|
|
|
|
|
|
+ prop="question7Count"
|
|
|
label="多选题"
|
|
label="多选题"
|
|
|
/>
|
|
/>
|
|
|
<el-table-column
|
|
<el-table-column
|
|
|
- prop="duration"
|
|
|
|
|
|
|
+ prop="question7Count"
|
|
|
label="不定项选择题"
|
|
label="不定项选择题"
|
|
|
/>
|
|
/>
|
|
|
<el-table-column
|
|
<el-table-column
|
|
|
- prop="totalScore"
|
|
|
|
|
|
|
+ prop="question7Count"
|
|
|
label="填空题"
|
|
label="填空题"
|
|
|
/>
|
|
/>
|
|
|
<el-table-column
|
|
<el-table-column
|
|
|
- prop="passScore"
|
|
|
|
|
|
|
+ prop="question7Count"
|
|
|
label="判断题"
|
|
label="判断题"
|
|
|
/>
|
|
/>
|
|
|
<el-table-column
|
|
<el-table-column
|
|
|
- prop="passScore"
|
|
|
|
|
|
|
+ prop="question7Count"
|
|
|
label="问答题"
|
|
label="问答题"
|
|
|
/>
|
|
/>
|
|
|
<el-table-column
|
|
<el-table-column
|
|
|
- prop="passScore"
|
|
|
|
|
|
|
+ prop="question7Count"
|
|
|
label="理解题"
|
|
label="理解题"
|
|
|
/>
|
|
/>
|
|
|
<el-table-column
|
|
<el-table-column
|
|
|
- prop="passScore"
|
|
|
|
|
|
|
+ prop="paperCount"
|
|
|
label="试卷"
|
|
label="试卷"
|
|
|
/>
|
|
/>
|
|
|
</el-table>
|
|
</el-table>
|
|
|
- </el-row>
|
|
|
|
|
- <el-row>
|
|
|
|
|
<el-pagination
|
|
<el-pagination
|
|
|
- background
|
|
|
|
|
|
|
+ style="margin-top: 25px"
|
|
|
:small="screenWidth <= 768"
|
|
:small="screenWidth <= 768"
|
|
|
- layout="prev, pager, next"
|
|
|
|
|
|
|
+ layout="total, sizes, prev, pager, next, jumper"
|
|
|
|
|
+ :page-sizes="[10, 20, 50]"
|
|
|
:page-size="pageSize"
|
|
:page-size="pageSize"
|
|
|
:current-page="currentPage"
|
|
:current-page="currentPage"
|
|
|
:total="totalSize"
|
|
:total="totalSize"
|
|
@@ -61,12 +65,12 @@
|
|
|
@prev-click="handleCurrentChange"
|
|
@prev-click="handleCurrentChange"
|
|
|
@next-click="handleCurrentChange"
|
|
@next-click="handleCurrentChange"
|
|
|
/>
|
|
/>
|
|
|
- </el-row>
|
|
|
|
|
- </el-row>
|
|
|
|
|
|
|
+ </el-main>
|
|
|
|
|
+ </el-container>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
-import {getExams} from '@/api/exam'
|
|
|
|
|
|
|
+import { getExamSubjects } from '@/api/exam'
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
name: 'ExamSubject',
|
|
name: 'ExamSubject',
|
|
@@ -77,7 +81,8 @@ export default {
|
|
|
currentPage: 1,
|
|
currentPage: 1,
|
|
|
pageSize: 20,
|
|
pageSize: 20,
|
|
|
totalSize: 0,
|
|
totalSize: 0,
|
|
|
- dataList: []
|
|
|
|
|
|
|
+ dataList: [],
|
|
|
|
|
+ addSubjectVisible: false
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
created() {
|
|
created() {
|
|
@@ -93,7 +98,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
getData() {
|
|
getData() {
|
|
|
this.dataList = []
|
|
this.dataList = []
|
|
|
- getExams(this.currentPage).then(resp => {
|
|
|
|
|
|
|
+ getExamSubjects(this.currentPage).then(resp => {
|
|
|
if (resp.code === 0) {
|
|
if (resp.code === 0) {
|
|
|
this.dataList = resp.data.list
|
|
this.dataList = resp.data.list
|
|
|
this.totalSize = resp.data.totalSize
|
|
this.totalSize = resp.data.totalSize
|