From 8d8fd19e5dcf06cdea982d9a3081e455c9e9f778 Mon Sep 17 00:00:00 2001
From: fanluyan <754122931@qq.com>
Date: Fri, 26 Apr 2024 18:11:34 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=8A=A5=E8=A1=A8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../components/carouselChart.vue | 20 ++--
src/views/reportData/index.vue | 51 ++++++++--
.../photostatis/components/ipDialog.vue | 18 ++++
.../photostatis/components/photoList.vue | 24 ++++-
src/views/reportData/photostatis/index.vue | 93 ++++++++++++++++---
src/views/system/drawPic.vue | 2 +-
6 files changed, 171 insertions(+), 37 deletions(-)
diff --git a/src/views/realTimeMonitor/components/carouselChart.vue b/src/views/realTimeMonitor/components/carouselChart.vue
index 3b98c22..98714ea 100644
--- a/src/views/realTimeMonitor/components/carouselChart.vue
+++ b/src/views/realTimeMonitor/components/carouselChart.vue
@@ -96,8 +96,8 @@
>
-
-
@@ -465,7 +465,7 @@ export default {
//设置线条颜色,必须放在绘制之前
this.ctx.strokeStyle = "#ff0000";
// 线宽设置,必须放在绘制之前
- this.ctx.lineWidth = 1;
+ this.ctx.lineWidth = 2;
this.labelMarkArrs = data.alarmlist;
this.recArrs = [];
for (var i = 0; i < this.labelMarkArrs.length; i++) {
@@ -545,7 +545,7 @@ export default {
//设置线条颜色,必须放在绘制之前
this.ctx.strokeStyle = "#ff0000";
// 线宽设置,必须放在绘制之前
- this.ctx.lineWidth = 1;
+ this.ctx.lineWidth = 2;
this.labelMarkArrs = data.alarmlist;
this.recArrs = [];
for (var i = 0; i < this.labelMarkArrs.length; i++) {
@@ -560,11 +560,7 @@ export default {
(this.labelMarkArrs[i].height * this.canvas.height) / 2,
w: this.labelMarkArrs[i].width * this.canvas.width,
h: this.labelMarkArrs[i].height * this.canvas.height,
- text:
- this.labelMarkArrs[i].enname +
- " " +
- this.labelMarkArrs[i].prob +
- "%",
+ text: this.labelMarkArrs[i].enname + this.labelMarkArrs[i].prob + "%",
type: this.labelMarkArrs[i].label,
});
}
@@ -574,7 +570,7 @@ export default {
// >2的判断是为了防止误触画出来的数据
if (this.recArrs[i].w > 2 && this.recArrs[i].h > 2) {
this.ctx.beginPath();
- this.ctx.lineWidth = 1; // 矩形框的线条宽度
+ this.ctx.lineWidth = 2; // 矩形框的线条宽度
this.ctx.strokeStyle = "rgb(255, 255, 0)"; // 矩形框的线条颜色
// 设置填充样式
// this.ctx.fillStyle = "rgba(22, 158, 140, 0.4)"; // 蓝色,半透明
@@ -593,7 +589,7 @@ export default {
// 如果有文本信息,填充文本信息
if (this.recArrs[i].text) {
this.ctx.font = "100 16px 微软雅黑";
- this.ctx.lineWidth = 1;
+ this.ctx.lineWidth = 2;
this.ctx.strokeStyle = "rgb(255,255,0)";
this.ctx.strokeText(
this.recArrs[i].text,
diff --git a/src/views/reportData/index.vue b/src/views/reportData/index.vue
index d43b285..1f9dd2d 100644
--- a/src/views/reportData/index.vue
+++ b/src/views/reportData/index.vue
@@ -3,10 +3,27 @@
+
+ 照片统计
+
+
-
+
+ 设备状态列表
+
+
+
@@ -25,7 +42,10 @@ export default {
equipmentStatus,
},
data() {
- return {};
+ return {
+ picSearchFlag: true,
+ statusFlag: false,
+ };
},
created() {},
mounted() {},
@@ -34,12 +54,17 @@ export default {
handleTabClick(tab, event) {
// 当标签页被点击时触发
const tabName = tab.label;
+ console.log(tab);
if (tabName === "照片统计") {
+ this.picSearchFlag = true;
+ this.statusFlag = false;
// 调用照片统计组件的方法
if (this.$refs.photoStatisRef) {
this.$refs.photoStatisRef.onSubmit(); // 假设someMethod是你要调用的方法
}
} else if (tabName === "设备状态列表") {
+ this.picSearchFlag = false;
+ this.statusFlag = true;
// 调用设备状态列表组件的方法
if (this.$refs.equipmentStatusRef) {
this.$refs.equipmentStatusRef.onSubmit(); // 假设someOtherMethod是你要调用的方法
@@ -47,6 +72,10 @@ export default {
}
// 可以继续添加其他标签页的逻辑
},
+ handlePicSearch() {
+ console.log("aaaaaaaaaaaa");
+ this.$refs.photoStatisRef.showSearch();
+ },
},
};
@@ -55,12 +84,22 @@ export default {
width: calc(100% - 24px);
height: calc(100% - 24px);
padding: 12px 12px;
-
+ .el-tabs--border-card > .el-tabs__content {
+ padding: 8px;
+ }
.el-tabs {
height: 100%;
+
+ .el-tabs__header {
+ .el-button--default,
+ .el-button--primary {
+ width: auto;
+ margin-left: 12px;
+ }
+ }
.el-tabs__content {
- height: calc(100% - 69px);
- overflow: auto;
+ height: calc(100% - 65px);
+ //overflow: auto;
.el-tab-pane {
height: 100%;
}
diff --git a/src/views/reportData/photostatis/components/ipDialog.vue b/src/views/reportData/photostatis/components/ipDialog.vue
index 8e2b0fc..b58e2a9 100644
--- a/src/views/reportData/photostatis/components/ipDialog.vue
+++ b/src/views/reportData/photostatis/components/ipDialog.vue
@@ -19,6 +19,7 @@
style="width: 100%"
height="calc(100% - 0px)"
fit
+ border
>
@@ -111,6 +112,23 @@ export default {
}
.ipContain {
height: 100%;
+ .el-table {
+ color: #000;
+ thead {
+ color: #000;
+ font-weight: bold;
+ }
+ th.el-table__cell {
+ background: #dcdcdc !important;
+ }
+ td.el-table__cell,
+ th.el-table__cell.is-leaf {
+ border-bottom: 1px solid #dcdcdc;
+ }
+ .el-table__cell {
+ border-right: 1px solid #dcdcdc;
+ }
+ }
}
.headInfo {
position: absolute;
diff --git a/src/views/reportData/photostatis/components/photoList.vue b/src/views/reportData/photostatis/components/photoList.vue
index 5d3a1c8..455a3f0 100644
--- a/src/views/reportData/photostatis/components/photoList.vue
+++ b/src/views/reportData/photostatis/components/photoList.vue
@@ -20,11 +20,11 @@
v-loading="picloading"
ref="multipleTable"
:data="picListData"
- tooltip-effect="dark"
stripe
+ tooltip-effect="dark"
style="width: 100%"
height="calc(100% - 0px)"
- fit
+ border
>
@@ -35,7 +35,7 @@
-
+
@@ -53,6 +53,7 @@
:src="scope.row.path"
>
+ {{ scope.row.picid }}
@@ -191,6 +192,23 @@ export default {
}
.ipContain {
height: calc(100% - 40px);
+ .el-table {
+ color: #000;
+ thead {
+ color: #000;
+ font-weight: bold;
+ }
+ th.el-table__cell {
+ background: #dcdcdc !important;
+ }
+ td.el-table__cell,
+ th.el-table__cell.is-leaf {
+ border-bottom: 1px solid #dcdcdc;
+ }
+ .el-table__cell {
+ border-right: 1px solid #dcdcdc;
+ }
+ }
}
}
.el-dialog__headerbtn {
diff --git a/src/views/reportData/photostatis/index.vue b/src/views/reportData/photostatis/index.vue
index 87e4450..65f4f66 100644
--- a/src/views/reportData/photostatis/index.vue
+++ b/src/views/reportData/photostatis/index.vue
@@ -1,6 +1,6 @@
-
-
+
+
@@ -64,14 +64,14 @@
>
-
+
-
+
查询
@@ -84,7 +84,7 @@
tooltip-effect="dark"
stripe
style="width: 100%"
- height="calc(100% - 0px)"
+ :height="tableheight"
fit
>
@@ -95,17 +95,18 @@
{{ (page - 1) * pageSize + scope.$index + 1 }}
-
+
-
+
+
-
+
-
-
+
+
+
-
+
{{ scope.row.photoInfo.firstPhotoTime }}
-
+
{{ scope.row.photoInfo.lastRecvTime }}
-
+
{{
scope.row.workingStatus.bootTime == null ||
@@ -174,6 +192,7 @@
+
@@ -219,6 +238,8 @@ export default {
pageSize: 20, // 每页数量
total: 0, //总条数
photoLoading: false,
+ drawerSearch: false,
+ tableheight: "100%",
};
},
created() {},
@@ -328,13 +349,38 @@ export default {
handleShowIp(row) {
this.$refs.ipDialogref.display(row);
},
+ showSearch() {
+ this.drawerSearch = !this.drawerSearch;
+ console.log(this.drawerSearch);
+
+ this.$nextTick(() => {
+ if (this.drawerSearch) {
+ // 如果抽屉现在是可见的,获取其高度
+ console.log(this.$refs.statisRef.offsetHeight);
+ const searchBoxHeight = this.$refs.searchref.offsetHeight;
+ console.log("搜索框的高度:", searchBoxHeight);
+ this.tableheight =
+ this.$refs.statisRef.offsetHeight - searchBoxHeight - 36;
+ console.log(this.tableheight);
+ } else {
+ this.tableheight = "100%";
+ }
+ });
+ },
},
};
diff --git a/src/views/system/drawPic.vue b/src/views/system/drawPic.vue
index 0babc5e..8cf4b0d 100644
--- a/src/views/system/drawPic.vue
+++ b/src/views/system/drawPic.vue
@@ -98,7 +98,7 @@ export default {
6: "山火",
7: "烟雾",
8: "导线异物体",
- 9: "导线义务防尘网",
+ 9: "导线异物防尘网",
},
// 保存矩形数据