Compare commits

...

3 Commits

Author SHA1 Message Date
littleeewolf a1cfbd1dc7 11111 2024-08-25 15:30:36 +08:00
littleeewolf fa7b380e64 Merge branch 'main' of https://git.cityme.com.cn/xiangshan/ggfwjsc 2024-08-25 15:23:33 +08:00
littleeewolf 13462c2b66 1111 2024-08-25 15:23:01 +08:00
1 changed files with 16 additions and 10 deletions

View File

@ -346,6 +346,7 @@ import { useRouter, useRoute } from "vue-router";
import { VideoCamera } from "@element-plus/icons-vue";
import http from "@/utils/request.js";
import tools from "@/utils/tools";
import { ElMessage, ElMessageBox } from "element-plus";
const router = useRouter();
const routers = useRoute();
const identNo = ref("");
@ -833,6 +834,9 @@ const getData = (identNo) => {
}
});
});
if (dataMyTag.camera) {
getCameraUrl();
}
}
});
};
@ -850,8 +854,16 @@ const oneCardSolution = () => {
};
//
const openCamera = () => {
if (errorMessage.value) {
ElMessage.warning({
message: errorMessage.value,
});
}else{
camera.show = true;
}
};
const errorMessage = ref("");
//
const getCameraUrl = () => {
// camera.deviceCode = dataMyTag.camera.sbbm;
@ -862,9 +874,7 @@ const getCameraUrl = () => {
if (res.code == 200) {
camera.hlsUriSsl = res.data.hlsUriSsl;
} else {
ElMessage.warning({
message: res.message,
});
errorMessage.value = res.message;
}
});
};
@ -878,20 +888,19 @@ const back = () => {
watch(
() => props.message,
(newValue, oldValue) => {
errorMessage.value = "";
// identNo.value = props.message.identNo;
dataMyTag.identNo = props.message.identNo;
getData(props.message.identNo);
onClickTag2("出生", "出生");
jump.value = "map";
getshs();
if (dataMyTag.camera) {
getCameraUrl();
}
}
);
onMounted(() => {
tools.data.set("token", "6b0e380b4a8f46baae4923f83faf670d");
if (routers.query.type) {
errorMessage.value = "";
dataMyTag.identNo = routers.query.identNo;
jump.value = "detail";
if (routers.query.identNo !== undefined) {
@ -899,9 +908,6 @@ onMounted(() => {
}
onClickTag2("出生", "出生");
getshs();
if (dataMyTag.camera) {
getCameraUrl();
}
} else {
jump.value = "map";
}