|
@@ -32,6 +32,7 @@
|
|
v-model="filter.areaCode"
|
|
v-model="filter.areaCode"
|
|
@on-change="areaChange"
|
|
@on-change="areaChange"
|
|
placeholder="考区"
|
|
placeholder="考区"
|
|
|
|
+ clearable
|
|
>
|
|
>
|
|
<Option
|
|
<Option
|
|
v-for="area in cascadeList"
|
|
v-for="area in cascadeList"
|
|
@@ -46,6 +47,7 @@
|
|
v-model="filter.school"
|
|
v-model="filter.school"
|
|
@on-change="schoolChange"
|
|
@on-change="schoolChange"
|
|
placeholder="学校"
|
|
placeholder="学校"
|
|
|
|
+ clearable
|
|
>
|
|
>
|
|
<Option
|
|
<Option
|
|
v-for="(item, index) in schools"
|
|
v-for="(item, index) in schools"
|
|
@@ -56,7 +58,7 @@
|
|
</Select>
|
|
</Select>
|
|
</FormItem>
|
|
</FormItem>
|
|
<FormItem>
|
|
<FormItem>
|
|
- <Select v-model="filter.examRoom" placeholder="考场">
|
|
|
|
|
|
+ <Select v-model="filter.examRoom" placeholder="考场" clearable>
|
|
<Option
|
|
<Option
|
|
v-for="(room, index) in rooms"
|
|
v-for="(room, index) in rooms"
|
|
:key="index"
|
|
:key="index"
|
|
@@ -65,7 +67,6 @@
|
|
></Option>
|
|
></Option>
|
|
</Select>
|
|
</Select>
|
|
</FormItem>
|
|
</FormItem>
|
|
-
|
|
|
|
<FormItem>
|
|
<FormItem>
|
|
<InputNumber
|
|
<InputNumber
|
|
v-model="filter.startNumber"
|
|
v-model="filter.startNumber"
|
|
@@ -102,7 +103,7 @@
|
|
</Select>
|
|
</Select>
|
|
</FormItem>
|
|
</FormItem>
|
|
<FormItem>
|
|
<FormItem>
|
|
- <Select v-model="filter.upload" placeholder="是否上传">
|
|
|
|
|
|
+ <Select v-model="filter.upload" placeholder="是否上传" clearable>
|
|
<Option
|
|
<Option
|
|
v-for="(val, key) in PAPER_UPLOAD_TYPE"
|
|
v-for="(val, key) in PAPER_UPLOAD_TYPE"
|
|
:key="key"
|
|
:key="key"
|
|
@@ -336,14 +337,6 @@ export default {
|
|
this.total = data.totalCount;
|
|
this.total = data.totalCount;
|
|
},
|
|
},
|
|
toPage(page) {
|
|
toPage(page) {
|
|
- if (
|
|
|
|
- !this.filter.areaCode ||
|
|
|
|
- !this.filter.school ||
|
|
|
|
- !this.filter.examRoom
|
|
|
|
- ) {
|
|
|
|
- this.$Message.error("请选择考区、学校和考场!");
|
|
|
|
- return;
|
|
|
|
- }
|
|
|
|
this.current = page;
|
|
this.current = page;
|
|
this.getList();
|
|
this.getList();
|
|
},
|
|
},
|
|
@@ -366,7 +359,7 @@ export default {
|
|
const curArea = this.cascadeList.find(
|
|
const curArea = this.cascadeList.find(
|
|
item => item.areaCode === this.filter.areaCode
|
|
item => item.areaCode === this.filter.areaCode
|
|
);
|
|
);
|
|
- this.schools = curArea.schools;
|
|
|
|
|
|
+ this.schools = curArea ? curArea.schools : [];
|
|
this.rooms = [];
|
|
this.rooms = [];
|
|
this.filter.school = null;
|
|
this.filter.school = null;
|
|
this.filter.examRoom = null;
|
|
this.filter.examRoom = null;
|
|
@@ -379,7 +372,7 @@ export default {
|
|
const curSchool = this.schools.find(
|
|
const curSchool = this.schools.find(
|
|
item => item.school === this.filter.school
|
|
item => item.school === this.filter.school
|
|
);
|
|
);
|
|
- this.rooms = curSchool.rooms;
|
|
|
|
|
|
+ this.rooms = curSchool ? curSchool.rooms : [];
|
|
this.filter.examRoom = null;
|
|
this.filter.examRoom = null;
|
|
},
|
|
},
|
|
toEdit(row) {
|
|
toEdit(row) {
|