视频修改为点击后再获取播放地址
This commit is contained in:
parent
8aa28da81f
commit
d947d70287
@ -337,6 +337,10 @@ const rollerVal = ref({
|
|||||||
leftRollerVal: "",
|
leftRollerVal: "",
|
||||||
rightRollerVal: ""
|
rightRollerVal: ""
|
||||||
});
|
});
|
||||||
|
import { Global3DStore } from "@/stores";
|
||||||
|
const store = Global3DStore();
|
||||||
|
|
||||||
|
const BASEURL = import.meta.env.VITE_API_URL;
|
||||||
|
|
||||||
// const showPerson = ref(false);
|
// const showPerson = ref(false);
|
||||||
const personId = ref<any>(null); // 保存人员定位id
|
const personId = ref<any>(null); // 保存人员定位id
|
||||||
@ -519,6 +523,7 @@ onMounted(async () => {
|
|||||||
url: item.url,
|
url: item.url,
|
||||||
scale: item.scale,
|
scale: item.scale,
|
||||||
clampToGround: item.clampToGround,
|
clampToGround: item.clampToGround,
|
||||||
|
heading: item.heading,
|
||||||
label: {
|
label: {
|
||||||
text: item.name,
|
text: item.name,
|
||||||
visibleDepth: false,
|
visibleDepth: false,
|
||||||
@ -628,16 +633,24 @@ const getEquipmentList = async (id: any) => {
|
|||||||
});
|
});
|
||||||
graphicLayer.addGraphic(graphicImg);
|
graphicLayer.addGraphic(graphicImg);
|
||||||
videoGraphics.value.push(graphicImg);
|
videoGraphics.value.push(graphicImg);
|
||||||
let urlData: any = "";
|
// let urlData: any = "";
|
||||||
if (item.code) {
|
if (item.code) {
|
||||||
urlData = await equipmentUrlGet({ monitorId: item.monitorId });
|
// urlData = await equipmentUrlGet({ monitorId: item.monitorId });
|
||||||
|
const data = {
|
||||||
|
url: BASEURL + '/base/monitorDev/queryInfo',
|
||||||
|
params: { monitorId: item.monitorId },
|
||||||
|
headers: {
|
||||||
|
Authorization: "Bearer " + store.token,
|
||||||
|
"Content-Type": "application/json"
|
||||||
|
}
|
||||||
|
};
|
||||||
graphicImg.bindPopup(
|
graphicImg.bindPopup(
|
||||||
(event: any) => {
|
(event: any) => {
|
||||||
const attr = event.graphic.attr || {};
|
const attr = event.graphic.attr || {};
|
||||||
if (!attr) {
|
if (!attr) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const dom = initVue3Popup(resStyle?.codeValue, { data: urlData || {} });
|
const dom = initVue3Popup(resStyle?.codeValue, { data });
|
||||||
// return mars3d.Util.getTemplateHtml({ title: "矢量图层", template: dom, attr: attr });
|
// return mars3d.Util.getTemplateHtml({ title: "矢量图层", template: dom, attr: attr });
|
||||||
console.log(dom);
|
console.log(dom);
|
||||||
return dom;
|
return dom;
|
||||||
|
|||||||
@ -350,6 +350,10 @@ import { getDicList } from "@/api/modules/jxjview";
|
|||||||
import * as Vue from "vue";
|
import * as Vue from "vue";
|
||||||
import { loadModule } from "vue3-sfc-loader";
|
import { loadModule } from "vue3-sfc-loader";
|
||||||
import { url } from "inspector";
|
import { url } from "inspector";
|
||||||
|
import { Global3DStore } from "@/stores";
|
||||||
|
const store = Global3DStore();
|
||||||
|
|
||||||
|
const BASEURL = import.meta.env.VITE_API_URL;
|
||||||
const modelLineList = ref([]);
|
const modelLineList = ref([]);
|
||||||
const equipTypeDictLabel = ref();
|
const equipTypeDictLabel = ref();
|
||||||
const equipTypeList = ref([]);
|
const equipTypeList = ref([]);
|
||||||
@ -537,6 +541,7 @@ onMounted(async () => {
|
|||||||
// heading: 270,
|
// heading: 270,
|
||||||
scale: item.scale,
|
scale: item.scale,
|
||||||
clampToGround: item.clampToGround,
|
clampToGround: item.clampToGround,
|
||||||
|
heading: item.heading,
|
||||||
label: {
|
label: {
|
||||||
text: item.name,
|
text: item.name,
|
||||||
visibleDepth: false,
|
visibleDepth: false,
|
||||||
@ -681,17 +686,24 @@ const getEquipmentList = async (id: any) => {
|
|||||||
});
|
});
|
||||||
graphicLayer.addGraphic(graphicImg);
|
graphicLayer.addGraphic(graphicImg);
|
||||||
videoGraphics.value.push(graphicImg);
|
videoGraphics.value.push(graphicImg);
|
||||||
let urlData: any = "";
|
// let urlData: any = "";
|
||||||
console.log(22222, item.url);
|
|
||||||
if (item.code) {
|
if (item.code) {
|
||||||
urlData = await equipmentUrlGet({ monitorId: item.monitorId });
|
// urlData = await equipmentUrlGet({ monitorId: item.monitorId });
|
||||||
|
const data = {
|
||||||
|
url: BASEURL + '/base/monitorDev/queryInfo',
|
||||||
|
params: { monitorId: item.monitorId },
|
||||||
|
headers: {
|
||||||
|
Authorization: "Bearer " + store.token,
|
||||||
|
"Content-Type": "application/json"
|
||||||
|
}
|
||||||
|
};
|
||||||
graphicImg.bindPopup(
|
graphicImg.bindPopup(
|
||||||
(event: any) => {
|
(event: any) => {
|
||||||
const attr = event.graphic.attr || {};
|
const attr = event.graphic.attr || {};
|
||||||
if (!attr) {
|
if (!attr) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const dom = initVue3Popup(resStyle?.codeValue, { data: urlData || {} });
|
const dom = initVue3Popup(resStyle?.codeValue, { data });
|
||||||
// return mars3d.Util.getTemplateHtml({ title: "矢量图层", template: dom, attr: attr });
|
// return mars3d.Util.getTemplateHtml({ title: "矢量图层", template: dom, attr: attr });
|
||||||
console.log(dom);
|
console.log(dom);
|
||||||
return dom;
|
return dom;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user