大屏内容调整,付款计划排序、界面

master
xy 1 year ago
parent d1b2f73815
commit 36830ece3b

@ -50,15 +50,15 @@ export default {
{
text: "土地资产",
num: 99966,
unit: "",
unit: "平方米",
tag: "land",
icon: "tudi"
},
{
text: "房屋资产",
text: "汇总数据",
num: 8888,
unit: "平方",
tag: "house",
unit: "",
tag: "static",
icon: "fangwu"
}
]
@ -78,9 +78,8 @@ export default {
case "land":
total += lands.reduce((a,b) => a + parseFloat(b.dengjimianji ?? 0),0)
return total.toFixed(2);
case "house":
total += houses.reduce((a,b) => a + parseFloat(b.dengjimianji ?? 0),0)
return total.toFixed(2);
case "static":
return `土地 ${lands.length}处,房产 ${houses.length}`;
default:
return total.toFixed(2);
}

@ -589,26 +589,26 @@ export default {
let tags = [
...row?.land?.map((i) =>
(
<Tag type="dot" color="#3fa45a" style="background: #e5f4ea !important;">{i.name}</Tag>
<Tag color="primary" style="background: #e5f4ea !important;">{i.name}</Tag>
)
),
...row?.houses?.map((i) =>
(
<Tag type="dot" color="#2254e4" style="background: #e8edfc !important">{i.name}</Tag>
<Tag color="success" style="background: #e8edfc !important">{i.name}</Tag>
)
),
]
return (
<div>
{
tags.slice(0, 2)
tags.slice(0, 1)
}
<el-popover>
<el-link slot="reference"
type="primary"
style={{
"word-break": "keep-all",
display: tags.length > 2 ? "inline" : "none",
display: tags.length > 1 ? "inline" : "none",
}}>更多</el-link>
<div slot="default">
{

Loading…
Cancel
Save