Browse Source

refactor: 查询开始时间设为7点前

master
wally 4 years ago
parent
commit
77a23ebb90
  1. 2
      src/components/history/search-bar-data.vue
  2. 2
      src/components/statistical/search-bar.vue

2
src/components/history/search-bar-data.vue

@ -50,7 +50,7 @@ import { ElMessage } from 'element-plus';
const emit = defineEmits(['search']);
const searchDevice = reactive({
deviceId: '',
date: ['', new Date()],
date: [dayjs().subtract(7, 'day').startOf('day'), new Date()],
});
const searchDeviceForm = ref(null); // form
const store = useStore();

2
src/components/statistical/search-bar.vue

@ -52,7 +52,7 @@ import { exportHistory } from 'apis';
const emit = defineEmits(['search']);
const searchDevice = reactive({
deviceId: '',
date: ['', new Date()],
date: [dayjs().subtract(7, 'day').startOf('day'), new Date()],
dataType: 'ReportHistoryData',
});
const searchDeviceForm = ref(null); // form

Loading…
Cancel
Save