From 549a5291747d92baaae5415948252f4b4baff7a7 Mon Sep 17 00:00:00 2001 From: xiaozhiyong Date: Wed, 22 Feb 2023 17:50:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/generalDetails/index.vue | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/components/generalDetails/index.vue b/src/components/generalDetails/index.vue index 8d8a9d2..b26a077 100644 --- a/src/components/generalDetails/index.vue +++ b/src/components/generalDetails/index.vue @@ -123,14 +123,15 @@ export default { iconClass: mappingDataItem.iconClass || "iconjichuziliao", isFold: mappingDataItem.isFold || true, listData: mappingDataItem.carItems.map((carItem) => { + let value = + (typeof carItem.value == "function" && + carItem.value(shineData)) || + shineData[carItem.value] == 0 + ? 0 + : shineData[carItem.value] || carItem.fieldDefault || ""; return { label: carItem.label, - value: - (typeof carItem.value == "function" && - carItem.value(shineData)) || - shineData[carItem.value] || - carItem.fieldDefault || - "暂无数据", + value: value, field: carItem.value, remark: carItem.remark, isCopy: carItem.isCopy || false,