From 699c30f14525663905d66f78b6c0adb9426792a2 Mon Sep 17 00:00:00 2001 From: fanluyan <754122931@qq.com> Date: Mon, 10 Jul 2023 17:19:48 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=EF=BC=8C=E5=91=8A=E8=AD=A6?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E6=94=BE=E5=A4=A7=E5=9B=BE=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../alarmHandling/components/historyimg.vue | 7 + src/views/alarmHandling/index.vue | 198 +++++++++++++++++- src/views/components/carouselChart.vue | 22 +- 3 files changed, 210 insertions(+), 17 deletions(-) diff --git a/src/views/alarmHandling/components/historyimg.vue b/src/views/alarmHandling/components/historyimg.vue index 27ed376..9ea3750 100644 --- a/src/views/alarmHandling/components/historyimg.vue +++ b/src/views/alarmHandling/components/historyimg.vue @@ -91,5 +91,12 @@ export default { height: 648px; } } + .el-carousel__arrow { + background: rgba(0, 0, 0, 0.5); + height: 40px; + width: 40px; + color: #169e8c; + font-size: 22px; + } } diff --git a/src/views/alarmHandling/index.vue b/src/views/alarmHandling/index.vue index f09bf70..5979129 100644 --- a/src/views/alarmHandling/index.vue +++ b/src/views/alarmHandling/index.vue @@ -77,10 +77,15 @@ 查询 + -
+
-
+
32) { + this.ctx.fillText(this.textInfo, top, left - 14); + } else if (this.canvas.height - left + height > 32) { + this.ctx.fillText(this.textInfo, top, height - 14); + } + this.ctx.closePath(); this.ctx.stroke(); }, @@ -583,6 +660,22 @@ export default { this.$refs.historyimg_ref.display(); this.$refs.historyimg_ref.getdataform(this.selectRow); }, + //切换图片 + handleListRow() { + this.tableShow = !this.tableShow; + }, + + //在图片列表也执行 自动拍照和 查看历史图片 + handlePicList(val) { + console.log(val); + this.selectRow = val; + this.handleCommandpic(); + }, + handlePicHistory(val) { + console.log(val); + this.selectRow = val; + this.handleHistory(); + }, dateFormat(row, column) { var date = row[column.property]; if (date == undefined) { @@ -640,6 +733,7 @@ export default { width: 100%; height: 100%; cursor: pointer; + pointer-events: none; } } .viewClose { @@ -726,7 +820,6 @@ export default { width: 100%; height: 100%; position: relative; - .picshow { width: 100%; height: 100%; @@ -758,6 +851,7 @@ export default { height: 100%; cursor: pointer; z-index: 2; + pointer-events: none; } } .editorBtn { @@ -772,5 +866,89 @@ export default { } } } + .pictureBox { + height: calc(100% - 90px); + max-height: calc(100% - 90px); + .el-empty { + margin: auto; + } + .piclist { + display: flex; + // justify-content: space-around; + flex-wrap: wrap; + overflow: auto; + border: 1px solid #eee; + height: calc(100% - 2px); + } + .imgList { + width: calc((100% - 104px) / 3); + position: relative; + display: inline-block; + margin: 8px; + position: relative; + padding: 4px; + border-radius: 3px; + background: #fff; + height: fit-content; + height: 320px; + .el-card__body { + padding: 0px; + } + .bigpic { + width: 100%; + height: 100%; + background-size: 100% 100%; + .picshow { + position: relative; + .myCanvas { + position: absolute; + width: 100%; + height: 100%; + z-index: 2; + left: 0; + top: 0; + } + } + } + img { + cursor: pointer; + width: 100%; + height: 250px; + object-fit: fill; + } + + .caption { + padding: 9px; + color: #333; + .alarmInfo { + color: #e49e61; + } + .infoTop { + font-size: 16px; + color: #000; + font-weight: normal; + margin-top: 2px; + padding-left: 5px; + padding-right: 5px; + } + .infoBottom { + color: #000; + font-size: 12px; + font-weight: normal; + margin-top: 6px; + padding-left: 5px; + padding-right: 5px; + .el-button--small { + margin-left: 24px; + padding: 4px; + width: 78px; + } + .el-button + .el-button { + margin-left: 10px; + } + } + } + } + } } diff --git a/src/views/components/carouselChart.vue b/src/views/components/carouselChart.vue index baf52f6..3ea43c9 100644 --- a/src/views/components/carouselChart.vue +++ b/src/views/components/carouselChart.vue @@ -9,16 +9,15 @@ bigPicPath.indexOf('videos') == -1 " :style="bigPicPath ? 'backgroundImage:url(' + bigPicPath + ')' : ''" - @click="handleBigPicbox(bigPicPath)" >
- +
- +
@@ -51,7 +50,13 @@ @click="closePic" >
- +
@@ -222,6 +227,7 @@ export default { mounted() { console.log(this.terminalPhoto); this.bigPicPath = this.terminalPhoto[0].path + "!1366x768"; + // this.bigPicPath = this.terminalPhoto[0].path + "!1366x768"; this.fiveList = this.terminalPhoto.slice(this.page - 1, this.pagesize); this.total = this.terminalPhoto.length / this.pagesize; console.log(this.fiveList); @@ -479,10 +485,11 @@ export default { animation-iteration-count: 1; /*动画播放的次数*/ animation-duration: 0.65s; - + overflow: hidden; + border: 2px solid #f00; img { - max-width: 1366px; - max-height: 768px; + width: 100%; + height: 100%; margin: auto; } } @@ -712,5 +719,6 @@ export default { transform: scale(1); } } + // https://v1.github.surmon.me/vue-awesome-swiper/