| | |
| | | <el-col :span="5"> |
| | | <div class="nameClass"> |
| | | <div class="bottom5">考试名称</div> |
| | | <div class="title">{{examInfo.examName}}</div> |
| | | <div class="title">{{ examInfo.examName }}</div> |
| | | </div> |
| | | </el-col> |
| | | <el-col :span="5"> |
| | | <div class="nameClass"> |
| | | <div class="bottom5">试卷名称</div> |
| | | <div class="title">{{examInfo.examPaperName}}</div> |
| | | <div class="title">{{ examInfo.examPaperName }}</div> |
| | | </div> |
| | | </el-col> |
| | | <el-col :span="3"> |
| | | <div class="staticNum"> |
| | | <div class="bottom5">应考</div> |
| | | <div class="title">{{ examInfo.shouldJoinNum }}人</div> |
| | | </div> |
| | | </el-col> |
| | | <el-col :span="4"> |
| | | <div class="staticNum"> |
| | | <div class="bottom5">应考人数</div> |
| | | <div class="title">{{examInfo.shouldJoinNum}}</div> |
| | | <div class="bottom5">参考</div> |
| | | <div class="title">{{ examInfo.joinNum }}人</div> |
| | | </div> |
| | | </el-col> |
| | | <el-col :span="3"> |
| | | <div class="staticNum"> |
| | | <div class="bottom5">缺考</div> |
| | | <div class="title">{{ examInfo.missJoinNum }}人</div> |
| | | </div> |
| | | </el-col> |
| | | <el-col :span="4"> |
| | | <div class="staticNum"> |
| | | <div class="bottom5">缺考人数</div> |
| | | <div class="title">{{examInfo.missJoinNum}}</div> |
| | | </div> |
| | | </el-col> |
| | | <el-col :span="4"> |
| | | <div class="staticNum"> |
| | | <div class="bottom5">参加但未完成人数</div> |
| | | <div class="title">{{examInfo.joinButNotFinishNum}}</div> |
| | | <div class="bottom5">参考但未提交</div> |
| | | <div class="title">{{ examInfo.joinButNotFinishNum }}人</div> |
| | | </div> |
| | | </el-col> |
| | | </el-row> |
| | |
| | | > |
| | | <el-table-column |
| | | align="center" |
| | | prop="id" |
| | | prop="userId" |
| | | label="学号" |
| | | > |
| | | </el-table-column> |
| | |
| | | > |
| | | </el-table-column> |
| | | <el-table-column |
| | | align="center" |
| | | prop="phone" |
| | | label="系统自动估分(选择题型)" |
| | | > |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="操作" |
| | | align="center" |
| | | width="300px" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <el-button @click="markPaper(scope.row.userId)" type="warning">阅卷</el-button> |
| | | <el-button @click="markPaper(scope.row)" type="warning">阅卷</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | this.getExamInfo() |
| | | } |
| | | }, |
| | | // watch: { |
| | | // $route: { |
| | | // handler () { |
| | | // this.reloadPage() |
| | | // } |
| | | // } |
| | | // }, |
| | | data () { |
| | | return { |
| | | examInfo: { |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | statusFormatter (row) { |
| | | if (row.status === 'finish' || row.markPaperStatus === 'finish') { |
| | | // reloadPage () { |
| | | // this.examInfo.examName = this.$route.query.examName |
| | | // this.examInfo.examId = this.$route.query.examId |
| | | // console.log('------->' + this.examInfo.examName + '------->' + this.examInfo.examId) |
| | | // if (this.examInfo.examId) { |
| | | // this.getExamInfo() |
| | | // } |
| | | // }, |
| | | statusFormatter (row, column, cellValue, index) { |
| | | if (cellValue === 'finish') { |
| | | return '完成' |
| | | } else if (row.status === 'temp' || row.markPaperStatus === 'temp') { |
| | | } else if (cellValue === 'temp') { |
| | | return '未完成' |
| | | } |
| | | }, |
| | | markPaper (userId) { |
| | | markPaper (row) { |
| | | // todo打开阅卷页面 |
| | | this.$router.push({path: "/exam/mark/paper/detail", query: {examId: this.examInfo.examId, examName: this.examInfo.examName, userId: userId}}) |
| | | this.$router.push({ |
| | | path: '/exam/mark/paper/detail', |
| | | query: { examId: this.examInfo.examId, examName: this.examInfo.examName, userId: row.userId } |
| | | }) |
| | | }, |
| | | getExamInfo () { |
| | | getExamMarkPaperInfo(this.examInfo.examId).then(res => { |
| | |
| | | .title { |
| | | font-size: 18px; |
| | | } |
| | | |
| | | .bottom5 { |
| | | margin-bottom: 5px; |
| | | } |
| | | |
| | | .nameInfo { |
| | | width: 100%; |
| | | display: flex; |
| | | flex-direction: column; |
| | | } |
| | | |
| | | .nameClass { |
| | | width: 100%; |
| | | display: flex; |
| | |
| | | height: 70px; |
| | | background-color: #cb5858; |
| | | } |
| | | |
| | | .staticNum { |
| | | width: 100%; |
| | | display: flex; |