|
@@ -377,7 +377,15 @@ export default {
|
|
|
async fetchWarningNotice() {
|
|
|
if (!this.filter.examId) return;
|
|
|
const res = await invigilationWarningMessage(this.filter.examId);
|
|
|
- this.warningList = res.data.data;
|
|
|
+ let warningListMap = {};
|
|
|
+ res.data.data.forEach((item, index) => {
|
|
|
+ item.index = index;
|
|
|
+ if (!warningListMap[item.examRecordId])
|
|
|
+ warningListMap[item.examRecordId] = item;
|
|
|
+ });
|
|
|
+ this.warningList = Object.values(warningListMap).sort(
|
|
|
+ (a, b) => a.index - b.index
|
|
|
+ );
|
|
|
},
|
|
|
/** 定时刷新预警/通话待办 */
|
|
|
refreshList() {
|