Commit e6930ca7 by zhangxw

fix(venus-usedcar-quality): bug修复

1 parent 582159d8
...@@ -262,8 +262,8 @@ function getDetail() { ...@@ -262,8 +262,8 @@ function getDetail() {
showToast(msg); showToast(msg);
return; return;
} }
const safeDateStr = data.reportInfo?.aiResultGeneratedTime?.replace(/-/g, "/"); const safeDateStr = data.reportInfo?.aiResultGeneratedTime ? data.reportInfo?.aiResultGeneratedTime?.replace(/-/g, "/") : "";
data.reportDate = formatDate(new Date(safeDateStr), "YYYY/MM/DD"); data.reportDate = safeDateStr ? formatDate(new Date(safeDateStr), "YYYY/MM/DD") : "-";
detailInfo.value = data || {}; detailInfo.value = data || {};
}); });
} }
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
{{ detailInfo.reportInfo.brandModel || "-" }} {{ detailInfo.reportInfo.brandModel || "-" }}
</div> </div>
</div> </div>
<div v-if="Object.keys(detailInfo).length > 0">
<div class="report-content"> <div class="report-content">
<!-- Left Column --> <!-- Left Column -->
<div class="left-column"> <div class="left-column">
...@@ -114,7 +114,11 @@ ...@@ -114,7 +114,11 @@
:structural-items="structuralItems" /> :structural-items="structuralItems" />
</div> </div>
</div> </div>
</div>
<van-empty v-else
class="custom-empty"
description="暂无数据"
image="https://img02.glsx.com.cn/weapp/resource/miniprogram/store-assistant/empty_data.png" />
<!-- Footer --> <!-- Footer -->
<div class="report-footer"> <div class="report-footer">
<div class="footer-text"> <div class="footer-text">
...@@ -456,8 +460,8 @@ function setData(data: any) { ...@@ -456,8 +460,8 @@ function setData(data: any) {
} }
] ]
}); });
const safeDateStr = data.reportInfo?.aiResultGeneratedTime?.replace(/-/g, "/"); const safeDateStr = data.reportInfo?.aiResultGeneratedTime ? data.reportInfo?.aiResultGeneratedTime?.replace(/-/g, "/") : "";
data.reportDate = formatDate(new Date(safeDateStr), "YYYY/MM/DD"); data.reportDate = safeDateStr ? formatDate(new Date(safeDateStr), "YYYY/MM/DD") : "-";
detailInfo.value = data || {}; detailInfo.value = data || {};
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!