This commit is contained in:
duanxiaohai 2024-10-17 11:43:33 +08:00
parent c35841041e
commit cc8655d11c
5 changed files with 45 additions and 16 deletions

View File

@ -92,13 +92,10 @@ const emit = defineEmits(["close"]);
const cameraShow = ref();
const data = reactive({
title: "摄像头",
// columns: [],
// tableData: [],
});
// const gridData = [];
const dp = ref(null);
const num = ref(false);
const hlsUriSslNow = ref("");
const dp = ref(null);
const attachmentLink = ref("");
const options = {
@ -124,6 +121,11 @@ watch(
}
}
);
const maskName = (name) => {
// '*'
return name[0] + "*".repeat(name.length - 2) + name[name.length - 1];
};
const initializeVideo = () => {
if (hlsUriSslNow.value === "") {
num.value = false;
@ -132,7 +134,7 @@ const initializeVideo = () => {
}
cameraShow.value = props.cameraShow;
hlsUriSslNow.value = props.hlsUriSsl;
data.title = props.sxtnames;
data.title = maskName(props.sxtnames);
attachmentLink.value = hlsUriSslNow.value;
if (num.value) {
@ -175,7 +177,6 @@ const insertVideo = () => {
// console.log(":", videoElement);
};
const loadVideo = () => {
if (dp.value) {
// console.log("video.js");

View File

@ -102,6 +102,10 @@ const data = reactive({
const num = ref(false);
const hlsUriSslNow = ref("");
const gridData = [];
const maskName = (name) => {
// '*'
return name[0] + "*".repeat(name.length - 2) + name[name.length - 1];
};
//
watch(
() => props.cameraShow,
@ -115,7 +119,7 @@ watch(
// if (hlsUriSslNow.value != "" && props.hlsUriSsl != hlsUriSslNow.value)
cameraShow.value = newVal;
hlsUriSslNow.value = props.hlsUriSsl;
data.title = props.sxtname;
data.title = maskName(props.sxtname);
attachmentLink.value = hlsUriSslNow.value;
dp.value = null;
@ -132,6 +136,7 @@ watch(
}
}
);
const insertVideo = () => {
const videoElement = document.createElement("video");
videoElement.id = "videoPlayer";

View File

@ -193,7 +193,7 @@ const handleRowClick = (row, column, event) => {
const clicked = ref(false);
const lampBox = ref(null);
const escalation = () => {
if (data.xq.deng !== 0) {
if (data.xq.deng != 0) {
clicked.value = true;
}
console.log(clicked.value);
@ -267,11 +267,25 @@ watch(
data.title = props.tableData.title;
data.columns = props.tableData.columns;
data.tableData.length = 0;
function maskName(name) {
if (name.length === 2) {
// *
return name[0] + "*";
} else if (name.length > 2) {
//
return name[0] + "*".repeat(name.length - 2) + name[name.length - 1];
}
return name;
}
if (props.tableData.data.wxs.length > 0) {
props.tableData.data.wxs.forEach((item, index) => {
let obj = {
deng: 2,
bzlx: item.bzlx,
qtbm: item.qtbm,
zrks: item.zrks,
ywfzr: maskName(item.ywfzr),
fgldsj: item.fgldsj.replace(/^(\d{3})\d{4}(\d{4})$/, "$1****$2"),
};
data.tableData.push(obj);
});
@ -283,8 +297,10 @@ watch(
deng: 1,
bzlx: item.bzlx,
qtbm: item.qtbm,
ywfzrsj: item.ywfzrsj,
ywfzrzzd: item.ywfzrzzd,
zrks: item.zrks,
ywfzr: maskName(item.ywfzr),
// fgldsj: item.fgldsj,
fgldsj: item.fgldsj.replace(/^(\d{3})\d{4}(\d{4})$/, "$1****$2"),
};
data.tableData.push(obj);
});

View File

@ -463,13 +463,13 @@ const tableType = reactive({
property: "qtbm",
}, {
label: "业务科室",
property: "ywfzrzzd",
property: "zrks",
}, {
label: "负责人",
property: "ywfzrzzd",
property: "ywfzr",
}, {
label: "联系电话",
property: "ywfzrsj",
property: "fgldsj",
},
{

View File

@ -341,10 +341,14 @@ const data = reactive({
son: [
{
id: "0",
name: "公租房服务",
name: "概况",
},
{
id: "1",
name: "公租房服务",
},
{
id: "2",
name: "住房改造服务",
},
],
@ -550,7 +554,8 @@ const tapshow = (parentId, childId) => {
parentId.name == "弱有所扶" ||
parentId.name == "学有所教" ||
parentId.name == "老有所养" ||
parentId.name == "病有所医")
parentId.name == "病有所医"||
parentId.name == "住有所居")
) {
gaikuang(parentId.name);
} else {
@ -613,6 +618,8 @@ const gaikuang = (name) => {
gaikuangList.yl = true;
} else if (name == "病有所医") {
gaikuangList.hygiene = true;
} else if (name == "住有所居") {
gaikuangList.infant = true;
}
};
//