|
@@ -1,6 +1,5 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
- <LinkTitlesCustom :currentPaths="['试卷检查', '试卷列表']" />
|
|
|
<section class="content">
|
|
|
<div class="box box-info">
|
|
|
<div class="box-body">
|
|
@@ -10,6 +9,25 @@
|
|
|
ref="formSearch"
|
|
|
label-width="70px"
|
|
|
>
|
|
|
+ <el-form-item label="评卷名称" prop="markId">
|
|
|
+ <el-select
|
|
|
+ clearable
|
|
|
+ filterable
|
|
|
+ class="input"
|
|
|
+ v-model="formSearch.markId"
|
|
|
+ placeholder="请选择"
|
|
|
+ style="width:150px;"
|
|
|
+ @change="getCourses"
|
|
|
+ >
|
|
|
+ <el-option value>请选择</el-option>
|
|
|
+ <el-option
|
|
|
+ v-for="item in markWorkSelect"
|
|
|
+ :label="item.markName"
|
|
|
+ :value="item.markId"
|
|
|
+ :key="item.markId"
|
|
|
+ ></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
<el-form-item label="学习中心" prop="orgCode">
|
|
|
<el-select
|
|
|
:remote-method="getOrgs"
|
|
@@ -21,7 +39,7 @@
|
|
|
placeholder="请选择"
|
|
|
filterable
|
|
|
style="width:150px;"
|
|
|
- @focus="e => getSpecialtyList4Search(e.target.value)"
|
|
|
+ @focus="e => getOrgs(e.target.value)"
|
|
|
>
|
|
|
<el-option label="请选择" value></el-option>
|
|
|
<el-option
|
|
@@ -122,13 +140,6 @@
|
|
|
icon="el-icon-refresh"
|
|
|
>重置</el-button
|
|
|
>
|
|
|
- <el-button
|
|
|
- size="small"
|
|
|
- type="primary"
|
|
|
- icon="el-icon-arrow-left"
|
|
|
- @click="back"
|
|
|
- >返回</el-button
|
|
|
- >
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
|
|
@@ -214,7 +225,6 @@
|
|
|
<script>
|
|
|
import { mapState } from "vuex";
|
|
|
import { CORE_API, MARKING_API, DATA_PROCESS_API } from "@/constants/constants";
|
|
|
-import LinkTitlesCustom from "@/components/LinkTitlesCustom.vue";
|
|
|
|
|
|
export default {
|
|
|
data() {
|
|
@@ -245,14 +255,23 @@ export default {
|
|
|
tags: [],
|
|
|
loading: false,
|
|
|
examType: "",
|
|
|
- getOrgsSearchLoading: false
|
|
|
+ getOrgsSearchLoading: false,
|
|
|
+ markWorkList: []
|
|
|
};
|
|
|
},
|
|
|
- components: {
|
|
|
- LinkTitlesCustom
|
|
|
- },
|
|
|
computed: {
|
|
|
...mapState({ user: state => state.user }),
|
|
|
+ markWorkSelect() {
|
|
|
+ let markWorkNames = [];
|
|
|
+ for (let markWork of this.markWorkList) {
|
|
|
+ markWorkNames.push({
|
|
|
+ markId: markWork.id,
|
|
|
+ markName: markWork.name,
|
|
|
+ examId: markWork.examId
|
|
|
+ });
|
|
|
+ }
|
|
|
+ return markWorkNames;
|
|
|
+ },
|
|
|
isAdmin() {
|
|
|
if (sessionStorage.getItem("AdminButtonShow")) {
|
|
|
return true;
|
|
@@ -275,6 +294,11 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ getMarkWorks() {
|
|
|
+ this.$http.get(DATA_PROCESS_API + "/markWorks").then(response => {
|
|
|
+ this.markWorkList = response.data;
|
|
|
+ });
|
|
|
+ },
|
|
|
//查询学习中心
|
|
|
getOrgs(name) {
|
|
|
this.getOrgsSearchLoading = true;
|
|
@@ -287,7 +311,9 @@ export default {
|
|
|
getCourses() {
|
|
|
this.$http
|
|
|
.get(
|
|
|
- MARKING_API + "/markResults/queryExamCourseList?workId=" + this.workId
|
|
|
+ MARKING_API +
|
|
|
+ "/markResults/queryExamCourseList?workId=" +
|
|
|
+ this.formSearch.markId
|
|
|
)
|
|
|
.then(response => {
|
|
|
this.courseList = response.data;
|
|
@@ -332,26 +358,37 @@ export default {
|
|
|
},
|
|
|
//查询方法
|
|
|
searchMarkPaperCheck() {
|
|
|
- this.formSearch.workId = this.workId;
|
|
|
- this.formSearch.examType = this.examType;
|
|
|
- this.loading = true;
|
|
|
- var url =
|
|
|
- DATA_PROCESS_API +
|
|
|
- "/markResults/all/" +
|
|
|
- (this.currentPage - 1) +
|
|
|
- "/" +
|
|
|
- this.pageSize;
|
|
|
- this.$http
|
|
|
- .get(url, { params: this.formSearch })
|
|
|
- .then(response => {
|
|
|
- console.log("查询的列表集合", response);
|
|
|
- this.tableData = response.data.list;
|
|
|
- this.total = response.data.total;
|
|
|
- this.loading = false;
|
|
|
- })
|
|
|
- .catch(function(response) {
|
|
|
- console.log(response);
|
|
|
- });
|
|
|
+ if (this.formSearch.markId) {
|
|
|
+ let obj = {};
|
|
|
+ for (let item of this.markWorkList) {
|
|
|
+ if (item.id === this.formSearch.markId) {
|
|
|
+ obj = item;
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.examId = obj.examId;
|
|
|
+ this.formSearch.workId = this.formSearch.markId;
|
|
|
+ this.examType = obj.examType;
|
|
|
+ this.formSearch.examType = this.examType;
|
|
|
+ this.loading = true;
|
|
|
+ var url =
|
|
|
+ DATA_PROCESS_API +
|
|
|
+ "/markResults/all/" +
|
|
|
+ (this.currentPage - 1) +
|
|
|
+ "/" +
|
|
|
+ this.pageSize;
|
|
|
+ this.$http
|
|
|
+ .get(url, { params: this.formSearch })
|
|
|
+ .then(response => {
|
|
|
+ console.log("查询的列表集合", response);
|
|
|
+ this.tableData = response.data.list;
|
|
|
+ this.total = response.data.total;
|
|
|
+ this.loading = false;
|
|
|
+ })
|
|
|
+ .catch(function(response) {
|
|
|
+ console.log(response);
|
|
|
+ });
|
|
|
+ }
|
|
|
},
|
|
|
//导出
|
|
|
exp() {},
|
|
@@ -373,7 +410,7 @@ export default {
|
|
|
console.log("studentPaperId:", studentPaperId);
|
|
|
var urls =
|
|
|
"/marking/view_paper/" +
|
|
|
- this.workId +
|
|
|
+ this.formSearch.markId +
|
|
|
"/" +
|
|
|
this.examId +
|
|
|
"/" +
|
|
@@ -408,22 +445,12 @@ export default {
|
|
|
return str;
|
|
|
}
|
|
|
}
|
|
|
- },
|
|
|
- back() {
|
|
|
- this.$router.push({
|
|
|
- path: "/marking/mark_setting_work/checking"
|
|
|
- });
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
- this.workId = this.$route.params.workId;
|
|
|
- this.examId = this.$route.params.examId;
|
|
|
- this.examType = this.$route.params.examType;
|
|
|
//查询标记卷
|
|
|
+ this.getMarkWorks();
|
|
|
this.getTags();
|
|
|
- this.getCourses();
|
|
|
- //查询列表
|
|
|
- this.searchMarkPaperCheck();
|
|
|
}
|
|
|
};
|
|
|
</script>
|