From 7db7fd4c50240d5c61b6d65a656d61cbbe529629 Mon Sep 17 00:00:00 2001 From: blankk <2649084208@qq.com> Date: Mon, 4 Jul 2022 15:43:11 +0800 Subject: [PATCH 1/6] =?UTF-8?q?=E6=97=B6=E6=AE=B5=E8=BF=87=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/statistic/river/river.vue | 62 ++++++++++++++++++----------- 1 file changed, 39 insertions(+), 23 deletions(-) diff --git a/src/views/statistic/river/river.vue b/src/views/statistic/river/river.vue index bef4360..e213f95 100644 --- a/src/views/statistic/river/river.vue +++ b/src/views/statistic/river/river.vue @@ -18,6 +18,7 @@ @@ -26,6 +27,7 @@ - + + 查询 @@ -104,16 +108,15 @@ export default { label: '' } ], - + stationList: [], tableData: [ ], // 查询参数 queryParams: { - dataType: '', - endTime: '2022-06-10 00:00:00', - startTime: '2022-06-08 00:00:00', - stnm: '鄞州公园', - dataType: '0' + endTime: '2022-07-02 00:00:00', + startTime: '2022-07-01 00:00:00', + stnmId: null, + dataType: '-1' }, dataTypes:[ {label: '5分钟',value:'-1'}, @@ -132,41 +135,54 @@ export default { created() { }, mounted(){ + this.getList(); this.$refs.chart.showChart([],[],this.chartYname,this.chartType,0,null,this.fixed); - this.submitForm(); + //this.submitForm(); }, methods: { - + /** 查询水尺-测站信息列表 */ + async getList() { + let res = await this.$axiosGet('/system/info/list',this.queryParams); + if(res.code === 0){ + this.stationList = res.data; + } + }, /** 提交按钮 */ submitForm() { var params = { - endTime: '2022-06-10 00:00:00', - startTime: '2022-06-08 00:00:00', + stnmId: this.queryParams.stnmId, + endTime: this.queryParams.endTime, + startTime: this.queryParams.startTime, + dataType: this.queryParams.dataType } - - if(this.queryParams.dataType == 0){ + if(this.queryParams.dataType == -1){ + this.tableTime = params.startTime.substring(0,19) +" 至 "+ params.endTime.substring(0,19); + }else if(this.queryParams.dataType==0){ this.tableTime = params.startTime.substring(0,16) +" 至 "+ params.endTime.substring(0,16); - }else if(this.queryParams.dataType==1){ - this.tableTime = params.startTime.substring(0,10) +" 至 "+ params.endTime.substring(0,10); }else{ this.tableTime = params.startTime.substring(0,10) +" 至 "+ params.endTime.substring(0,10); } this.drawChart(params); this.drawTable(params); }, - drawChart(params) { - let res = {"msg":"操作成功","code":0,"data":{"legend":["鄞州公园"],"series":[{"barMaxWidth":"20","data":[[1654617600000,1.29],[1654617600000,1.29],[1654621200000,1.29],[1654624800000,1.29],[1654628400000,1.29],[1654632000000,1.29],[1654635600000,1.29],[1654639200000,1.29],[1654642800000,1.29],[1654646400000,1.29],[1654650000000,1.28],[1654653600000,1.27],[1654657200000,1.26],[1654660800000,1.26],[1654664400000,1.26],[1654668000000,1.25],[1654671600000,1.24],[1654675200000,1.24],[1654678800000,1.24],[1654682400000,1.24],[1654686000000,1.24],[1654689600000,1.24],[1654692300000,1.23],[1654693200000,1.23],[1654696800000,1.23],[1654700400000,1.23],[1654704000000,1.24],[1654704000000,1.24],[1654707600000,1.24],[1654711200000,1.24],[1654714800000,1.24],[1654718400000,1.24],[1654722000000,1.24],[1654725600000,1.24],[1654729200000,1.24],[1654732800000,1.24],[1654736400000,1.24],[1654740000000,1.24],[1654743600000,1.24],[1654746600000,1.25],[1654747200000,1.24],[1654750800000,1.25],[1654754400000,1.25],[1654758000000,1.25],[1654761600000,1.25],[1654765200000,1.24],[1654768800000,1.25],[1654772400000,1.25],[1654776000000,1.25],[1654779600000,1.24],[1654783200000,1.24],[1654786800000,1.24],[1654790400000,1.24]],"name":"鄞州公园","smooth":false,"stnmId":219,"symbol":"none","type":"line"}]}}; + async drawChart(params) { + console.log(params); + let res = await this.$axiosGet('/system/photoinfo/getChart',params); if(res.code == 0){ this.$refs.chart.showChart(res.data.legend,res.data.series,this.unit,this.chartType,0,null,this.fixed); } }, - drawTable(params) { - let res = {"msg":"操作成功","code":0,"data":[{"114":"鄞州公园","tm":"时间"},{"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){ + 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]}); } } 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 2/6] =?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]}); } } From c312e90f628341add680eab602fab42509ac7a25 Mon Sep 17 00:00:00 2001 From: blankk <2649084208@qq.com> Date: Mon, 4 Jul 2022 16:21:08 +0800 Subject: [PATCH 3/6] =?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/statistic/river/river.vue | 46 +++++++++++++++++++---------- 1 file changed, 31 insertions(+), 15 deletions(-) diff --git a/src/views/statistic/river/river.vue b/src/views/statistic/river/river.vue index f959e8f..da48d68 100644 --- a/src/views/statistic/river/river.vue +++ b/src/views/statistic/river/river.vue @@ -3,8 +3,8 @@ @@ -85,6 +85,17 @@ export default { }, data() { return { + rules: { + startTime: [ + { required: true, message: '请选择开始时间', trigger: 'change' } + ], + endTime: [ + { required: true, message: '请选择结束时间', trigger: 'change' } + ], + stnmId: [ + { required: true, message: '请选择站点', trigger: 'change' } + ] + }, // 遮罩层 loading: true, @@ -154,15 +165,20 @@ export default { startTime: this.queryParams.startTime, dataType: this.queryParams.dataType } - if(this.queryParams.dataType == -1){ - this.tableTime = params.startTime.substring(0,19) +" 至 "+ params.endTime.substring(0,19); - }else if(this.queryParams.dataType==0){ - this.tableTime = params.startTime.substring(0,16) +" 至 "+ params.endTime.substring(0,16); - }else{ - this.tableTime = params.startTime.substring(0,10) +" 至 "+ params.endTime.substring(0,10); - } - this.drawChart(params); - this.drawTable(params); + + this.$refs['queryParams'].validate((valid) => { + if (valid) { + if(this.queryParams.dataType == -1){ + this.tableTime = params.startTime.substring(0,19) +" 至 "+ params.endTime.substring(0,19); + }else if(this.queryParams.dataType==0){ + this.tableTime = params.startTime.substring(0,16) +" 至 "+ params.endTime.substring(0,16); + }else{ + this.tableTime = params.startTime.substring(0,10) +" 至 "+ params.endTime.substring(0,10); + } + this.drawChart(params); + this.drawTable(params); + } + }); }, async drawChart(params) { console.log(params); From 6d864d3072d572cbcd98e2e0e1c89ef45fc16abf Mon Sep 17 00:00:00 2001 From: blankk <2649084208@qq.com> Date: Mon, 4 Jul 2022 16:56:07 +0800 Subject: [PATCH 4/6] =?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 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/views/data/currdata/index.vue b/src/views/data/currdata/index.vue index 91c7686..7d94402 100644 --- a/src/views/data/currdata/index.vue +++ b/src/views/data/currdata/index.vue @@ -89,6 +89,7 @@ From ec166120887d35436e59bb1b4936d50b0c6ab255 Mon Sep 17 00:00:00 2001 From: yx Date: Tue, 12 Jul 2022 13:32:32 +0800 Subject: [PATCH 6/6] =?UTF-8?q?=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/web/camera/index.vue | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/src/views/web/camera/index.vue b/src/views/web/camera/index.vue index 4582df2..82bee99 100644 --- a/src/views/web/camera/index.vue +++ b/src/views/web/camera/index.vue @@ -212,9 +212,9 @@ -
+
- + @@ -222,22 +222,18 @@ 查询 + + + + + + - - - - - - - - - - - - + +
@@ -538,6 +534,11 @@ export default { if (res.code === 0) { this.restartcfg.form = res.data; + if(this.restartcfg.form.uHour <10){ + this.restartcfg.form.uHour="0"+this.restartcfg.form.uHour+":00" + }else{ + this.restartcfg.form.uHour+=":00" + } this.restartcfg.form.id = row.id; this.restartcfg.run = this.restartcfg.form.bEnable == 1; this.restartcfg.open = true; @@ -619,8 +620,6 @@ export default { if (res.code === 0) { this.logInfoList = res.data; - - console.log(this.logInfoList) } }, async register() {