From f676381bc63ef3487f760c90452ad65daa4419b1 Mon Sep 17 00:00:00 2001 From: fanluyan <754122931@qq.com> Date: Mon, 8 Jul 2024 13:04:11 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A6=86=E5=86=B0=E6=95=B0=E6=8D=AE=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/iceWeather/icing/index.vue | 350 +++++++++++++++++++++++---- vue.config.js | 4 +- 2 files changed, 307 insertions(+), 47 deletions(-) diff --git a/src/views/iceWeather/icing/index.vue b/src/views/iceWeather/icing/index.vue index ba72a8f..393134b 100644 --- a/src/views/iceWeather/icing/index.vue +++ b/src/views/iceWeather/icing/index.vue @@ -58,6 +58,7 @@
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - + > + + + + + - + > + + @@ -236,6 +490,8 @@ export default { chartsData: [], dyFlag: true, lineFlag: false, + + gantatable: false, //点击了装置之后,显示的数据 }; }, watch: { @@ -281,9 +537,10 @@ export default { console.log("电压-公司"); this.dyFlag = true; this.lineFlag = true; + this.gantatable = false; pullParams = { dyId: data.id, - pageNum: this.page, + pageNum: 1, pageSize: this.pageSize, start: sTime, end: eTime, @@ -293,10 +550,11 @@ export default { } else if (data.bsManufacturer) { this.dyFlag = false; this.lineFlag = true; + this.gantatable = false; console.log("线路-电压"); pullParams = { lineId: data.id, - pageNum: this.page, + pageNum: 1, pageSize: this.pageSize, start: sTime, end: eTime, @@ -307,16 +565,18 @@ export default { this.dyFlag = false; this.lineFlag = false; console.log("装置-杆塔"); + this.gantatable = true; // const sTime = Math.floor(this.formdata.starttime / 1000); // const eTime = Math.floor(this.formdata.endtime / 1000); console.log(data); + pullParams = { lineId: data.lineid, termId: data.id, towerId: data.towerid, start: sTime, end: eTime, - pageNum: this.page, + pageNum: 1, pageSize: this.pageSize, }; this.getIcingListData(pullParams); @@ -331,8 +591,8 @@ export default { .then((res) => { console.log(res); - this.tableData = res.data.list.map((item) => item.lastLeadPulls); - // this.tableData = res.data.list; + // this.tableData = res.data.list.map((item) => item.lastLeadPulls); + this.tableData = res.data.list; this.total = res.data.total; this.loading = false; this.echartsShow = false; diff --git a/vue.config.js b/vue.config.js index 759ac7c..fd91d71 100644 --- a/vue.config.js +++ b/vue.config.js @@ -23,8 +23,8 @@ module.exports = defineConfig({ //表示拦截以/api开头的请求路径 //target: "http://192.168.1.190:8080", //190 需要去掉/Api - target: "http://61.169.135.146:9911/", //运维 覆冰 - //target: "http://61.169.135.146:40080/", //dell + // target: "http://61.169.135.146:9911/", //运维 覆冰 + target: "http://61.169.135.146:40080/", //dell changOrigin: true, //是否开启跨域 pathRewrite: { "^/api": "/api", //重写api,把api变成空字符,因为我们真正请求的路径是没有api的