|
@@ -516,10 +516,47 @@ export default {
|
|
|
const params = Object.assign({})
|
|
|
params.longitude = data.longitude;
|
|
|
params.latitude = data.latitude;
|
|
|
- params.type = '4'
|
|
|
- initByCameras(params).then(res => {
|
|
|
- this.$refs.TVWall.showTVWall1(data.longitude, data.latitude, res.data);
|
|
|
- });
|
|
|
+
|
|
|
+ const treeLabels = [{
|
|
|
+ "id": null,
|
|
|
+ "labelCode": "999",
|
|
|
+ "labelName": "电视墙",
|
|
|
+ "cameraType": null,
|
|
|
+ "parentLabelCode": ""
|
|
|
+ }];
|
|
|
+ const labelChannels = [];
|
|
|
+ for (let i in data.cameraList){
|
|
|
+ treeLabels.push({
|
|
|
+ "id": null,
|
|
|
+ "labelCode": data.cameraList[i].cameraCode,
|
|
|
+ "labelName": data.cameraList[i].cameraName,
|
|
|
+ "cameraType": "1",
|
|
|
+ "parentLabelCode": "999"
|
|
|
+ })
|
|
|
+ labelChannels.push({
|
|
|
+ "labelCode": data.cameraList[i].cameraCode,
|
|
|
+ "channelDates": [
|
|
|
+ {
|
|
|
+ "channelCode": data.cameraList[i].cameraCode,
|
|
|
+ "channelName": data.cameraList[i].cameraName,
|
|
|
+ "channelSn": null,
|
|
|
+ "cameraType": "1",
|
|
|
+ "online": "1",
|
|
|
+ "cameraCode": "1"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ })
|
|
|
+ }
|
|
|
+ const dianshiqiang = [
|
|
|
+ {
|
|
|
+ "switchTab": "2",
|
|
|
+ "treeLabels": treeLabels,
|
|
|
+ "labelChannels": labelChannels
|
|
|
+ }
|
|
|
+ ]
|
|
|
+
|
|
|
+ this.$refs.TVWall.showTVWall1(data.longitude, data.latitude, dianshiqiang);
|
|
|
+
|
|
|
},
|
|
|
}
|
|
|
}
|