Commit 495457dc authored by songrui's avatar songrui

tab修改

parent 197395d2
...@@ -52,7 +52,7 @@ export default { ...@@ -52,7 +52,7 @@ export default {
if (!token) { if (!token) {
token = sessionStorage.getItem('token') token = sessionStorage.getItem('token')
if (process.env.NODE_ENV !== 'production') { if (process.env.NODE_ENV !== 'production') {
token = '42339af6-efab-400d-bda6-2f6f61535d1c' token = '6ebc3364-2296-4d3d-bd30-51102bcff396'
} }
} }
if (token) { if (token) {
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
<div class='mt-10 white-back p-16' v-for='item in activeData' :key="item.id"> <div class='mt-10 white-back p-16' v-for='item in activeData' :key="item.id">
<div class='flex items-center'> <div class='flex items-center'>
<div class='base-title'>{{ item.residentName }}</div> <div class='base-title'>{{ item.residentName }}</div>
<div class='second-title plr-8'>{{ item.age }}岁</div> <div class='second-title plr-8'>{{ getInfoByIdCard(item.idCard).age }}岁</div>
<div class='second-title plr-6'>{{ item.genderName }}</div> <div class='second-title plr-6'>{{ item.genderName }}</div>
</div> </div>
<div class='mt-3 flex items-center'> <div class='mt-3 flex items-center'>
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
import dayjs from 'dayjs' import dayjs from 'dayjs'
import { getVisitAll } from '@/api/doctor/generalFU.js' import { getVisitAll } from '@/api/doctor/generalFU.js'
import ChronicTag from '@/doctor/components/chronicTag/ChronicTag.vue' import ChronicTag from '@/doctor/components/chronicTag/ChronicTag.vue'
import { backHome } from '@/utils/common' import { backHome, getInfoByIdCard } from '@/utils/common'
export default { export default {
name: 'List', name: 'List',
...@@ -125,6 +125,7 @@ export default { ...@@ -125,6 +125,7 @@ export default {
}) })
}, },
methods: { methods: {
getInfoByIdCard,
init() { init() {
this.load() this.load()
}, },
......
<template> <template>
<div class="h-full flex flex-col visit"> <div class="h-full flex flex-col visit">
<van-tabs v-model:active='activeTab' class="shrink-0" v-if="tabList.length" <van-tabs v-model:active='activeTab' class="shrink-0" v-if="tabList.length"
@change="tabChange"> @change="tabChange"
shrink>
<van-tab v-for='item in tabList' :key="item.name" <van-tab v-for='item in tabList' :key="item.name"
:title='item.title' :name='item.name'></van-tab> :title='item.title' :name='item.name'></van-tab>
</van-tabs> </van-tabs>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment