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,
......
...@@ -114,20 +114,20 @@ ...@@ -114,20 +114,20 @@
:structural-items="structuralItems" /> :structural-items="structuralItems" />
</div> </div>
</div> </div>
<!-- Footer -->
<div class="report-footer">
<div class="footer-text">
报告生成时间:{{ reportDate }} | AI车况分析系统
</div>
<van-button class="share-btn" @click="share">
<img alt="" src="https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/share.png"> 转发
</van-button>
</div>
</div> </div>
<van-empty v-else <van-empty v-else
class="custom-empty" class="custom-empty"
description="暂无数据" description="暂无数据"
image="https://img02.glsx.com.cn/weapp/resource/miniprogram/store-assistant/empty_data.png" /> image="https://img02.glsx.com.cn/weapp/resource/miniprogram/store-assistant/empty_data.png" />
<!-- Footer -->
<div class="report-footer">
<div class="footer-text">
报告生成时间:{{ detailInfo.reportDate }} | AI车况分析系统
</div>
<van-button class="share-btn" @click="share">
<img alt="" src="https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/share.png"> 转发
</van-button>
</div>
<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!