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,
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 camera = reactive({
show: false,
@ -930,21 +942,22 @@ const getData = (identNo) => {
http
.get(`/api/ggfwyth/ysyzt/getRyJbxxDetails?identNo=${identNo}`)
.then((res) => {
if (res.code == 200) {
baseInfo.value = res.data.ryjbxx;
dataMyTag.camera = res.data.camera;
if (res.code === 200 && res.data) {
const { ryjbxx, camera, rybqxx } = res.data;
// ryjbxx camera
baseInfo.value = ryjbxx || {}; // ryjbxx
dataMyTag.camera = camera || {}; // camera
if (Array.isArray(dataMyTag.myTag)) {
dataMyTag.myTag.forEach((item) => {
item.show = 0;
res.data.rybqxx.forEach((itemm, indexx) => {
if (itemm.bq == item.name) {
item.show = 1;
}
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 = () => {
@ -1014,6 +1027,8 @@ watch(
errorMessage.value = "";
// identNo.value = props.message.identNo;
dataMyTag.identNo = props.message.identNo;
console.log("请求getData");
getData(props.message.identNo);
onClickTag2("出生", "出生");
jump.value = "map";