From 8815e3da999f4cedeb41652fec4c678bea56d342 Mon Sep 17 00:00:00 2001 From: duanxiaohai <1812246227@qq.com> Date: Fri, 9 Aug 2024 11:00:32 +0800 Subject: [PATCH 1/2] gx --- src/view/person/index.vue | 284 ++++++++++++++++++++++++++++---------- 1 file changed, 210 insertions(+), 74 deletions(-) diff --git a/src/view/person/index.vue b/src/view/person/index.vue index 15e83e3..5b7ebd9 100644 --- a/src/view/person/index.vue +++ b/src/view/person/index.vue @@ -77,16 +77,17 @@
-
出生
-
学习
-
工作
-
婚育
-
置业
-
- 退休
养老 +
+ 退休
养老
+ {{ item.name }}
-
身后事
-
综合
@@ -94,63 +95,113 @@
-
-
养老金发放情况
+
+
+
养老金发放情况
+
+
+ + + + +
-
- - - - - - +
+
+
基本信息
+
+
+
+
姓  名
+
+

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

+
+
+
+
证件类型
+
+

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

+
+
+
+
证件号码
+
+

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

+ +
+
+
+
政治面貌
+
+

{{ baseInfo.zzmm || "" }}

+
+
+
+
居住状态
+
+

居住

+

未居住

+

+
+
+
+
民  族
+
+

{{ baseInfo.ethnic }}

+
+
+
+
性  别
+
+

{{ baseInfo.gender }}

+
+
+
+
户口登记地
+
+

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

+
+
+
-
+ +
{ @@ -556,10 +675,11 @@ const onClickTag = (item) => { dialogShow.value = true; }; //圆球弹框 -const onClickTag2 = (name) => { - tableType.title = name; - tableType.url = columnsList[name].url; - tableType.columns = columnsList[name].column; +const onClickTag2 = (val, index) => { + dataMyTag.myTagshow = val.name; + tableType.title = val.name; + tableType.url = columnsList[val.name].url; + tableType.columns = columnsList[val.name].column; getTable(tableType.url); dialogShow.value = true; }; @@ -569,6 +689,10 @@ const paginationDialog = reactive({ total: 50, showTotal: 0, }); +//判断右侧显示的为表格还是列表,0为列表,1为表格 +const rightType = ref(0); +//存放右侧单条数据 +const rightList = ref([]); //获取表格数据 const getTable = (url) => { http @@ -580,6 +704,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); } }); }; @@ -810,16 +945,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 { From 73cb3d57c68354542fcccc2ebe3ec6c418a24dca Mon Sep 17 00:00:00 2001 From: duanxiaohai <1812246227@qq.com> Date: Fri, 9 Aug 2024 11:20:56 +0800 Subject: [PATCH 2/2] gx --- src/view/person/index.vue | 30 ++++++++++++++---------------- 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/src/view/person/index.vue b/src/view/person/index.vue index 5b7ebd9..d8c4048 100644 --- a/src/view/person/index.vue +++ b/src/view/person/index.vue @@ -80,10 +80,8 @@
退休
养老
{{ item.name }} @@ -95,9 +93,9 @@
-
+
-
养老金发放情况
+
{{ tableType.title }}
-