From f64155f6ad27c50451bb7d4a15f553bc72ead7de Mon Sep 17 00:00:00 2001 From: WXL <wl_5969728@163.com> Date: 星期五, 12 九月 2025 14:35:26 +0800 Subject: [PATCH] 年龄计算相关 --- src/views/project/donateorganstatics/index.vue | 16 +++++++++++++++- 1 files changed, 15 insertions(+), 1 deletions(-) diff --git a/src/views/project/donateorganstatics/index.vue b/src/views/project/donateorganstatics/index.vue index a58a2e7..ca1fe68 100644 --- a/src/views/project/donateorganstatics/index.vue +++ b/src/views/project/donateorganstatics/index.vue @@ -456,7 +456,21 @@ </template> </el-table-column> <el-table-column label="鎬у埆" align="center" prop="sex" /> - <el-table-column label="骞撮緞" align="center" prop="age" /> + <el-table-column label="骞撮緞" align="center" prop="age" width="100"> + <template slot-scope="scope"> + {{ + `${ + scope.row.age && scope.row.age !== 0 + ? `${scope.row.age}${scope.row.ageunit}` + : "" + } ${ + scope.row.age2 && scope.row.age2 !== 0 + ? `${scope.row.age2}${scope.row.ageunit2}` + : "" + }`.trim() + }} + </template> + </el-table-column> <el-table-column label="鎹愮尞绫诲埆 鏍规嵁瀛楀吀sys_DonationCategory" align="center" -- Gitblit v1.9.3