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

master
xy 1 year ago
parent d1b2f73815
commit 36830ece3b

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

@ -589,26 +589,26 @@ export default {
let tags = [ let tags = [
...row?.land?.map((i) => ...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) => ...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 ( return (
<div> <div>
{ {
tags.slice(0, 2) tags.slice(0, 1)
} }
<el-popover> <el-popover>
<el-link slot="reference" <el-link slot="reference"
type="primary" type="primary"
style={{ style={{
"word-break": "keep-all", "word-break": "keep-all",
display: tags.length > 2 ? "inline" : "none", display: tags.length > 1 ? "inline" : "none",
}}>更多</el-link> }}>更多</el-link>
<div slot="default"> <div slot="default">
{ {

Loading…
Cancel
Save