|
|
@ -1,69 +1,70 @@
|
|
|
|
<template>
|
|
|
|
<template>
|
|
|
|
<div class="monitor-container">
|
|
|
|
<div class="monitorBox">
|
|
|
|
<!-- 左侧数据列表树 -->
|
|
|
|
<div class="monitor-container">
|
|
|
|
<div class="sideBar">
|
|
|
|
<!-- 左侧数据列表树 -->
|
|
|
|
<!-- <treeSide></treeSide> -->
|
|
|
|
<div class="sideBar">
|
|
|
|
<!-- <el-tree ref="tree" :data="barData" @node-click="handleNodeClick" :props="defaultProps"></el-tree> -->
|
|
|
|
<!-- <treeSide></treeSide> -->
|
|
|
|
<el-tree
|
|
|
|
<!-- <el-tree ref="tree" :data="barData" @node-click="handleNodeClick" :props="defaultProps"></el-tree> -->
|
|
|
|
:data="lineTreeData"
|
|
|
|
<el-tree
|
|
|
|
:props="defaultProps"
|
|
|
|
:data="lineTreeData"
|
|
|
|
ref="tree"
|
|
|
|
:props="defaultProps"
|
|
|
|
node-key="id"
|
|
|
|
ref="tree"
|
|
|
|
highlight-current
|
|
|
|
node-key="id"
|
|
|
|
:default-expand-all="true"
|
|
|
|
highlight-current
|
|
|
|
@node-click="handleNodeClick"
|
|
|
|
:default-expand-all="true"
|
|
|
|
:current-node-key="currentNodekey"
|
|
|
|
@node-click="handleNodeClick"
|
|
|
|
>
|
|
|
|
:current-node-key="currentNodekey"
|
|
|
|
<span class="custom-tree-node" slot-scope="{ node, data }">
|
|
|
|
>
|
|
|
|
<span v-if="data.list" class="iconfont icon-dianli"> </span>
|
|
|
|
<span class="custom-tree-node" slot-scope="{ node, data }">
|
|
|
|
<span
|
|
|
|
<span v-if="data.list" class="iconfont icon-dianli"> </span>
|
|
|
|
v-else
|
|
|
|
<span
|
|
|
|
class="iconfont icon-dianlihangye"
|
|
|
|
v-else
|
|
|
|
style="margin-right: 3px"
|
|
|
|
class="iconfont icon-dianlihangye"
|
|
|
|
></span>
|
|
|
|
style="margin-right: 3px"
|
|
|
|
<span>{{ node.label }}</span>
|
|
|
|
></span>
|
|
|
|
</span>
|
|
|
|
<span>{{ node.label }}</span>
|
|
|
|
</el-tree>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</el-tree>
|
|
|
|
<!-- <router-view></router-view> -->
|
|
|
|
|
|
|
|
<!-- 中心内容 -->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- <picturemain :photoData="photoData" v-if="showBigPic"></picturemain> -->
|
|
|
|
|
|
|
|
<!-- 带参数的中心内容右侧参数区 -->
|
|
|
|
|
|
|
|
<div class="picSetBox">
|
|
|
|
|
|
|
|
<div class="swiperBox">
|
|
|
|
|
|
|
|
<carouselChart :terminalPhoto="terminalPhoto"></carouselChart>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="parameterArea">
|
|
|
|
<!-- <router-view></router-view> -->
|
|
|
|
<div class="paramsDate">
|
|
|
|
<!-- 中心内容 -->
|
|
|
|
<h3>日期选择</h3>
|
|
|
|
<!-- <picturemain :photoData="photoData" v-if="showBigPic"></picturemain> -->
|
|
|
|
<el-date-picker
|
|
|
|
<!-- 带参数的中心内容右侧参数区 -->
|
|
|
|
v-model="dateValue"
|
|
|
|
<div class="picSetBox">
|
|
|
|
type="date"
|
|
|
|
<div class="swiperBox">
|
|
|
|
placeholder="选择日期"
|
|
|
|
<carouselChart :terminalPhoto="terminalPhoto"></carouselChart>
|
|
|
|
value-format="timestamp"
|
|
|
|
|
|
|
|
@change="changedate"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="monitorItemBox">
|
|
|
|
<div class="parameterArea">
|
|
|
|
<h3>通道</h3>
|
|
|
|
<div class="paramsDate">
|
|
|
|
<el-select
|
|
|
|
<h3>日期选择</h3>
|
|
|
|
v-model="channelValue"
|
|
|
|
<el-date-picker
|
|
|
|
placeholder="请选择"
|
|
|
|
v-model="dateValue"
|
|
|
|
@change="changeChannelId"
|
|
|
|
type="date"
|
|
|
|
>
|
|
|
|
placeholder="选择日期"
|
|
|
|
<el-option
|
|
|
|
value-format="timestamp"
|
|
|
|
v-for="item in channelOption"
|
|
|
|
@change="changedate"
|
|
|
|
:key="item.value"
|
|
|
|
|
|
|
|
:label="item.label"
|
|
|
|
|
|
|
|
:value="item.value"
|
|
|
|
|
|
|
|
>
|
|
|
|
>
|
|
|
|
</el-option>
|
|
|
|
</el-date-picker>
|
|
|
|
</el-select>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="monitorItemBox">
|
|
|
|
|
|
|
|
<h3>通道</h3>
|
|
|
|
|
|
|
|
<el-select
|
|
|
|
|
|
|
|
v-model="channelValue"
|
|
|
|
|
|
|
|
placeholder="请选择"
|
|
|
|
|
|
|
|
@change="changeChannelId"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<el-option
|
|
|
|
|
|
|
|
v-for="item in channelOption"
|
|
|
|
|
|
|
|
:key="item.value"
|
|
|
|
|
|
|
|
:label="item.label"
|
|
|
|
|
|
|
|
:value="item.value"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
</el-option>
|
|
|
|
|
|
|
|
</el-select>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- <paramArea></paramArea> -->
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- <paramArea></paramArea> -->
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
@ -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,59 +224,67 @@ export default {
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style lang="less">
|
|
|
|
<style lang="less">
|
|
|
|
.monitor-container {
|
|
|
|
.monitorBox {
|
|
|
|
display: flex;
|
|
|
|
width: calc(100% - 16px);
|
|
|
|
height: 100%;
|
|
|
|
height: calc(100% - 32px);
|
|
|
|
border: 1px solid @border-color-base;
|
|
|
|
padding: 16px 8px;
|
|
|
|
box-sizing: border-box;
|
|
|
|
background: #ffffff;
|
|
|
|
background: @color-white;
|
|
|
|
.monitor-container {
|
|
|
|
.sideBar {
|
|
|
|
|
|
|
|
width: 300px;
|
|
|
|
|
|
|
|
border-right: 1px solid @border-color-base;
|
|
|
|
|
|
|
|
overflow: auto;
|
|
|
|
|
|
|
|
.el-tree {
|
|
|
|
|
|
|
|
.el-tree-node__content {
|
|
|
|
|
|
|
|
height: 40px;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
.el-tree--highlight-current
|
|
|
|
|
|
|
|
.el-tree-node.is-current
|
|
|
|
|
|
|
|
> .el-tree-node__content {
|
|
|
|
|
|
|
|
// 设置颜色
|
|
|
|
|
|
|
|
color: #fff;
|
|
|
|
|
|
|
|
background: #2d8cf0;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
.picSetBox {
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
display: flex;
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
height: 100%;
|
|
|
|
height: 100%;
|
|
|
|
//background: #fcc;
|
|
|
|
box-sizing: border-box;
|
|
|
|
flex: 1;
|
|
|
|
background: @color-white;
|
|
|
|
overflow: hidden;
|
|
|
|
border: 1px solid #dddddd;
|
|
|
|
.swiperBox {
|
|
|
|
border-radius: 4px;
|
|
|
|
-webkit-box-flex: 1;
|
|
|
|
.sideBar {
|
|
|
|
-ms-flex: 1;
|
|
|
|
width: 300px;
|
|
|
|
|
|
|
|
border-right: 1px solid @border-color-base;
|
|
|
|
|
|
|
|
overflow: auto;
|
|
|
|
|
|
|
|
padding: 16px 0px;
|
|
|
|
|
|
|
|
.el-tree {
|
|
|
|
|
|
|
|
.el-tree-node__content {
|
|
|
|
|
|
|
|
height: 40px;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
.el-tree--highlight-current
|
|
|
|
|
|
|
|
.el-tree-node.is-current
|
|
|
|
|
|
|
|
> .el-tree-node__content {
|
|
|
|
|
|
|
|
// 设置颜色
|
|
|
|
|
|
|
|
color: #fff;
|
|
|
|
|
|
|
|
background: #2d8cf0;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
.picSetBox {
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
height: 100%;
|
|
|
|
|
|
|
|
//background: #fcc;
|
|
|
|
flex: 1;
|
|
|
|
flex: 1;
|
|
|
|
width: auto;
|
|
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
.swiperBox {
|
|
|
|
}
|
|
|
|
-webkit-box-flex: 1;
|
|
|
|
.parameterArea {
|
|
|
|
-ms-flex: 1;
|
|
|
|
width: 300px;
|
|
|
|
flex: 1;
|
|
|
|
padding: 16px 16px;
|
|
|
|
width: auto;
|
|
|
|
border-left: 1px solid #dcdfe6;
|
|
|
|
overflow: hidden;
|
|
|
|
.monitorItemBox,
|
|
|
|
|
|
|
|
.paramsDate {
|
|
|
|
|
|
|
|
margin-bottom: 16px;
|
|
|
|
|
|
|
|
h3 {
|
|
|
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
|
|
|
font-weight: normal;
|
|
|
|
|
|
|
|
color: @color-text-primary;
|
|
|
|
|
|
|
|
margin-bottom: 8px;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.el-date-editor.el-input {
|
|
|
|
}
|
|
|
|
width: 215px;
|
|
|
|
.parameterArea {
|
|
|
|
|
|
|
|
width: 220px;
|
|
|
|
|
|
|
|
padding: 16px 16px;
|
|
|
|
|
|
|
|
border-left: 1px solid #dcdfe6;
|
|
|
|
|
|
|
|
.monitorItemBox,
|
|
|
|
|
|
|
|
.paramsDate {
|
|
|
|
|
|
|
|
margin-bottom: 16px;
|
|
|
|
|
|
|
|
h3 {
|
|
|
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
|
|
|
font-weight: normal;
|
|
|
|
|
|
|
|
color: @color-text-primary;
|
|
|
|
|
|
|
|
margin-bottom: 8px;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
.el-date-editor.el-input {
|
|
|
|
|
|
|
|
width: 215px;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|