|
@@ -203,13 +203,24 @@
|
|
|
//获取历史数据
|
|
|
async function getListdays() {
|
|
|
if (posMonitor.value.stationtype && posMonitor.value.stationtype != 'redis') {
|
|
|
- const ttime_begin = dayjs(new Date().getTime() - 3 * 24 * 60 * 60 * 1000).format('YYYY-MM-DD hh:mm:ss');
|
|
|
- const ttime_end = dayjs(new Date().getTime()).format('YYYY-MM-DD hh:mm:ss');
|
|
|
+ // const ttime_begin = dayjs(new Date().getTime() - 3 * 24 * 60 * 60 * 1000).format('YYYY-MM-DD hh:mm:ss');
|
|
|
+ // const ttime_end = dayjs(new Date().getTime()).format('YYYY-MM-DD hh:mm:ss');
|
|
|
+ const ttime_begin = dayjs().startOf('date').format('YYYY-MM-DD hh:mm:ss');
|
|
|
+ const ttime_end = dayjs().format('YYYY-MM-DD hh:mm:ss');
|
|
|
const pageNo = 1;
|
|
|
const pageSize = 100;
|
|
|
const skip = 8;
|
|
|
const strtype = posMonitor.value.deviceType;
|
|
|
- let res = await listdays({ ttime_begin, ttime_end, pageNo, pageSize, skip, strtype, gdeviceid: activeDeviceID.value });
|
|
|
+ let res = await listdays({
|
|
|
+ ttime_begin,
|
|
|
+ ttime_end,
|
|
|
+ pageNo,
|
|
|
+ pageSize,
|
|
|
+ skip,
|
|
|
+ strtype,
|
|
|
+ column: 'createTime',
|
|
|
+ gdeviceid: activeDeviceID.value,
|
|
|
+ });
|
|
|
console.log(res, '束管历史数据');
|
|
|
let data = res.datalist.records;
|
|
|
if (data.length != 0) {
|