Browse Source

季度查询增加字段

wangqin
zhoule 1 year ago
parent
commit
e9dbbc1a37
  1. 24
      ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/eventQuery/index.vue

24
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 = [];

Loading…
Cancel
Save