fix(vimp-log-page): resetSearchFields
This commit is contained in:
@@ -76,6 +76,7 @@ const searchFields = reactive({
|
|||||||
const resetSearchFields = () => {
|
const resetSearchFields = () => {
|
||||||
searchFields.stationCode = stationList.value.find((station) => station.online)?.code;
|
searchFields.stationCode = stationList.value.find((station) => station.online)?.code;
|
||||||
searchFields.logType_in = [];
|
searchFields.logType_in = [];
|
||||||
|
searchFields.createdTime = [dayjs().startOf('date').subtract(1, 'week').format('YYYY-MM-DD HH:mm:ss'), dayjs().endOf('date').format('YYYY-MM-DD HH:mm:ss')];
|
||||||
};
|
};
|
||||||
const getExtraFields = () => {
|
const getExtraFields = () => {
|
||||||
const logType_in = searchFields.logType_in.length > 0 ? [...searchFields.logType_in] : undefined;
|
const logType_in = searchFields.logType_in.length > 0 ? [...searchFields.logType_in] : undefined;
|
||||||
|
|||||||
Reference in New Issue
Block a user