This commit is contained in:
parent
aa6f9dc456
commit
f9aba751a8
|
@ -80,6 +80,12 @@ const props = defineProps({
|
|||
return "";
|
||||
},
|
||||
},
|
||||
sxtname: {
|
||||
type: String,
|
||||
default: () => {
|
||||
return "";
|
||||
},
|
||||
},
|
||||
});
|
||||
const emit = defineEmits(["close"]);
|
||||
|
||||
|
@ -106,6 +112,9 @@ watch(
|
|||
// if (hlsUriSslNow.value != "" && props.hlsUriSsl != hlsUriSslNow.value)
|
||||
cameraShow.value = newVal;
|
||||
hlsUriSslNow.value = props.hlsUriSsl;
|
||||
data.title = props.sxtname;
|
||||
console.log(hlsUriSslNow.value,props.sxtname,5555);
|
||||
|
||||
attachmentLink.value = hlsUriSslNow.value;
|
||||
dp.value = null;
|
||||
//当摄像头第二次打开时,要先创建dom
|
||||
|
@ -244,7 +253,7 @@ const closeDialog = () => {
|
|||
.name {
|
||||
font-family: PangMenZhengDao, PangMenZhengDao;
|
||||
font-weight: 600;
|
||||
font-size: 33px;
|
||||
font-size: 23px;
|
||||
color: #ffffff;
|
||||
line-height: 38px;
|
||||
text-align: center;
|
||||
|
|
|
@ -854,8 +854,8 @@ const openCamera = () => {
|
|||
};
|
||||
//获取摄像头地址
|
||||
const getCameraUrl = () => {
|
||||
camera.deviceCode = dataMyTag.camera.sbbm;
|
||||
// camera.deviceCode = "3KSCP274757F2JU";
|
||||
// camera.deviceCode = dataMyTag.camera.sbbm;
|
||||
camera.deviceCode = "3KSCP274757F2JU";
|
||||
http
|
||||
.get(`/api/ggfwyth/ysyzt/getPlayAddress?deviceCode=${camera.deviceCode}`)
|
||||
.then((res) => {
|
||||
|
@ -895,9 +895,9 @@ onMounted(() => {
|
|||
}
|
||||
onClickTag2("出生", "出生");
|
||||
getshs();
|
||||
if (dataMyTag.camera) {
|
||||
// if (dataMyTag.camera) {
|
||||
getCameraUrl();
|
||||
}
|
||||
// }
|
||||
} else {
|
||||
jump.value = "map";
|
||||
}
|
||||
|
|
|
@ -213,6 +213,7 @@
|
|||
<DialogCamera
|
||||
:cameraShow="sxtShow.show"
|
||||
:hlsUriSsl="sxtShow.hlsUriSsl"
|
||||
:sxtname="sxtShow.name"
|
||||
@close="close1"
|
||||
>
|
||||
</DialogCamera>
|
||||
|
@ -794,6 +795,7 @@ const sxtShow = reactive({
|
|||
show: false,
|
||||
deviceCode: "",
|
||||
hlsUriSsl: "",
|
||||
name: "",
|
||||
});
|
||||
const tableType = reactive({
|
||||
url: "",
|
||||
|
@ -2079,9 +2081,9 @@ const getZyys = (url, name, img, img_map) => {
|
|||
// item.center.push(Number(item.jd));
|
||||
// item.center.push(Number(item.wd));
|
||||
item.center = [Number(item.jd), Number(item.wd)];
|
||||
item.onClick = () => {
|
||||
handleItemClick(item, index, name);
|
||||
};
|
||||
// item.onClick = () => {
|
||||
// handleItemClick(item, index, name);
|
||||
// };
|
||||
});
|
||||
yaosuIcon.value[name].sj.forEach((itemm, indexx) => {
|
||||
createZyys(itemm, indexx, name);
|
||||
|
@ -2089,9 +2091,9 @@ const getZyys = (url, name, img, img_map) => {
|
|||
}
|
||||
});
|
||||
};
|
||||
const handleItemClick = (item, index, name) => {
|
||||
console.log("Item clicked:", item, index, name);
|
||||
};
|
||||
// const handleItemClick = (item, index, name) => {
|
||||
// console.log("Item clicked:", item, index, name);
|
||||
// };
|
||||
|
||||
// 添加资源要素的图标(overlay存放标记点)
|
||||
const createZyys = (polygon, indexx, name) => {
|
||||
|
@ -2124,9 +2126,26 @@ const createZyys = (polygon, indexx, name) => {
|
|||
);
|
||||
map.addOverlay(yaosuIcon.value[name].sj[indexx].overlay);
|
||||
yaosuIcon.value[name].sj[indexx].overlay.addEventListener("click", () => {
|
||||
|
||||
sxtShow.deviceCode = polygon.sbbm;
|
||||
sxtShow.name = polygon.sbmc;
|
||||
getCameraUrl();
|
||||
console.log(polygon);
|
||||
});
|
||||
};
|
||||
//获取摄像头地址
|
||||
const getCameraUrl = () => {
|
||||
// camera.deviceCode = dataMyTag.camera.sbbm;
|
||||
// sxtShow.deviceCode = "3KSCP274757F2JU";
|
||||
http
|
||||
.get(`/api/ggfwyth/ysyzt/getPlayAddress?deviceCode=${sxtShow.deviceCode}`)
|
||||
.then((res) => {
|
||||
if (res.code == 200) {
|
||||
sxtShow.hlsUriSsl = res.data.hlsUriSsl;
|
||||
sxtShow.show = true;
|
||||
}
|
||||
});
|
||||
};
|
||||
//----------资源要素------------
|
||||
//点击街道,回到街道
|
||||
const to_jd = async (item_name) => {
|
||||
|
|
|
@ -15,8 +15,8 @@ export default defineConfig({
|
|||
// 第一个代理
|
||||
"/api": {
|
||||
// 匹配到啥来进行方向代理
|
||||
target: "http://10.0.0.65:8095/", //刘进
|
||||
// target: "http://220.191.238.50:996/", //线上
|
||||
// target: "http://10.0.0.65:8095/", //刘进
|
||||
target: "http://220.191.238.50:996/", //线上
|
||||
changeOrigin: true, //是否支持跨域
|
||||
//rewrite: (path) => path.replace(/^\/api/, '') // 如果不需要api 直接把路径上的api 替换成空,这个
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue