diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/eventQuery/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/eventQuery/index.vue index 2241ecdb..8a2a51cc 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/eventQuery/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/eventQuery/index.vue @@ -149,16 +149,17 @@ export default { let startTime = ""; let qType = this.type == 'date' ? 'day' : this.type; if (this.type == "quarter") { - let year = moment().year(); - if (this.quarter == 1) { - startTime = `${year}-01-01 00:00:00` - } else if (this.quarter == 2) { - startTime = `${year}-04-01 00:00:00` - } else if (this.quarter == 3) { - startTime = `${year}-07-01 00:00:00` - } else { - startTime = `${year}-10-01 00:00:00` - } + console.log('dateTime',this.quarter) + // let year = moment().year(); + // if (this.quarter == 1) { + // startTime = `${year}-01-01 00:00:00` + // } else if (this.quarter == 2) { + // startTime = `${year}-04-01 00:00:00` + // } else if (this.quarter == 3) { + // startTime = `${year}-07-01 00:00:00` + // } else { + // startTime = `${year}-10-01 00:00:00` + // } } else { startTime = moment(this.dateTime).format('YYYY-MM-DD HH:mm:ss') } @@ -171,6 +172,7 @@ export default { "sectionId": this.selectId, "createTime": startTime, "direction": this.direction, + "quarter": this.quarter }).then(res => { if (res.code == 200) { let data = res.data; @@ -239,6 +241,7 @@ export default { "sectionId": this.selectId, "createTime": startTime, "direction": this.direction, + "quarter": this.quarter }).then(res => { chart2.series[0].data = []; if (res.code == 200) { @@ -330,6 +333,7 @@ export default { "sectionId": this.selectId, "createTime": startTime, "direction": this.direction, + "quarter": this.quarter }).then(res => { chart3.series[0].data = []; chart3.series[1].data = [];