|
@@ -54,7 +54,7 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
-import { examRoomList } from "@/api/invigilation";
|
|
|
|
|
|
+import { examActivityRoomList } from "@/api/invigilation";
|
|
import { VIDEO_SOURCE_TYPE } from "@/constant/constants";
|
|
import { VIDEO_SOURCE_TYPE } from "@/constant/constants";
|
|
import ExamBatchDialog from "../ExamBatchDialog";
|
|
import ExamBatchDialog from "../ExamBatchDialog";
|
|
import TextClock from "../../common/TextClock";
|
|
import TextClock from "../../common/TextClock";
|
|
@@ -113,9 +113,9 @@ export default {
|
|
},
|
|
},
|
|
async getExamRooms() {
|
|
async getExamRooms() {
|
|
this.examRooms = [];
|
|
this.examRooms = [];
|
|
- if (!this.curExamBatch.code) return;
|
|
|
|
- const res = await examRoomList(this.curExamBatch.code);
|
|
|
|
- this.examRooms = res.data.data ?? [];
|
|
|
|
|
|
+ if (!this.curExamBatch.id) return;
|
|
|
|
+ const res = await examActivityRoomList(this.curExamBatch.id);
|
|
|
|
+ this.examRooms = res.data.data.examRooms ?? [];
|
|
this.filter.roomCode = this.examRooms[0]?.roomCode;
|
|
this.filter.roomCode = this.examRooms[0]?.roomCode;
|
|
},
|
|
},
|
|
},
|
|
},
|