| | |
| | | v-model="time" |
| | | type="daterange" |
| | | range-separator="至" |
| | | value-format="yyyy-MM-dd" |
| | | start-placeholder="开始日期" |
| | | end-placeholder="结束日期"> |
| | | </el-date-picker> |
| | |
| | | YHJBList: [], |
| | | YHZTList: [], |
| | | loading: false, |
| | | searchData:{}, |
| | | startDate: "", |
| | | endDate: "", |
| | | } |
| | |
| | | } |
| | | selectData.push(timeSearchCloumn) |
| | | requestData.query_condition = selectData; |
| | | this.searchData = requestData; |
| | | console.log(this.searchData) |
| | | this.loading = true; |
| | | danger_summary(requestData).then(res => { |
| | | this.loading = false; |
| | |
| | | }, |
| | | |
| | | showYHList(row, item) { |
| | | var searchData = {}; |
| | | console.log(item) |
| | | if (item.x_label != null && item.x_label != "合计") { |
| | | searchData[this.form.x_axis] = item.x_label; |
| | | } |
| | | if (row.y_label != null && row.y_label != "合计") { |
| | | searchData[this.form.y_axis] = row.y_label; |
| | | } |
| | | let requestData = {}; |
| | | let selectData = [] |
| | | for (const queryElement in this.form) { |
| | | if (queryElement != "x_axis" && queryElement != "y_axis") { |
| | | if (this.form[queryElement] != null && this.form[queryElement] != '') { |
| | | let searchCloumn = { |
| | | "field": queryElement, |
| | | "value": this.form[queryElement].join(','), |
| | | "type": "IN" |
| | | } |
| | | selectData.push(searchCloumn); |
| | | } |
| | | } else { |
| | | requestData[queryElement] = this.form[queryElement]; |
| | | } |
| | | } |
| | | searchData.query_condition = selectData; |
| | | var searchData = this.searchData; |
| | | searchData.x_label = item.x_label; |
| | | searchData.y_label = row.y_label; |
| | | this.$router.push({ |
| | | path: "/summaryList", |
| | | query: {"searchData": searchData} |