|
|
|
@ -666,12 +666,12 @@ export default {
|
|
|
|
this.table.unshift( {
|
|
|
|
this.table.unshift( {
|
|
|
|
label: "资产",
|
|
|
|
label: "资产",
|
|
|
|
prop: 'assets',
|
|
|
|
prop: 'assets',
|
|
|
|
width: 300,
|
|
|
|
width: 320,
|
|
|
|
align: 'left',
|
|
|
|
align: 'left',
|
|
|
|
customFn: row => {
|
|
|
|
customFn: row => {
|
|
|
|
let tags = row.id_leases_to_assets_lease_id_relation?.slice(0,1)?.map(i => {
|
|
|
|
let tags = row.id_leases_to_assets_lease_id_relation?.slice(0,1)?.map(i => {
|
|
|
|
let asset = i.house_id ? row.houses.find(j => j.id === i.house_id) : row.land.find(j => j.id === i.land_id)
|
|
|
|
let asset = i.house_id ? row.houses.find(j => j.id === i.house_id) : row.land.find(j => j.id === i.land_id)
|
|
|
|
return (<Tag color="success" style="background: rgb(65, 100, 227) !important;">{(i.land_id ? '【土地】' : '【房产】')+(asset?.name || i.name || " ")}</Tag>)
|
|
|
|
return (<Tag color="success" style="background: rgb(65, 100, 227) !important;">{(i.land_id ? '【土地】' : '【房产】')+(asset?.name || i.name || " ")}-{ i.xiangxiweizhi }</Tag>)
|
|
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
})
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
@ -679,10 +679,12 @@ export default {
|
|
|
|
{
|
|
|
|
{
|
|
|
|
tags.slice(0, 1)
|
|
|
|
tags.slice(0, 1)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
<br></br>
|
|
|
|
<el-popover title="资产" width={600}>
|
|
|
|
<el-popover title="资产" width={600}>
|
|
|
|
<el-link slot="reference"
|
|
|
|
<el-link slot="reference"
|
|
|
|
type="primary"
|
|
|
|
type="primary"
|
|
|
|
style={{
|
|
|
|
style={{
|
|
|
|
|
|
|
|
"font-size": "13px",
|
|
|
|
"word-break": "keep-all",
|
|
|
|
"word-break": "keep-all",
|
|
|
|
display: tags.length > 0 ? "inline" : "none",
|
|
|
|
display: tags.length > 0 ? "inline" : "none",
|
|
|
|
}}>更多</el-link>
|
|
|
|
}}>更多</el-link>
|
|
|
|
|