diff --git a/src/view/person/index.vue b/src/view/person/index.vue index 15e83e3..d8c4048 100644 --- a/src/view/person/index.vue +++ b/src/view/person/index.vue @@ -77,16 +77,15 @@
-
出生
-
学习
-
工作
-
婚育
-
置业
-
- 退休
养老 +
+ 退休
养老
+ {{ item.name }}
-
身后事
-
综合
@@ -94,63 +93,114 @@
-
-
养老金发放情况
+
+
+
{{ tableType.title }}
+
+
+ + + + +
-
- - - - - - +
+
+
基本信息
+
+
+
+
姓  名
+
+

{{ baseInfo.nm || baseInfo.xm }}

+
+
+
+
证件类型
+
+

{{ baseInfo.zjlx || "身份证" }}

+
+
+
+
证件号码
+
+

******************

+ +
+
+
+
政治面貌
+
+

{{ baseInfo.zzmm || "" }}

+
+
+
+
居住状态
+
+

居住

+

未居住

+

+
+
+
+
民  族
+
+

{{ baseInfo.ethnic }}

+
+
+
+
性  别
+
+

{{ baseInfo.gender }}

+
+
+
+
户口登记地
+
+

{{ baseInfo.domicAddr || baseInfo.dz }}

+
+
+
-
+ +
{ @@ -561,7 +678,6 @@ const onClickTag2 = (name) => { tableType.url = columnsList[name].url; tableType.columns = columnsList[name].column; getTable(tableType.url); - dialogShow.value = true; }; const paginationDialog = reactive({ current: 1, @@ -569,6 +685,10 @@ const paginationDialog = reactive({ total: 50, showTotal: 0, }); +//判断右侧显示的为表格还是列表,0为列表,1为表格 +const rightType = ref(0); +//存放右侧单条数据 +const rightList = ref([]); //获取表格数据 const getTable = (url) => { http @@ -580,6 +700,17 @@ const getTable = (url) => { .then((res) => { if (res.code == 200) { tableType.data = res.data; + if (tableType.data?.length > 1) { + rightType.value = 1; + } else { + if (tableType.data == null) { + rightList.value = []; + } else { + rightList.value = tableType.data[0]; + } + rightType.value = 0; + } + console.log(rightType.value); } }); }; @@ -680,6 +811,7 @@ watch( identNo.value = props.message.identNo; getData(props.message.identNo); getYlj(); + onClickTag2("出生"); jump.value = "map"; } ); @@ -692,6 +824,7 @@ onMounted(() => { // getData("3"); // identNo.value="3" getYlj(); + onClickTag2("出生"); } else { jump.value = "map"; } @@ -810,16 +943,17 @@ onMounted(() => { right: 110px; } - &:hover { - background: url("../../assets/person/tag-active.png") no-repeat; - background-size: 100% 100%; - color: #00fffc; - } + // &:hover { + // background: url("../../assets/person/tag-active.png") no-repeat; + // background-size: 100% 100%; + // color: #00fffc; + // } } .main-tag-item_active { background: url("../../assets/person/tag-active.png") no-repeat; - background-size: cover; + background-size: 100% 100%; + color: #00fffc; } .person-main-person {