|
|
@ -1,4 +1,5 @@
|
|
|
|
<template>
|
|
|
|
<template>
|
|
|
|
|
|
|
|
<div class="monitorBox">
|
|
|
|
<div class="monitor-container">
|
|
|
|
<div class="monitor-container">
|
|
|
|
<!-- 左侧数据列表树 -->
|
|
|
|
<!-- 左侧数据列表树 -->
|
|
|
|
<div class="sideBar">
|
|
|
|
<div class="sideBar">
|
|
|
@ -27,7 +28,6 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- <router-view></router-view> -->
|
|
|
|
<!-- <router-view></router-view> -->
|
|
|
|
<!-- 中心内容 -->
|
|
|
|
<!-- 中心内容 -->
|
|
|
|
|
|
|
|
|
|
|
|
<!-- <picturemain :photoData="photoData" v-if="showBigPic"></picturemain> -->
|
|
|
|
<!-- <picturemain :photoData="photoData" v-if="showBigPic"></picturemain> -->
|
|
|
|
<!-- 带参数的中心内容右侧参数区 -->
|
|
|
|
<!-- 带参数的中心内容右侧参数区 -->
|
|
|
|
<div class="picSetBox">
|
|
|
|
<div class="picSetBox">
|
|
|
@ -66,6 +66,7 @@
|
|
|
|
<!-- <paramArea></paramArea> -->
|
|
|
|
<!-- <paramArea></paramArea> -->
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
@ -143,13 +144,13 @@ export default {
|
|
|
|
console.log(this.currentNodekey);
|
|
|
|
console.log(this.currentNodekey);
|
|
|
|
this.channelId = this.currentNodekey;
|
|
|
|
this.channelId = this.currentNodekey;
|
|
|
|
console.log(this.channelId);
|
|
|
|
console.log(this.channelId);
|
|
|
|
|
|
|
|
this.getChannelList(this.channelId); //获取通道id接口
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch((err) => {
|
|
|
|
.catch((err) => {
|
|
|
|
console.log(err); //代码错误、请求失败捕获
|
|
|
|
console.log(err); //代码错误、请求失败捕获
|
|
|
|
});
|
|
|
|
});
|
|
|
|
this.getChannelList(this.channelId); //获取通道id接口
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
//点击获取当前点击的tree数据
|
|
|
|
//点击获取当前点击的tree数据
|
|
|
|
handleNodeClick(data, node) {
|
|
|
|
handleNodeClick(data, node) {
|
|
|
@ -190,6 +191,7 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
//获取图片
|
|
|
|
//获取图片
|
|
|
|
getTerminalPhotoList(id, date, termId) {
|
|
|
|
getTerminalPhotoList(id, date, termId) {
|
|
|
|
|
|
|
|
this.terminalPhoto = [];
|
|
|
|
console.log(id, date, termId);
|
|
|
|
console.log(id, date, termId);
|
|
|
|
getTerminalPhotoListJoggle({
|
|
|
|
getTerminalPhotoListJoggle({
|
|
|
|
channelid: id,
|
|
|
|
channelid: id,
|
|
|
@ -198,6 +200,7 @@ export default {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.then((res) => {
|
|
|
|
.then((res) => {
|
|
|
|
console.log(res);
|
|
|
|
console.log(res);
|
|
|
|
|
|
|
|
|
|
|
|
this.terminalPhoto = res.data.list;
|
|
|
|
this.terminalPhoto = res.data.list;
|
|
|
|
console.log(this.terminalPhoto);
|
|
|
|
console.log(this.terminalPhoto);
|
|
|
|
})
|
|
|
|
})
|
|
|
@ -213,6 +216,7 @@ export default {
|
|
|
|
return i.value === val;
|
|
|
|
return i.value === val;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
console.log(channelObj);
|
|
|
|
console.log(channelObj);
|
|
|
|
|
|
|
|
|
|
|
|
this.getTerminalPhotoList(val, this.dateValue, channelObj.termid);
|
|
|
|
this.getTerminalPhotoList(val, this.dateValue, channelObj.termid);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -220,16 +224,23 @@ export default {
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style lang="less">
|
|
|
|
<style lang="less">
|
|
|
|
|
|
|
|
.monitorBox {
|
|
|
|
|
|
|
|
width: calc(100% - 16px);
|
|
|
|
|
|
|
|
height: calc(100% - 32px);
|
|
|
|
|
|
|
|
padding: 16px 8px;
|
|
|
|
|
|
|
|
background: #ffffff;
|
|
|
|
.monitor-container {
|
|
|
|
.monitor-container {
|
|
|
|
display: flex;
|
|
|
|
display: flex;
|
|
|
|
height: 100%;
|
|
|
|
height: 100%;
|
|
|
|
border: 1px solid @border-color-base;
|
|
|
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
box-sizing: border-box;
|
|
|
|
background: @color-white;
|
|
|
|
background: @color-white;
|
|
|
|
|
|
|
|
border: 1px solid #dddddd;
|
|
|
|
|
|
|
|
border-radius: 4px;
|
|
|
|
.sideBar {
|
|
|
|
.sideBar {
|
|
|
|
width: 300px;
|
|
|
|
width: 300px;
|
|
|
|
border-right: 1px solid @border-color-base;
|
|
|
|
border-right: 1px solid @border-color-base;
|
|
|
|
overflow: auto;
|
|
|
|
overflow: auto;
|
|
|
|
|
|
|
|
padding: 16px 0px;
|
|
|
|
.el-tree {
|
|
|
|
.el-tree {
|
|
|
|
.el-tree-node__content {
|
|
|
|
.el-tree-node__content {
|
|
|
|
height: 40px;
|
|
|
|
height: 40px;
|
|
|
@ -259,7 +270,7 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.parameterArea {
|
|
|
|
.parameterArea {
|
|
|
|
width: 300px;
|
|
|
|
width: 220px;
|
|
|
|
padding: 16px 16px;
|
|
|
|
padding: 16px 16px;
|
|
|
|
border-left: 1px solid #dcdfe6;
|
|
|
|
border-left: 1px solid #dcdfe6;
|
|
|
|
.monitorItemBox,
|
|
|
|
.monitorItemBox,
|
|
|
@ -277,4 +288,5 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</style>
|
|
|
|