From ca4c66b142ae17d4524826964ebcad5aa586c488 Mon Sep 17 00:00:00 2001 From: ZhangXianQiang <1135831638@qq.com> Date: 星期五, 26 四月 2024 15:52:01 +0800 Subject: [PATCH] style:修改详情样式 --- src/views/system/calculate/report/index.vue | 11 +++++------ 1 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/views/system/calculate/report/index.vue b/src/views/system/calculate/report/index.vue index c28f442..0875752 100644 --- a/src/views/system/calculate/report/index.vue +++ b/src/views/system/calculate/report/index.vue @@ -132,7 +132,7 @@ </el-table-column> <el-table-column label="鎵e噺閲戦(鍏�)" - prop="money" + prop="deductMoney" width="180"> <template slot-scope="scope"> <el-input type="number" @@ -338,6 +338,7 @@ sums[index] = '鍚堣'; return; } + const values = data.map(item => Number(item[column.property])); if (!values.every(value => isNaN(value))) { sums[index] = values.reduce((prev, curr) => { @@ -348,18 +349,16 @@ return prev; } }, 0); - sums[index] += ' 鍏�'; if (column.property === 'score') { - sums[index] = '-'; // 鎴栬�呭叾浠栦綘鎯宠鏄剧ず鐨勫唴瀹� + sums[index] = '-'; } - if (column.property === 'value') { - sums[index] = '-'; // 鎴栬�呭叾浠栦綘鎯宠鏄剧ず鐨勫唴瀹� + if (column.property === 'deductMoney') { + sums[index] += '鍏�'; } } else { sums[index] = '-'; } }); - return sums; }, toScorePage() { -- Gitblit v1.8.0