Commit 6dcb68cd by zhangxw

fix(venus-usedcar-quality): 价值趋势图样式修改

1 parent e6930ca7
Pipeline #200 for 6dcb68cd failed in 0 seconds
...@@ -417,7 +417,7 @@ function setData(data: any) { ...@@ -417,7 +417,7 @@ function setData(data: any) {
const value = formatValueText(first?.data); const value = formatValueText(first?.data);
return `<div style="line-height: 18px;"> return `<div style="line-height: 18px;">
<div style="font-weight: 600; margin-bottom: 2px;">${month}</div> <div style="font-weight: 600; margin-bottom: 2px;">${month}</div>
<div>本车预估价值: ${value}</div> <div>本车预估价值: ${value}万</div>
</div>`; </div>`;
}, },
}, },
...@@ -442,7 +442,7 @@ function setData(data: any) { ...@@ -442,7 +442,7 @@ function setData(data: any) {
formatter: (v: unknown) => { formatter: (v: unknown) => {
const n = Number(v); const n = Number(v);
if (!Number.isFinite(n)) return "-"; if (!Number.isFinite(n)) return "-";
return String(Math.round(n)); return n.toFixed(2);;
}, },
}, },
splitLine: { lineStyle: { color: "#f0f0f0" } } splitLine: { lineStyle: { color: "#f0f0f0" } }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!