This commit is contained in:
姚宇浩 2024-08-09 15:37:48 +08:00
commit 98a7d30764
1 changed files with 18 additions and 5 deletions

View File

@ -81,7 +81,7 @@
v-for="(item, index) in dataMyTag.myTag1" v-for="(item, index) in dataMyTag.myTag1"
class="main-tag-item" class="main-tag-item"
:class="item.name == tableType.title ? 'main-tag-item_active' : ''" :class="item.name == tableType.title ? 'main-tag-item_active' : ''"
@click="onClickTag2(item.name)" @click="onClickTag2(item.name, item.label)"
> >
<span v-if="item.name == '退休养老'"> 退休<br />养老</span> <span v-if="item.name == '退休养老'"> 退休<br />养老</span>
<span v-else>{{ item.name }}</span> <span v-else>{{ item.name }}</span>
@ -95,7 +95,7 @@
<div class="person-side"> <div class="person-side">
<div v-if="rightType == '1'"> <div v-if="rightType == '1'">
<div class="my-label"> <div class="my-label">
<div class="my-label-title">{{ pdT }}</div> <div class="my-label-title">{{ dataMyTag.title }}</div>
</div> </div>
<div class="my-table"> <div class="my-table">
<el-table <el-table
@ -126,6 +126,9 @@
<template #default="scope"> <template #default="scope">
<!-- 医疗保险类型 --> <!-- 医疗保险类型 -->
<div v-if="item.property == 'ylbxlx'"> <div v-if="item.property == 'ylbxlx'">
<div v-if="scope.row.ylbxlx == 0">
城乡居民基本医疗保险
</div>
<div v-if="scope.row.ylbxlx == 0"> <div v-if="scope.row.ylbxlx == 0">
城乡居民基本医疗保险 城乡居民基本医疗保险
</div> </div>
@ -160,7 +163,7 @@
</div> </div>
<div v-else> <div v-else>
<div class="my-label"> <div class="my-label">
<div class="my-label-title">{{ pdT }}</div> <div class="my-label-title">{{ dataMyTag.title }}</div>
</div> </div>
<div class="my-info"> <div class="my-info">
<div <div
@ -286,30 +289,39 @@ const dataMyTag = reactive({
show: 0, show: 0,
}, },
], ],
title: "出生",
myTag1: [ myTag1: [
{ {
name: "出生", name: "出生",
label: "出生",
}, },
{ {
name: "学习", name: "学习",
label: "学习",
}, },
{ {
name: "工作", name: "工作",
label: "工作",
}, },
{ {
name: "婚育", name: "婚育",
label: "婚育",
}, },
{ {
name: "置业", name: "置业",
label: "置业",
}, },
{ {
name: "退休养老", name: "退休养老",
label: "养老金发放情况",
}, },
{ {
name: "身后事", name: "身后事",
label: "身后事",
}, },
{ {
name: "综合", name: "综合",
label: "医疗金发放情况",
}, },
], ],
/** /**
@ -533,8 +545,9 @@ const onClickTag = (item) => {
dialogShow.value = true; dialogShow.value = true;
}; };
// //
const onClickTag2 = (name) => { const onClickTag2 = (name, label) => {
tableType.title = name; tableType.title = name;
dataMyTag.title = label;
tableType.url = columnsList[name].url; tableType.url = columnsList[name].url;
tableType.columns = columnsList[name].column; tableType.columns = columnsList[name].column;
getTable(tableType.url, true); getTable(tableType.url, true);
@ -616,7 +629,7 @@ watch(
(newValue, oldValue) => { (newValue, oldValue) => {
identNo.value = props.message.identNo; identNo.value = props.message.identNo;
getData(props.message.identNo); getData(props.message.identNo);
onClickTag2("出生"); onClickTag2("出生", "出生");
jump.value = "map"; jump.value = "map";
} }
); );