+
@@ -76,7 +76,7 @@
tooltip-effect="dark"
stripe
style="width: 100%"
- height="calc(100% - 0px)"
+ :height="tableheight"
fit
>
@@ -88,10 +88,10 @@
-
+
-
+
{{ scope.row.cmdid }}
@@ -100,7 +100,20 @@
-
+
+
+
+ 在线
+ 离线
+
+
+
@@ -222,6 +235,8 @@ export default {
pageSize: 20, // 每页数量
total: 0, //总条数
termLoading: false,
+ drawerSearch: false,
+ tableheight: "100%",
};
},
created() {},
@@ -331,6 +346,24 @@ 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%";
+ }
+ });
+ },
},
};
@@ -366,7 +399,7 @@ export default {
}
}
.deviceTable {
- height: calc(100% - 94px);
+ height: calc(100% - 32px);
//background: #fcc;
.el-table {
.cell {
@@ -374,6 +407,23 @@ export default {
vertical-align: middle; /* 如果需要垂直居中 */
}
}
+ .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;
+ }
+ }
}
}
diff --git a/src/views/reportData/index.vue b/src/views/reportData/index.vue
index 1f9dd2d..4b9a42c 100644
--- a/src/views/reportData/index.vue
+++ b/src/views/reportData/index.vue
@@ -18,6 +18,7 @@
设备状态列表
diff --git a/src/views/reportData/photostatis/index.vue b/src/views/reportData/photostatis/index.vue
index 0d5ec67..292872d 100644
--- a/src/views/reportData/photostatis/index.vue
+++ b/src/views/reportData/photostatis/index.vue
@@ -106,7 +106,12 @@
show-overflow-tooltip
>
-
+
{{ scope.row.photoInfo.firstPhotoTime }}
@@ -151,6 +158,7 @@
prop="lastRecvTime"
label="照片最后接收时间"
min-width="130"
+ show-overflow-tooltip
>
{{ scope.row.photoInfo.lastRecvTime }}
@@ -161,6 +169,7 @@
prop="workingStatus.bootTime"
label="最后重启时间"
min-width="130"
+ show-overflow-tooltip
>
{{