From eaf4149774551e04e87aeb9115509075b4f16721 Mon Sep 17 00:00:00 2001 From: blankk <2649084208@qq.com> Date: Tue, 12 Jul 2022 17:08:20 +0800 Subject: [PATCH 1/5] =?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/web/camera/index.vue | 135 +++++++++++++++++++++++++++++++++ 1 file changed, 135 insertions(+) diff --git a/src/views/web/camera/index.vue b/src/views/web/camera/index.vue index 82bee99..ddea2d5 100644 --- a/src/views/web/camera/index.vue +++ b/src/views/web/camera/index.vue @@ -95,6 +95,8 @@ 查看日志 + 查看时间 + 重启 自动重启配置 @@ -239,6 +241,79 @@ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
@@ -301,6 +376,20 @@ export default { width: '100px' }, + modelList:[ + { + value: '0', label: '强制关闭' + }, + { + value: '1', label: '强制开启' + }, + { + value: '2', label: '自动' + }, + { + value: '3', label: '自动时间' + } + ], //自动重启设置 restartcfg: { open: false, @@ -323,6 +412,19 @@ export default { run: false, }, + updateDate:{ + open: false, + queryForm: { + id: '', + emMode: '', + nPreValue: '1', + nBrightness: '1', + startTime1: new Date(2022, 9, 10, 18, 40), + endTime1: new Date(2022, 9, 10, 18, 40), + startTime2: new Date(2022, 9, 10, 18, 40), + endTime2: new Date(2022, 9, 10, 18, 40), + }, + }, logInfoList: [], options: [{ value: '0', @@ -424,6 +526,19 @@ export default { }; this.resetForm("form"); }, + updateDateReset(){ + this.updateDate.queryForm= { + id: '', + emMode: '2', + nPreValue: '1', + nBrightness: '1', + startTime1: new Date(2022, 9, 10, 18, 40), + endTime1: new Date(2022, 9, 10, 18, 40), + startTime2: new Date(2022, 9, 10, 18, 40), + endTime2: new Date(2022, 9, 10, 18, 40), + } + + }, /** 搜索按钮操作 */ handleQuery() { this.queryParams.pageNum = 1; @@ -461,6 +576,9 @@ export default { case "showLog": this.showLog(row); break; + case "showDate": + this.showDate(row); + break; case "reboot": this.reboot(row); break; @@ -557,6 +675,23 @@ export default { this.restartcfg.open = false; } }, + // 显示时间 + showDate(row){ + // 重置表单 + this.updateDateReset() + this.updateDate.queryForm.id = row.id; + this.getDate(row.id); + this.updateDate.open = true; + }, + // 查询时间 + async getDate(id){ + let res = await this.$axiosGet('/web/camera/getDate/' + id); + console.log(res.data) + }, + //修改时间 + updateDateForm(){ + console.log(this.updateDate.queryForm) + }, reboot(row) { const id = row.id; const status = row.status; From bdaf9e1809c8302721cb6b52af3e98f400496544 Mon Sep 17 00:00:00 2001 From: yx Date: Tue, 12 Jul 2022 17:10:32 +0800 Subject: [PATCH 2/5] =?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/photo/index.vue | 223 ++++++++++++++++++--------------- src/views/web/camera/index.vue | 4 +- 2 files changed, 125 insertions(+), 102 deletions(-) diff --git a/src/views/data/photo/index.vue b/src/views/data/photo/index.vue index 57a70b1..63d6861 100644 --- a/src/views/data/photo/index.vue +++ b/src/views/data/photo/index.vue @@ -2,14 +2,9 @@
- + - - + - + + + + + 搜索 重置 @@ -44,32 +34,23 @@
- +
-
{{item.stnm}}
+
{{ item.stnm }}
-
{{item.value}}
-
{{item.tm}}
+
{{ item.value }}
+
{{ item.tm }}
- + @@ -83,7 +64,7 @@ +.monitor { + display: flex; + flex-wrap: wrap; + justify-content: space-around; +} + +.card { + margin-bottom: 20px; + box-shadow: 2px 2px 8px #ccc; +} + +img { + width: 300px; +} + +.show-img { + width: 100%; + margin: 0 auto; +} + +.info { + padding: 16px; + display: flex; + justify-content: space-between; + line-height: 24px; + color: #999; +} + +.station {} + +.nm { + color: #333; + margin-top: 10px; + font-size: 20px; +} + +.value { + text-align: center; +} + diff --git a/src/views/web/camera/index.vue b/src/views/web/camera/index.vue index 82bee99..8296626 100644 --- a/src/views/web/camera/index.vue +++ b/src/views/web/camera/index.vue @@ -220,7 +220,7 @@ end-placeholder="结束日期" @change="chooseTimeRange" :picker-options="setDateRange"> - 查询 + 查询 @@ -615,7 +615,7 @@ export default { }, - async handleQuery() { + async handleAutoQuery() { let res = await this.$axiosGet('/web/camera/getloginfo', this.logform.queryForm); if (res.code === 0) { From 528e839394035c71a41275e3fc56635e0fa9e80e Mon Sep 17 00:00:00 2001 From: blank <2649084208@qq.com> Date: Tue, 12 Jul 2022 19:35:40 +0800 Subject: [PATCH 3/5] =?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/web/camera/index.vue | 46 ++++++++++++++++++++++++++-------- 1 file changed, 36 insertions(+), 10 deletions(-) diff --git a/src/views/web/camera/index.vue b/src/views/web/camera/index.vue index 5324b88..1fcadce 100644 --- a/src/views/web/camera/index.vue +++ b/src/views/web/camera/index.vue @@ -260,7 +260,7 @@ - + - +
@@ -319,6 +319,7 @@