This commit is contained in:
duanxiaohai 2024-08-30 16:38:45 +08:00
parent 8e40adcdd3
commit 89f5ba486f
1 changed files with 29 additions and 14 deletions

View File

@ -562,7 +562,19 @@ const paginationDialog = reactive({
total: 50, total: 50,
showTotal: 0, showTotal: 0,
}); });
const baseInfo = ref({}); const baseInfo = ref({
nm: "",
xm: "",
zjlx: "",
age: "",
jzzt: "0",
ethnic: "",
gender: "",
domicAddr: "",
dz: "",
eduPhase: "",
maritalStatus: "",
});
const dialogShow = ref(false); const dialogShow = ref(false);
const camera = reactive({ const camera = reactive({
show: false, show: false,
@ -930,21 +942,22 @@ const getData = (identNo) => {
http http
.get(`/api/ggfwyth/ysyzt/getRyJbxxDetails?identNo=${identNo}`) .get(`/api/ggfwyth/ysyzt/getRyJbxxDetails?identNo=${identNo}`)
.then((res) => { .then((res) => {
if (res.code == 200) { if (res.code === 200 && res.data) {
baseInfo.value = res.data.ryjbxx; const { ryjbxx, camera, rybqxx } = res.data;
dataMyTag.camera = res.data.camera; // ryjbxx camera
dataMyTag.myTag.forEach((item) => { baseInfo.value = ryjbxx || {}; // ryjbxx
item.show = 0; dataMyTag.camera = camera || {}; // camera
res.data.rybqxx.forEach((itemm, indexx) => {
if (itemm.bq == item.name) { if (Array.isArray(dataMyTag.myTag)) {
item.show = 1; dataMyTag.myTag.forEach((item) => {
} item.show =
rybqxx && rybqxx.some((itemm) => itemm.bq === item.name) ? 1 : 0;
}); });
}); }
// if (dataMyTag.camera) {
// getCameraUrl();
// }
} }
})
.catch((error) => {
console.error("Error fetching data:", error);
}); });
}; };
const oneCardSolution = () => { const oneCardSolution = () => {
@ -1014,6 +1027,8 @@ watch(
errorMessage.value = ""; errorMessage.value = "";
// identNo.value = props.message.identNo; // identNo.value = props.message.identNo;
dataMyTag.identNo = props.message.identNo; dataMyTag.identNo = props.message.identNo;
console.log("请求getData");
getData(props.message.identNo); getData(props.message.identNo);
onClickTag2("出生", "出生"); onClickTag2("出生", "出生");
jump.value = "map"; jump.value = "map";