@@ -101,6 +130,7 @@
import {
selectProjectVideoListApi,
selectUserVideoListApi,
+ getVideoTreeGroupVideoApi,
} from "@/assets/js/api/equipmentCenter/cameraList";
import playBack from "./components/playBack/playBack.vue";
import closePage from "@/components/closePage";
@@ -109,6 +139,7 @@ export default {
components: { playBack, closePage },
data() {
return {
+ videoTreeData: [],
devList: [],
selectList: [],
dataType: 1,
@@ -134,10 +165,21 @@ export default {
//设置录像回放时间的默认值
this.selectDate.startTime = dateFormat(new Date(), "yyyy-MM-dd 00:00:00");
this.selectDate.endTime = dateFormat(new Date(), "yyyy-MM-dd hh:mm:ss");
- this.loadData();
+ // this.loadData();
+ this.getVideoTreeGroup();
},
methods: {
+ //获取视频分组列表
+ getVideoTreeGroup() {
+ getVideoTreeGroupVideoApi({
+ projectSn: this.$store.state.projectSn,
+ }).then((res) => {
+ console.log("获取视频分组列表", res);
+ this.videoTreeData = res.result.videoList;
+ this.dataType = res.result.type;
+ });
+ },
// 回放视频
replayVideo(){
this.isReplayNum = this.isReplayNum + 1;
@@ -149,6 +191,16 @@ export default {
this.selectList = [item];
console.log("右边的值", this.selectList);
},
+ // 切换视频分组
+ changeTreeVideo(item) {
+ console.log("点击了列表----");
+
+ console.log(item, "xxxxxxxxxx");
+ if (item.videoId) {
+ this.selectList = [item];
+ }
+ console.log("右边的值", this.selectList);
+ },
loadData() {
selectProjectVideoListApi({
projectSn: this.$store.state.projectSn,
@@ -274,4 +326,24 @@ export default {
border: 1px solid #00fdff;
color: white;
}
+// 树形选择样式
+/deep/.el-tree-node:focus > .el-tree-node__content {
+ background-color: rgba(168, 191, 230, 0.69);
+}
+.custom-tree-node {
+ width: 80%;
+ display: flex;
+ align-items: center;
+ span {
+ display: inline-block;
+ white-space: nowrap;
+ text-overflow: ellipsis;
+ overflow: hidden;
+ width: 85%;
+ color: white;
+ }
+ img {
+ margin-right: 8px;
+ }
+}
diff --git a/src/views/projectFront/videoDataAnalysis/monitorAnalysis.vue b/src/views/projectFront/videoDataAnalysis/monitorAnalysis.vue
new file mode 100644
index 00000000..73a5d6ff
--- /dev/null
+++ b/src/views/projectFront/videoDataAnalysis/monitorAnalysis.vue
@@ -0,0 +1,188 @@
+
+
+
+
+