This commit is contained in:
littleeewolf 2024-08-10 22:31:21 +08:00
parent 2c3360aef4
commit 23a6f253d0
2 changed files with 33 additions and 39 deletions

View File

@ -166,6 +166,18 @@
<div class="my-label-title">{{ dataMyTag.title }}</div> <div class="my-label-title">{{ dataMyTag.title }}</div>
</div> </div>
<div class="my-info"> <div class="my-info">
<div class="my-info-item" v-if="dataMyTag.title == '学习'">
<div class="my-info-label">&emsp;&emsp;</div>
<div class="my-info-content">
<p>{{ baseInfo.eduPhase || "" }}</p>
</div>
</div>
<div class="my-info-item" v-if="dataMyTag.title == '婚育'">
<div class="my-info-label">婚姻状况</div>
<div class="my-info-content">
<p>{{ baseInfo.maritalStatus || "" }}</p>
</div>
</div>
<div <div
class="my-info-item" class="my-info-item"
v-for="(item, index) in tableType.columns" v-for="(item, index) in tableType.columns"
@ -506,17 +518,21 @@ const columnsList = reactive({
}, },
], ],
}, },
婚育: {
url: "",
column: [],
},
}); });
//title //title
const pdT = computed(() => { // const pdT = computed(() => {
if (tableType.title == "综合") { // if (tableType.title == "") {
return "医疗金发放情况"; // return "";
} else if (tableType.title == "退休养老") { // } else if (tableType.title == "退") {
return "养老金发放情况"; // return "";
} else { // } else {
return tableType.title; // return tableType.title;
} // }
}); // });
// //
const pd = computed(() => { const pd = computed(() => {
return (name, type) => { return (name, type) => {
@ -550,7 +566,12 @@ const onClickTag2 = (name, label) => {
dataMyTag.title = label; dataMyTag.title = label;
tableType.url = columnsList[name].url; tableType.url = columnsList[name].url;
tableType.columns = columnsList[name].column; tableType.columns = columnsList[name].column;
if(name=='婚育'){
}else{
getTable(tableType.url, true); getTable(tableType.url, true);
}
}; };
//01 //01
const rightType = ref(0); const rightType = ref(0);
@ -637,22 +658,8 @@ watch(
onMounted(() => { onMounted(() => {
tools.data.set("token", "6b0e380b4a8f46baae4923f83faf670d"); tools.data.set("token", "6b0e380b4a8f46baae4923f83faf670d");
if (routers.query.type) { if (routers.query.type) {
baseInfo.value.nm = routers.query.nm; getData(routers.query.identNo);
baseInfo.value.dz = routers.query.dz;
baseInfo.value.identNo = routers.query.identNo;
baseInfo.value.bq = routers.query.bq;
jump.value = "detail"; jump.value = "detail";
dataMyTag.myTag.forEach((item) => {
item.show = 0;
if(item.name=='特困'&& baseInfo.value.bq.includes('贫困')){
item.show = 1;
}
if(baseInfo.value.bq.includes(item.name)){
item.show = 1;
}
});
// getData("3");
// identNo.value = "3";
onClickTag2("出生"); onClickTag2("出生");
} else { } else {
jump.value = "map"; jump.value = "map";

View File

@ -601,26 +601,13 @@ const handleRowClick = (row, column, event) => {
console.log(row); console.log(row);
router.push({ router.push({
path: `/home/index/person`, path: `/home/index/person`,
query: { nm: row.xm, identNo: row.sfzhm, dz: row.dz,bq:row.bq, type: "detail" }, query: { identNo: row.sfzhm,type: "detail" },
});
};
const person_detail = () => {
http
.get(
`/api/ggfwyth/ysyzt/getRyJbxxList?page=1&size=10&town=溪口镇&tagId=1`
)
.then((res) => {
if (res.code == 200) {
// tableType.data = res.data;
// pagination.total = res.count;
}
}); });
}; };
onMounted(() => { onMounted(() => {
tools.data.set("token", "6b0e380b4a8f46baae4923f83faf670d"); tools.data.set("token", "6b0e380b4a8f46baae4923f83faf670d");
getTable("/api/ggfwyth/pg/lyxsdbrymd", pagination.currentPage); getTable("/api/ggfwyth/pg/lyxsdbrymd", pagination.currentPage);
handleCurrentChange(1); handleCurrentChange(1);
person_detail();
}); });
</script> </script>