|
@@ -44,11 +44,11 @@ function getInspBase(value, level = 1) {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
if (level === 2) {
|
|
if (level === 2) {
|
|
- twoBatchs.value = res.data.map(item => ({text: item.prsnTitle, value: item.plnaId}))
|
|
|
|
|
|
+ twoBatchs.value = res.data?.map(item => ({text: item.prsnTitle, value: item.plnaId}))
|
|
twoBatch.value = twoBatchs.value[0].value;
|
|
twoBatch.value = twoBatchs.value[0].value;
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- baseBatchs.value = res.data.map(item => ({text: item.prsnTitle, value: item.plnaId})).reverse();
|
|
|
|
|
|
+ baseBatchs.value = res.data?.map(item => ({text: item.prsnTitle, value: item.plnaId})).reverse();
|
|
baseBatch.value = baseBatchs.value[0].value;
|
|
baseBatch.value = baseBatchs.value[0].value;
|
|
});
|
|
});
|
|
}
|
|
}
|