|
@@ -82,7 +82,6 @@
|
|
<el-form-item label="课程" prop="courseCode">
|
|
<el-form-item label="课程" prop="courseCode">
|
|
<el-select
|
|
<el-select
|
|
clearable
|
|
clearable
|
|
- @change="getUserList"
|
|
|
|
filterable
|
|
filterable
|
|
class="input"
|
|
class="input"
|
|
v-model="formSearch.courseCode"
|
|
v-model="formSearch.courseCode"
|
|
@@ -100,8 +99,8 @@
|
|
<el-form-item label="评委" prop="userId">
|
|
<el-form-item label="评委" prop="userId">
|
|
<el-select
|
|
<el-select
|
|
clearable
|
|
clearable
|
|
- class="input"
|
|
|
|
filterable
|
|
filterable
|
|
|
|
+ class="input"
|
|
v-model="formSearch.userId"
|
|
v-model="formSearch.userId"
|
|
placeholder="请选择"
|
|
placeholder="请选择"
|
|
style="width:150px;"
|
|
style="width:150px;"
|
|
@@ -319,7 +318,10 @@ export default {
|
|
if (this.$route.query) {
|
|
if (this.$route.query) {
|
|
this.$router.push({ path: "/marking/mark_paper_check" });
|
|
this.$router.push({ path: "/marking/mark_paper_check" });
|
|
}
|
|
}
|
|
|
|
+
|
|
this.getCourses();
|
|
this.getCourses();
|
|
|
|
+ this.getUserList();
|
|
|
|
+
|
|
this.formSearch = Object.assign(this.formSearch, {
|
|
this.formSearch = Object.assign(this.formSearch, {
|
|
orgCode: "",
|
|
orgCode: "",
|
|
studentName: "",
|
|
studentName: "",
|
|
@@ -362,19 +364,21 @@ export default {
|
|
this.courseList = response.data;
|
|
this.courseList = response.data;
|
|
if (this.$route.query && this.$route.query.courseCode) {
|
|
if (this.$route.query && this.$route.query.courseCode) {
|
|
this.formSearch.courseCode = this.$route.query.courseCode;
|
|
this.formSearch.courseCode = this.$route.query.courseCode;
|
|
- this.getUserList();
|
|
|
|
}
|
|
}
|
|
});
|
|
});
|
|
},
|
|
},
|
|
//查询评委
|
|
//查询评委
|
|
getUserList() {
|
|
getUserList() {
|
|
|
|
+ if (!this.formSearch.workId) {
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+
|
|
this.$http
|
|
this.$http
|
|
.get(
|
|
.get(
|
|
DATA_PROCESS_API +
|
|
DATA_PROCESS_API +
|
|
"/markUsers/assign?workId=" +
|
|
"/markUsers/assign?workId=" +
|
|
this.formSearch.workId +
|
|
this.formSearch.workId +
|
|
- "&courseCode=" +
|
|
|
|
- this.formSearch.courseCode
|
|
|
|
|
|
+ "&courseCode="
|
|
)
|
|
)
|
|
.then(response => {
|
|
.then(response => {
|
|
this.userList = response.data;
|
|
this.userList = response.data;
|
|
@@ -528,6 +532,7 @@ export default {
|
|
this.currentPage = parseInt(formData.currentPage);
|
|
this.currentPage = parseInt(formData.currentPage);
|
|
this.pageSize = parseInt(formData.pageSize);
|
|
this.pageSize = parseInt(formData.pageSize);
|
|
this.getCourses();
|
|
this.getCourses();
|
|
|
|
+ this.getUserList();
|
|
this.initMarkPaperCheck();
|
|
this.initMarkPaperCheck();
|
|
}
|
|
}
|
|
}
|
|
}
|