From 657d0c03e1ba310d75c05b75df8bbe910407a562 Mon Sep 17 00:00:00 2001 From: blankk <2649084208@qq.com> Date: Mon, 4 Jul 2022 15:53:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/data/currdata/index.vue | 1 + src/views/statistic/river/river.vue | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/views/data/currdata/index.vue b/src/views/data/currdata/index.vue index 6ae0b4c..91c7686 100644 --- a/src/views/data/currdata/index.vue +++ b/src/views/data/currdata/index.vue @@ -144,6 +144,7 @@ export default { endTime: new Date().getTime(), stnmId: null, startTime: new Date().getTime()- 3600 * 1000 * 24, + dataType: '-1' }, dataTypes:[ {label: '5分钟',value:'-1'}, diff --git a/src/views/statistic/river/river.vue b/src/views/statistic/river/river.vue index e213f95..f959e8f 100644 --- a/src/views/statistic/river/river.vue +++ b/src/views/statistic/river/river.vue @@ -137,7 +137,6 @@ export default { mounted(){ this.getList(); this.$refs.chart.showChart([],[],this.chartYname,this.chartType,0,null,this.fixed); - //this.submitForm(); }, methods: { /** 查询水尺-测站信息列表 */ @@ -174,15 +173,12 @@ export default { }, async drawTable(params) { let res = await this.$axiosGet('/system/photoinfo/getTableData',params); - console.log(res); - // let res = {"msg":"操作成功","code":0,"data":[{"114":"1.36","tm":"2022-06-08 00:00:00"},{"114":"1.37","tm":"2022-06-08 01:00:00"},{"114":"1.37","tm":"2022-06-08 02:00:00"},{"114":"1.37","tm":"2022-06-08 03:00:00"},{"114":"1.37","tm":"2022-06-08 04:00:00"},{"114":"1.37","tm":"2022-06-08 05:00:00"},{"114":"1.37","tm":"2022-06-08 06:00:00"},{"114":"1.37","tm":"2022-06-08 07:00:00"},{"114":"1.37","tm":"2022-06-08 08:00:00"},{"114":"1.36","tm":"2022-06-08 09:00:00"},{"114":"1.37","tm":"2022-06-08 10:00:00"},{"114":"1.36","tm":"2022-06-08 11:00:00"},{"114":"1.37","tm":"2022-06-08 12:00:00"},{"114":"1.37","tm":"2022-06-08 13:00:00"},{"114":"1.37","tm":"2022-06-08 14:00:00"},{"114":"1.36","tm":"2022-06-08 15:00:00"},{"114":"1.35","tm":"2022-06-08 16:00:00"},{"114":"1.36","tm":"2022-06-08 17:00:00"},{"114":"1.37","tm":"2022-06-08 18:00:00"},{"114":"1.36","tm":"2022-06-08 19:00:00"},{"114":"1.37","tm":"2022-06-08 20:00:00"},{"114":"1.38","tm":"2022-06-08 21:00:00"},{"114":"1.36","tm":"2022-06-08 22:00:00"},{"114":"1.36","tm":"2022-06-08 23:00:00"},{"114":"1.37","tm":"2022-06-09 00:00:00"},{"114":"1.36","tm":"2022-06-09 01:00:00"},{"114":"1.35","tm":"2022-06-09 02:00:00"},{"114":"1.35","tm":"2022-06-09 03:00:00"},{"114":"1.35","tm":"2022-06-09 04:00:00"},{"114":"1.35","tm":"2022-06-09 05:00:00"},{"114":"1.36","tm":"2022-06-09 06:00:00"},{"114":"1.35","tm":"2022-06-09 07:00:00"},{"114":"1.35","tm":"2022-06-09 08:00:00"},{"114":"1.35","tm":"2022-06-09 09:00:00"},{"114":"1.37","tm":"2022-06-09 10:00:00"},{"114":"1.34","tm":"2022-06-09 11:00:00"},{"114":"1.35","tm":"2022-06-09 12:00:00"},{"114":"1.34","tm":"2022-06-09 13:00:00"},{"114":"1.34","tm":"2022-06-09 14:00:00"},{"114":"1.35","tm":"2022-06-09 15:00:00"},{"114":"1.37","tm":"2022-06-09 16:00:00"},{"114":"1.37","tm":"2022-06-09 17:00:00"},{"114":"1.38","tm":"2022-06-09 18:00:00"},{"114":"1.38","tm":"2022-06-09 19:00:00"},{"114":"1.38","tm":"2022-06-09 20:00:00"},{"114":"1.37","tm":"2022-06-09 21:00:00"},{"114":"1.37","tm":"2022-06-09 22:00:00"},{"114":"1.37","tm":"2022-06-09 23:00:00"},{"114":"1.37","tm":"2022-06-10 00:00:00"}]}; if(res.code == 0){ var c1 = res.data[0]; var tableColumn = []; tableColumn.push({prop: 'tm', label: '时间'}); for(var k in c1) { if(k != 'tm' && k != 'avg'){ - console.log(c1[k]) tableColumn.push({prop: k, label: c1[k]}); } }