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 startTime = "";
let qType = this.type == 'date' ? 'day' : this.type; let qType = this.type == 'date' ? 'day' : this.type;
if (this.type == "quarter") { if (this.type == "quarter") {
let year = moment().year(); console.log('dateTime',this.quarter)
if (this.quarter == 1) { // let year = moment().year();
startTime = `${year}-01-01 00:00:00` // if (this.quarter == 1) {
} else if (this.quarter == 2) { // startTime = `${year}-01-01 00:00:00`
startTime = `${year}-04-01 00:00:00` // } else if (this.quarter == 2) {
} else if (this.quarter == 3) { // startTime = `${year}-04-01 00:00:00`
startTime = `${year}-07-01 00:00:00` // } else if (this.quarter == 3) {
} else { // startTime = `${year}-07-01 00:00:00`
startTime = `${year}-10-01 00:00:00` // } else {
} // startTime = `${year}-10-01 00:00:00`
// }
} else { } else {
startTime = moment(this.dateTime).format('YYYY-MM-DD HH:mm:ss') startTime = moment(this.dateTime).format('YYYY-MM-DD HH:mm:ss')
} }
@ -171,6 +172,7 @@ export default {
"sectionId": this.selectId, "sectionId": this.selectId,
"createTime": startTime, "createTime": startTime,
"direction": this.direction, "direction": this.direction,
"quarter": this.quarter
}).then(res => { }).then(res => {
if (res.code == 200) { if (res.code == 200) {
let data = res.data; let data = res.data;
@ -239,6 +241,7 @@ export default {
"sectionId": this.selectId, "sectionId": this.selectId,
"createTime": startTime, "createTime": startTime,
"direction": this.direction, "direction": this.direction,
"quarter": this.quarter
}).then(res => { }).then(res => {
chart2.series[0].data = []; chart2.series[0].data = [];
if (res.code == 200) { if (res.code == 200) {
@ -330,6 +333,7 @@ export default {
"sectionId": this.selectId, "sectionId": this.selectId,
"createTime": startTime, "createTime": startTime,
"direction": this.direction, "direction": this.direction,
"quarter": this.quarter
}).then(res => { }).then(res => {
chart3.series[0].data = []; chart3.series[0].data = [];
chart3.series[1].data = []; chart3.series[1].data = [];

Loading…
Cancel
Save