Commit 280f6c5e by zhangxw

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

1 parent cce785e4
Pipeline #201 for 280f6c5e failed in 0 seconds
...@@ -5,11 +5,10 @@ import { buryingPoint } from "@/api/modules/vehicle-message"; ...@@ -5,11 +5,10 @@ import { buryingPoint } from "@/api/modules/vehicle-message";
import { formatDate } from "@/utils/index"; import { formatDate } from "@/utils/index";
export function getRouteLoginContext(routeQuery = {}) { export function getRouteLoginContext(routeQuery = {}) {
const loginAccount = routeQuery.loginAccount ?? routeQuery.loginAccout ?? routeQuery.operatorId ?? routeQuery.openId ?? ""; const loginAccount = "";
const uuid = routeQuery.uuid ?? routeQuery.userId ?? routeQuery.openId ?? routeQuery.operatorId ?? ""; const uuid = "";
const userType = routeQuery.userType ?? routeQuery.operatorType ?? routeQuery.source ?? ""; const userType = "";
return { return {
loginAccount,
loginAccout: loginAccount, loginAccout: loginAccount,
uuid, uuid,
userType, userType,
......
...@@ -5,12 +5,12 @@ ...@@ -5,12 +5,12 @@
<h1 class="main-title"> <h1 class="main-title">
车辆深度车况分析报告 车辆深度车况分析报告
</h1> </h1>
<div class="sub-title"> <div v-if="Object.keys(detailInfo).length > 0" class="sub-title">
{{ detailInfo.reportInfo && detailInfo.reportInfo.brandModel }} {{ detailInfo.reportInfo && detailInfo.reportInfo.brandModel }}
</div> </div>
</div> </div>
<div v-if="Object.keys(detailInfo).length > 0">
<div v-if="Object.keys(detailInfo).length > 0" class="report-content"> <div class="report-content">
<!-- Left Column --> <!-- Left Column -->
<div class="left-column"> <div class="left-column">
<!-- 收车指导价 --> <!-- 收车指导价 -->
...@@ -147,15 +147,10 @@ ...@@ -147,15 +147,10 @@
:structural-items="structuralItems" /> :structural-items="structuralItems" />
</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">
报告生成时间:{{ detailInfo.reportDate }} | AI车况分析系统 报告生成时间:{{ reportDate }} | AI车况分析系统
</div> </div>
<van-button v-if="!pageQuery.pushed" <van-button v-if="!pageQuery.pushed"
class="push-btn" class="push-btn"
...@@ -170,6 +165,12 @@ ...@@ -170,6 +165,12 @@
生成车况简报 生成车况简报
</van-button> </van-button>
</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" />
<van-popup v-model:show="pushConfirmVisible" <van-popup v-model:show="pushConfirmVisible"
class="push-confirm-popup" class="push-confirm-popup"
...@@ -221,7 +222,7 @@ const { setReportTrackData } = useReportTrackPage({ ...@@ -221,7 +222,7 @@ const { setReportTrackData } = useReportTrackPage({
}); });
const router = useRouter(); const router = useRouter();
const reportDate = ref("");
const route = useRoute(); const route = useRoute();
const isMini = computed(() => { const isMini = computed(() => {
return window.matchMedia("(max-width: 768px)").matches; return window.matchMedia("(max-width: 768px)").matches;
...@@ -262,8 +263,8 @@ function getDetail() { ...@@ -262,8 +263,8 @@ function getDetail() {
showToast(msg); showToast(msg);
return; return;
} }
const safeDateStr = data.reportInfo?.aiResultGeneratedTime ? data.reportInfo?.aiResultGeneratedTime?.replace(/-/g, "/") : ""; const safeDateStr = data?.reportInfo?.aiResultGeneratedTime ? data?.reportInfo?.aiResultGeneratedTime?.replace(/-/g, "/") : "";
data.reportDate = safeDateStr ? formatDate(new Date(safeDateStr), "YYYY/MM/DD") : "-"; reportDate.value = safeDateStr ? formatDate(new Date(safeDateStr), "YYYY/MM/DD") : "-";
detailInfo.value = data || {}; detailInfo.value = data || {};
}); });
} }
......
...@@ -114,20 +114,20 @@ ...@@ -114,20 +114,20 @@
: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">
报告生成时间:{{ detailInfo.reportDate }} | AI车况分析系统 报告生成时间:{{ reportDate }} | AI车况分析系统
</div> </div>
<van-button class="share-btn" @click="share"> <van-button class="share-btn" @click="share">
<img alt="" src="https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/share.png"> 转发 <img alt="" src="https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/share.png"> 转发
</van-button> </van-button>
</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" />
<van-popup v-model:show="shareGuideVisible" <van-popup v-model:show="shareGuideVisible"
class="share-popup" class="share-popup"
position="center" position="center"
...@@ -182,7 +182,7 @@ const shareGuideVisible = ref(false); ...@@ -182,7 +182,7 @@ const shareGuideVisible = ref(false);
const trendChartRef = ref<HTMLDivElement | null>(null); const trendChartRef = ref<HTMLDivElement | null>(null);
let trendChart: null | ReturnType<typeof echarts.init> = null; let trendChart: null | ReturnType<typeof echarts.init> = null;
const hasTrendData = ref(true); const hasTrendData = ref(true);
const reportDate = ref("");
const groupQrUrl = ref(""); const groupQrUrl = ref("");
const loadingGroupQr = ref(false); const loadingGroupQr = ref(false);
const detailInfo = ref<any>({ const detailInfo = ref<any>({
...@@ -461,7 +461,7 @@ function setData(data: any) { ...@@ -461,7 +461,7 @@ function setData(data: any) {
] ]
}); });
const safeDateStr = data.reportInfo?.aiResultGeneratedTime ? data.reportInfo?.aiResultGeneratedTime?.replace(/-/g, "/") : ""; const safeDateStr = data.reportInfo?.aiResultGeneratedTime ? data.reportInfo?.aiResultGeneratedTime?.replace(/-/g, "/") : "";
data.reportDate = safeDateStr ? formatDate(new Date(safeDateStr), "YYYY/MM/DD") : "-"; reportDate.value = 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!