|
@@ -48,7 +48,7 @@ import analysisList from './components/reporting_list.vue';
|
|
|
|
|
|
const analysisListEle = ref();
|
|
|
const searchText = ref('');
|
|
|
-const date = ref([dayjs().format('YYYY-MM-DD HH:mm:ss'), dayjs().format('YYYY-MM-DD HH:mm:ss')]);
|
|
|
+const date = ref([dayjs(Date.now() - 7*86400000).format('YYYY-MM-DD') + ' 00:00:00', dayjs().format('YYYY-MM-DD') + ' 23:59:59']);
|
|
|
|
|
|
const pageSize = 10;
|
|
|
let page = 1;
|
|
@@ -67,9 +67,9 @@ const getList = () => {
|
|
|
};
|
|
|
// 时间区间
|
|
|
if (date.value[0])
|
|
|
- search.start = dayjs(date.value[0]).format('YYYY-MM-DD HH:mm:ss');
|
|
|
+ search.start = dayjs(date.value[0]).format('YYYY-MM-DD') + ' 00:00:00';
|
|
|
if (date.value[1])
|
|
|
- search.end = dayjs(date.value[1]).format('YYYY-MM-DD HH:mm:ss');
|
|
|
+ search.end = dayjs(date.value[1]).format('YYYY-MM-DD') + ' 23:59:59';
|
|
|
analysisListEle.value.getlist(search);
|
|
|
};
|
|
|
|