|
@@ -3,18 +3,28 @@
|
|
|
<div class="part-box part-box-filter part-box-flex">
|
|
|
<el-form ref="FilterForm" label-position="left" label-width="90px" inline>
|
|
|
<el-form-item label="开课学院:">
|
|
|
- <el-input
|
|
|
- v-model.trim="filter.collegeName"
|
|
|
+ <college-select
|
|
|
+ v-model.trim="filter.collegeId"
|
|
|
placeholder="开课学院"
|
|
|
clearable
|
|
|
- ></el-input>
|
|
|
+ @change="facultyChange"
|
|
|
+ ></college-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="开课部门:">
|
|
|
- <teaching-room-select
|
|
|
- v-model="filter.teachingRoomName"
|
|
|
+ <el-select
|
|
|
+ v-model="filter.teachingRoomId"
|
|
|
placeholder="开课部门"
|
|
|
+ filterable
|
|
|
clearable
|
|
|
- ></teaching-room-select>
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in teachingRooms"
|
|
|
+ :key="item.id"
|
|
|
+ :value="item.id"
|
|
|
+ :label="item.name"
|
|
|
+ >
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="完成状态:">
|
|
|
<el-select
|
|
@@ -92,9 +102,7 @@
|
|
|
label="印刷计划"
|
|
|
></el-table-column>
|
|
|
<el-table-column prop="printSum" label="总印份数"></el-table-column>
|
|
|
- <el-table-column prop="status" label="状态">
|
|
|
- <span slot-scope="scope">{{ FINISH_STATUS[scope.row.status] }}</span>
|
|
|
- </el-table-column>
|
|
|
+ <el-table-column prop="statusStr" label="状态"> </el-table-column>
|
|
|
</el-table>
|
|
|
<div class="part-page">
|
|
|
<el-pagination
|
|
@@ -113,6 +121,7 @@
|
|
|
|
|
|
<script>
|
|
|
import { statisticsList } from "../api";
|
|
|
+import { organizationFindByTypeList } from "../../base/api";
|
|
|
import UploadButton from "../../../components/UploadButton";
|
|
|
|
|
|
export default {
|
|
@@ -121,10 +130,10 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
filter: {
|
|
|
+ collegeId: "",
|
|
|
+ teachingRoomId: "",
|
|
|
courseName: "",
|
|
|
teacherName: "",
|
|
|
- collegeName: "",
|
|
|
- teachingRoomName: "",
|
|
|
status: ""
|
|
|
},
|
|
|
current: 1,
|
|
@@ -132,11 +141,12 @@ export default {
|
|
|
total: 0,
|
|
|
dataList: [],
|
|
|
curRow: {},
|
|
|
+ teachingRooms: [],
|
|
|
FINISH_STATUS: { UN_FINISH: "未完成", FINISH: "已完成" },
|
|
|
// import
|
|
|
uploadUrl: "/api/admin/statistics/import",
|
|
|
- downloadUrl: "/temps/studentTemplate.xlsx",
|
|
|
- dfilename: "学生导入模板.xlsx"
|
|
|
+ downloadUrl: "/temps/examStatisticsTemplate.xlsx",
|
|
|
+ dfilename: "命题计划导入模板.xlsx"
|
|
|
};
|
|
|
},
|
|
|
mounted() {
|
|
@@ -159,8 +169,19 @@ export default {
|
|
|
this.current = page;
|
|
|
this.getList();
|
|
|
},
|
|
|
- campusChange() {
|
|
|
- this.filter.clazzId = "";
|
|
|
+ async getTeachingRooms() {
|
|
|
+ this.teachingRooms = await organizationFindByTypeList({
|
|
|
+ orgType: "TEACHING_ROOM",
|
|
|
+ orgId: this.filter.collegeId,
|
|
|
+ auth: false
|
|
|
+ });
|
|
|
+ },
|
|
|
+ facultyChange(val) {
|
|
|
+ this.filter.teachingRoomId = "";
|
|
|
+ this.teachingRooms = [];
|
|
|
+
|
|
|
+ if (!val) return;
|
|
|
+ this.getTeachingRooms();
|
|
|
},
|
|
|
// import
|
|
|
uplaodError(errorData) {
|