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/