|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<div class="assign-result">
|
|
|
- <el-form ref="FilterForm" label-position="left" label-width="85px" inline>
|
|
|
+ <el-form ref="FilterForm" label-position="left" inline>
|
|
|
<el-form-item label="考查学院:">
|
|
|
<kc-college-select
|
|
|
v-model="filter.kcCollege"
|
|
@@ -29,10 +29,26 @@
|
|
|
</el-form>
|
|
|
|
|
|
<el-table ref="TableList" :data="dataList">
|
|
|
- <el-table-column prop="courseCode" label="课程代码"></el-table-column>
|
|
|
- <el-table-column prop="courseName" label="课程名称"></el-table-column>
|
|
|
- <el-table-column prop="studentCode" label="学号"></el-table-column>
|
|
|
- <el-table-column prop="studentName" label="姓名"></el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ prop="courseCode"
|
|
|
+ label="课程代码"
|
|
|
+ min-width="150"
|
|
|
+ ></el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ prop="courseName"
|
|
|
+ label="课程名称"
|
|
|
+ min-width="150"
|
|
|
+ ></el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ prop="studentCode"
|
|
|
+ label="学号"
|
|
|
+ width="160"
|
|
|
+ ></el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ prop="studentName"
|
|
|
+ label="姓名"
|
|
|
+ width="120"
|
|
|
+ ></el-table-column>
|
|
|
<el-table-column
|
|
|
prop="objectiveScore"
|
|
|
label="客观总分"
|
|
@@ -48,17 +64,38 @@
|
|
|
label="总分"
|
|
|
width="80"
|
|
|
></el-table-column>
|
|
|
- <el-table-column prop="scoreDetail" label="评分明细"></el-table-column>
|
|
|
- <el-table-column prop="clazzName" label="班级"></el-table-column>
|
|
|
- <el-table-column prop="collegeName" label="学院"></el-table-column>
|
|
|
- <el-table-column prop="teacherName" label="任课老师"></el-table-column>
|
|
|
+ <el-table-column class-name="action-column" label="评分明细" width="100">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-button
|
|
|
+ class="btn-primary-strict"
|
|
|
+ type="text"
|
|
|
+ @click="toViewScoreDetail(scope.row)"
|
|
|
+ >查看</el-button
|
|
|
+ >
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ prop="clazzName"
|
|
|
+ label="班级"
|
|
|
+ min-width="150"
|
|
|
+ ></el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ prop="collegeName"
|
|
|
+ label="学院"
|
|
|
+ min-width="150"
|
|
|
+ ></el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ prop="teacherName"
|
|
|
+ label="任课老师"
|
|
|
+ width="120"
|
|
|
+ ></el-table-column>
|
|
|
<el-table-column
|
|
|
prop="assignScore"
|
|
|
label="赋分后总分"
|
|
|
width="100"
|
|
|
></el-table-column>
|
|
|
</el-table>
|
|
|
- <!-- <div class="part-page">
|
|
|
+ <div class="part-page">
|
|
|
<el-pagination
|
|
|
background
|
|
|
layout="total,prev, pager, next"
|
|
@@ -69,15 +106,23 @@
|
|
|
@current-change="toPage"
|
|
|
>
|
|
|
</el-pagination>
|
|
|
- </div> -->
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- ScoreDetailDialog -->
|
|
|
+ <score-detail-dialog
|
|
|
+ ref="ScoreDetailDialog"
|
|
|
+ :data="curRow"
|
|
|
+ ></score-detail-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import { assignmentCalcResult } from "../../api";
|
|
|
+import ScoreDetailDialog from "./ScoreDetailDialog.vue";
|
|
|
|
|
|
export default {
|
|
|
name: "assign-result",
|
|
|
+ components: { ScoreDetailDialog },
|
|
|
props: {
|
|
|
assignInfo: {
|
|
|
type: Object,
|
|
@@ -97,6 +142,8 @@ export default {
|
|
|
size: this.GLOBAL.pageSize,
|
|
|
total: 0,
|
|
|
dataList: [],
|
|
|
+ curRow: {},
|
|
|
+ scoreDetailDialog: false,
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
@@ -104,17 +151,22 @@ export default {
|
|
|
const datas = {
|
|
|
...this.assignInfo,
|
|
|
...this.filter,
|
|
|
+ pageNumber: this.current,
|
|
|
+ pageSize: this.size,
|
|
|
};
|
|
|
|
|
|
const data = await assignmentCalcResult(datas);
|
|
|
- this.dataList = data || [];
|
|
|
- // this.dataList = data.records;
|
|
|
- // this.total = data.total;
|
|
|
+ this.dataList = data.records;
|
|
|
+ this.total = data.total;
|
|
|
},
|
|
|
toPage(page) {
|
|
|
this.current = page;
|
|
|
this.getList();
|
|
|
},
|
|
|
+ toViewScoreDetail(row) {
|
|
|
+ this.curRow = row;
|
|
|
+ this.$refs.ScoreDetailDialog.open();
|
|
|
+ },
|
|
|
},
|
|
|
};
|
|
|
</script>
|