|
|
|
@ -58,14 +58,13 @@
|
|
|
|
|
<h3>选择通道监拍点</h3>
|
|
|
|
|
|
|
|
|
|
<el-select
|
|
|
|
|
v-model="channelValue"
|
|
|
|
|
v-model="channelListValue"
|
|
|
|
|
placeholder="请选择"
|
|
|
|
|
@change="changeChannelId"
|
|
|
|
|
multiple
|
|
|
|
|
ref="multiSelect"
|
|
|
|
|
>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in channelOption"
|
|
|
|
|
v-for="item in channelListOption"
|
|
|
|
|
:key="item.value"
|
|
|
|
|
:label="item.label"
|
|
|
|
|
:value="item.value"
|
|
|
|
@ -203,6 +202,8 @@ export default {
|
|
|
|
|
channelId: "", //通道装置id
|
|
|
|
|
channelList: "", //通道数据
|
|
|
|
|
channelOption: [], //通道分类
|
|
|
|
|
channelListOption:[],//通道内容
|
|
|
|
|
channelListValue:'',
|
|
|
|
|
channelValue: [], //选中的通道
|
|
|
|
|
terminalPhoto: [], //获取拍照装置当前数据
|
|
|
|
|
totalPic: "",
|
|
|
|
@ -296,6 +297,7 @@ export default {
|
|
|
|
|
|
|
|
|
|
this.channelValue = [];
|
|
|
|
|
this.channelOption = [];
|
|
|
|
|
this.channelListOption = []
|
|
|
|
|
this.getChannelList(this.channelId); //获取通道id接口
|
|
|
|
|
},
|
|
|
|
|
//获取通道的接口
|
|
|
|
@ -317,6 +319,20 @@ export default {
|
|
|
|
|
}); // 选择通道一通道二select框
|
|
|
|
|
console.log(this.channelOption);
|
|
|
|
|
console.log(this.channelValue);
|
|
|
|
|
this.channelListOption = []
|
|
|
|
|
this.channelListOption.push({
|
|
|
|
|
label: '全部',
|
|
|
|
|
value: '',
|
|
|
|
|
termid: '',
|
|
|
|
|
});
|
|
|
|
|
this.channelList.forEach((item) => {
|
|
|
|
|
this.channelListOption.push({
|
|
|
|
|
label: item.channelname,
|
|
|
|
|
value: item.channelid,
|
|
|
|
|
termid: item.termId,
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
this.channelListValue = this.channelListOption[0].value; //默认选中所有通道
|
|
|
|
|
// console.log(JSON.parse(JSON.stringify(this.channelValue)));
|
|
|
|
|
// this.channelValue = JSON.parse(JSON.stringify(this.channelValue));
|
|
|
|
|
console.log(this.channelOption.length);
|
|
|
|
@ -376,13 +392,20 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
//切换通道
|
|
|
|
|
changeChannelId(val) {
|
|
|
|
|
console.log(val);
|
|
|
|
|
let selchannel = []
|
|
|
|
|
if (!val) {
|
|
|
|
|
this.channelList.forEach((item) => {
|
|
|
|
|
selchannel.push(item.channelid); //选中所有通道
|
|
|
|
|
});
|
|
|
|
|
}else{
|
|
|
|
|
selchannel.push(val)
|
|
|
|
|
}
|
|
|
|
|
let channelObj = {};
|
|
|
|
|
channelObj = this.channelOption.find(function (i) {
|
|
|
|
|
return i.value;
|
|
|
|
|
});
|
|
|
|
|
console.log(channelObj);
|
|
|
|
|
this.getTerminalPhotoList(val, this.dateValue, channelObj.termid);
|
|
|
|
|
this.getTerminalPhotoList(selchannel, this.dateValue, channelObj.termid);
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
//设置时间表
|
|
|
|
@ -577,7 +600,7 @@ export default {
|
|
|
|
|
//装置信息handleShowInfo
|
|
|
|
|
handleShowInfo() {
|
|
|
|
|
this.$refs.infodialog_ref.display();
|
|
|
|
|
this.$refs.infodialog_ref.getListData(this.channelId);
|
|
|
|
|
this.$refs.infodialog_ref.getListData(this.channelId,this.cmdid);
|
|
|
|
|
},
|
|
|
|
|
//历史图片
|
|
|
|
|
// handlehistoryPic() {
|
|
|
|
|