pull/1/head
xiaozhiyong 2 years ago
parent dcffab1d2a
commit 549a529174
  1. 13
      src/components/generalDetails/index.vue

@ -123,14 +123,15 @@ export default {
iconClass: mappingDataItem.iconClass || "iconjichuziliao", iconClass: mappingDataItem.iconClass || "iconjichuziliao",
isFold: mappingDataItem.isFold || true, isFold: mappingDataItem.isFold || true,
listData: mappingDataItem.carItems.map((carItem) => { 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 { return {
label: carItem.label, label: carItem.label,
value: value: value,
(typeof carItem.value == "function" &&
carItem.value(shineData)) ||
shineData[carItem.value] ||
carItem.fieldDefault ||
"暂无数据",
field: carItem.value, field: carItem.value,
remark: carItem.remark, remark: carItem.remark,
isCopy: carItem.isCopy || false, isCopy: carItem.isCopy || false,

Loading…
Cancel
Save