11111
This commit is contained in:
parent
fa7b380e64
commit
a1cfbd1dc7
|
@ -346,6 +346,7 @@ import { useRouter, useRoute } from "vue-router";
|
||||||
import { VideoCamera } from "@element-plus/icons-vue";
|
import { VideoCamera } from "@element-plus/icons-vue";
|
||||||
import http from "@/utils/request.js";
|
import http from "@/utils/request.js";
|
||||||
import tools from "@/utils/tools";
|
import tools from "@/utils/tools";
|
||||||
|
import { ElMessage, ElMessageBox } from "element-plus";
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const routers = useRoute();
|
const routers = useRoute();
|
||||||
const identNo = ref("");
|
const identNo = ref("");
|
||||||
|
@ -818,7 +819,7 @@ const handlePaginationDialog = (currentPage) => {
|
||||||
// dialogShow.value = false;
|
// dialogShow.value = false;
|
||||||
};
|
};
|
||||||
//地图过来接口
|
//地图过来接口
|
||||||
const getData = (identNo) => {
|
const getData = (identNo) => {
|
||||||
http
|
http
|
||||||
.get(`/api/ggfwyth/ysyzt/getRyJbxxDetails?identNo=${identNo}`)
|
.get(`/api/ggfwyth/ysyzt/getRyJbxxDetails?identNo=${identNo}`)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
|
@ -853,8 +854,16 @@ const oneCardSolution = () => {
|
||||||
};
|
};
|
||||||
// 打开摄像头
|
// 打开摄像头
|
||||||
const openCamera = () => {
|
const openCamera = () => {
|
||||||
camera.show = true;
|
if (errorMessage.value) {
|
||||||
|
ElMessage.warning({
|
||||||
|
message: errorMessage.value,
|
||||||
|
});
|
||||||
|
}else{
|
||||||
|
camera.show = true;
|
||||||
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
const errorMessage = ref("");
|
||||||
//获取摄像头地址
|
//获取摄像头地址
|
||||||
const getCameraUrl = () => {
|
const getCameraUrl = () => {
|
||||||
// camera.deviceCode = dataMyTag.camera.sbbm;
|
// camera.deviceCode = dataMyTag.camera.sbbm;
|
||||||
|
@ -865,9 +874,7 @@ const getCameraUrl = () => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
camera.hlsUriSsl = res.data.hlsUriSsl;
|
camera.hlsUriSsl = res.data.hlsUriSsl;
|
||||||
} else {
|
} else {
|
||||||
ElMessage.warning({
|
errorMessage.value = res.message;
|
||||||
message: res.message,
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
@ -881,6 +888,7 @@ const back = () => {
|
||||||
watch(
|
watch(
|
||||||
() => props.message,
|
() => props.message,
|
||||||
(newValue, oldValue) => {
|
(newValue, oldValue) => {
|
||||||
|
errorMessage.value = "";
|
||||||
// identNo.value = props.message.identNo;
|
// identNo.value = props.message.identNo;
|
||||||
dataMyTag.identNo = props.message.identNo;
|
dataMyTag.identNo = props.message.identNo;
|
||||||
getData(props.message.identNo);
|
getData(props.message.identNo);
|
||||||
|
@ -892,6 +900,7 @@ watch(
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
tools.data.set("token", "6b0e380b4a8f46baae4923f83faf670d");
|
tools.data.set("token", "6b0e380b4a8f46baae4923f83faf670d");
|
||||||
if (routers.query.type) {
|
if (routers.query.type) {
|
||||||
|
errorMessage.value = "";
|
||||||
dataMyTag.identNo = routers.query.identNo;
|
dataMyTag.identNo = routers.query.identNo;
|
||||||
jump.value = "detail";
|
jump.value = "detail";
|
||||||
if (routers.query.identNo !== undefined) {
|
if (routers.query.identNo !== undefined) {
|
||||||
|
|
Loading…
Reference in New Issue