|
@@ -485,6 +485,7 @@
|
|
|
import chart from "./from/dvCapsuleChart.vue";
|
|
|
import {
|
|
|
getResource,
|
|
|
+ getResourceDetail,
|
|
|
fireControlViewList,
|
|
|
fireControlViewPoint,
|
|
|
getResourcePoint
|
|
@@ -1387,42 +1388,68 @@
|
|
|
},
|
|
|
];
|
|
|
const labelChannels = [];
|
|
|
- for (let i in data.cameraList) {
|
|
|
- treeLabels.push({
|
|
|
- id: null,
|
|
|
- labelCode: data.cameraList[i].cameraCode,
|
|
|
- labelName: data.cameraList[i].cameraName,
|
|
|
- cameraType:data.cameraList[i].cameraType,
|
|
|
- parentLabelCode: "999",
|
|
|
- });
|
|
|
- labelChannels.push({
|
|
|
- labelCode: data.cameraList[i].cameraCode,
|
|
|
- channelDates: [
|
|
|
+ const id = data.id;
|
|
|
+ const type = data.indexName;
|
|
|
+ // alert(type+"="+id)
|
|
|
+ // alert(data.indexName)
|
|
|
+ // getResourceDetail("centerdata_t_resources_illegal_construction", id).then(res => {
|
|
|
+ getResourceDetail(type, id).then(res => {
|
|
|
+ console.log("getResourceDetail=", res)
|
|
|
+ // for (let i in data.cameraList) {
|
|
|
+ data.cameraList = res.data.cameras;
|
|
|
+ for (let i in data.cameraList) {
|
|
|
+ treeLabels.push({
|
|
|
+ id: null,
|
|
|
+ labelCode: data.cameraList[i].cameraCode,
|
|
|
+ labelName: data.cameraList[i].cameraName,
|
|
|
+ cameraType: data.cameraList[i].cameraType,
|
|
|
+ parentLabelCode: "999",
|
|
|
+ });
|
|
|
+ labelChannels.push({
|
|
|
+ labelCode: data.cameraList[i].cameraCode,
|
|
|
+ channelDates: [
|
|
|
+ {
|
|
|
+ channelCode: data.cameraList[i].cameraCode,
|
|
|
+ channelName: data.cameraList[i].cameraName,
|
|
|
+ channelSn: null,
|
|
|
+ cameraType: data.cameraList[i].cameraType,
|
|
|
+ online: "1",
|
|
|
+ cameraCode: "1",
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ });
|
|
|
+ }
|
|
|
+ const dianshiqiang = [
|
|
|
+ {
|
|
|
+ switchTab: "2",
|
|
|
+ treeLabels: treeLabels,
|
|
|
+ labelChannels: labelChannels,
|
|
|
+ },
|
|
|
+ ];
|
|
|
+ if (data.cameraList.length > 0) {
|
|
|
+ // this.$refs.TVWall.showTVWall1(
|
|
|
+ // data.longitude,
|
|
|
+ // data.latitude,
|
|
|
+ // dianshiqiang
|
|
|
+ // );
|
|
|
+ // }
|
|
|
+ this.$refs.TVWalls.showTVWall(
|
|
|
+ dianshiqiang,
|
|
|
{
|
|
|
- channelCode: data.cameraList[i].cameraCode,
|
|
|
- channelName: data.cameraList[i].cameraName,
|
|
|
- channelSn: null,
|
|
|
- cameraType:data.cameraList[i].cameraType,
|
|
|
- online: "1",
|
|
|
- cameraCode: "1",
|
|
|
+ longitude: data.longitude,
|
|
|
+ latitude: data.latitude,
|
|
|
},
|
|
|
- ],
|
|
|
- });
|
|
|
- }
|
|
|
- const dianshiqiang = [
|
|
|
- {
|
|
|
- switchTab: "2",
|
|
|
- treeLabels: treeLabels,
|
|
|
- labelChannels: labelChannels,
|
|
|
- },
|
|
|
- ];
|
|
|
- if (data.cameraList.length > 0) {
|
|
|
- this.$refs.TVWall.showTVWall1(
|
|
|
- data.longitude,
|
|
|
- data.latitude,
|
|
|
- dianshiqiang
|
|
|
- );
|
|
|
- }
|
|
|
+ {
|
|
|
+ "修改人": "MC",
|
|
|
+ "修改人": "MC",
|
|
|
+ "修改人": "MC",
|
|
|
+ "修改人": "MC",
|
|
|
+ "修改人": "MC"
|
|
|
+ },
|
|
|
+ res.data.detail // item
|
|
|
+ );
|
|
|
+ }
|
|
|
+ });
|
|
|
},
|
|
|
|
|
|
getBaseInfo() {
|