|
@@ -191,7 +191,7 @@
|
|
getDateAndTimeList({ examSiteId: searchModel.examSiteId || null })
|
|
getDateAndTimeList({ examSiteId: searchModel.examSiteId || null })
|
|
.then((res: any) => {
|
|
.then((res: any) => {
|
|
tableData.value = (res || []).map((item: any) => {
|
|
tableData.value = (res || []).map((item: any) => {
|
|
- item.batchStatus = false;
|
|
|
|
|
|
+ item.batchStatus = item.timePeriodList.every((v: any) => v.enable);
|
|
return item;
|
|
return item;
|
|
});
|
|
});
|
|
tableKey.value = `${Date.now()}`;
|
|
tableKey.value = `${Date.now()}`;
|
|
@@ -212,6 +212,10 @@
|
|
tableData.value[rowIndex].timePeriodList.find(
|
|
tableData.value[rowIndex].timePeriodList.find(
|
|
(item: any) => item.timePeriodStr === head
|
|
(item: any) => item.timePeriodStr === head
|
|
).enable = bool;
|
|
).enable = bool;
|
|
|
|
+ tableData.value[rowIndex].batchStatus = tableData.value[
|
|
|
|
+ rowIndex
|
|
|
|
+ ].timePeriodList.every((v: any) => v.enable);
|
|
|
|
+ tableKey.value = `${Date.now()}`;
|
|
};
|
|
};
|
|
|
|
|
|
const switchBatchChange = (rowIndex: number, bool: boolean) => {
|
|
const switchBatchChange = (rowIndex: number, bool: boolean) => {
|