|
|
@@ -108,7 +108,7 @@
|
|
|
<template #icon>
|
|
|
<icon-download />
|
|
|
</template>
|
|
|
- {{ t('searchTable.form.down') }}
|
|
|
+ {{ t('searchTable.form.export') }}
|
|
|
</a-button>
|
|
|
</a-space>
|
|
|
</a-col>
|
|
|
@@ -186,6 +186,8 @@ import { downLoadFun } from '@/utils/const';
|
|
|
import { useIntervalFn } from '@vueuse/core';
|
|
|
import DeviceInfoDialog from './device-info/index.vue';
|
|
|
import useDictList from '@/hooks/dict-list';
|
|
|
+import { useStorage } from '@vueuse/core';
|
|
|
+import { STATIONKEY, StationKey } from '@/utils/const';
|
|
|
|
|
|
const { t } = useI18n();
|
|
|
const {
|
|
|
@@ -262,6 +264,10 @@ const deviceTypeList = ref<AdditionalProp[]>([] as AdditionalProp[]);
|
|
|
const deviceStatusList = ref<AdditionalProp[]>([] as AdditionalProp[]);
|
|
|
const deviceId = shallowRef<number>(0);
|
|
|
const deviceType = shallowRef<number | null>(1);
|
|
|
+const obj = useStorage<StationKey>(STATIONKEY, {
|
|
|
+ id: null,
|
|
|
+ station: null,
|
|
|
+});
|
|
|
useDictList(['DeviceType', 'DeviceStatus']).then(res => {
|
|
|
deviceTypeList.value.push(...res['DeviceType']);
|
|
|
deviceStatusList.value.push(...res['DeviceStatus']);
|
|
|
@@ -273,8 +279,8 @@ function searchTable() {
|
|
|
: ['', ''];
|
|
|
formModel.value.startTime = startTime ? startTime : null;
|
|
|
formModel.value.endTime = endTime ? endTime : null;
|
|
|
- formModel.value.station =
|
|
|
- station && station.toString() !== 'all' ? (station as string) : null;
|
|
|
+ formModel.value.station = obj.value.station;
|
|
|
+
|
|
|
queryDashboardList(formModel.value)
|
|
|
.then(res => {
|
|
|
pagination.current = formModel.value.pageIndex;
|