|
@@ -16,6 +16,7 @@
|
|
|
<el-select
|
|
|
v-model="filter.examId"
|
|
|
placeholder="请选择批次"
|
|
|
+ :disabled="!dataReady"
|
|
|
@change="examChange"
|
|
|
>
|
|
|
<el-option
|
|
@@ -31,6 +32,7 @@
|
|
|
v-model="filter.examActivityId"
|
|
|
placeholder="请选择场次"
|
|
|
clearable
|
|
|
+ :disabled="!dataReady"
|
|
|
>
|
|
|
<el-option
|
|
|
v-for="item in examActivities"
|
|
@@ -290,6 +292,7 @@ export default {
|
|
|
maxWarningCount: undefined,
|
|
|
minWarningCount: undefined,
|
|
|
},
|
|
|
+ dataReady: false,
|
|
|
curExamBatch: {},
|
|
|
STUDENT_FINISH_EXAM_TYPE,
|
|
|
STUDENT_ONLINE_STATUS,
|
|
@@ -328,6 +331,7 @@ export default {
|
|
|
...mapActions("invigilation", ["updateDetailIds", "updateSelectedExamId"]),
|
|
|
...mapMutations("invigilation", ["setDetailIds", "setSelectedExamId"]),
|
|
|
async initData() {
|
|
|
+ this.dataReady = false;
|
|
|
await this.getExamBatchList();
|
|
|
if (!this.examBatchs.length) return;
|
|
|
this.updateSelectedExamId({
|
|
@@ -342,6 +346,7 @@ export default {
|
|
|
this.curExamBatch = curExamBatch || {};
|
|
|
await this.getExamActivityRoomList();
|
|
|
this.toSearch();
|
|
|
+ this.dataReady = true;
|
|
|
},
|
|
|
async getList() {
|
|
|
const datas = {
|