master
xy 2 years ago
parent 1d4c999930
commit 4baf7533ae

@ -180,9 +180,13 @@ top: 41px !important;
line-height: 32px !important; line-height: 32px !important;
} }
.ivu-table-fixed.ivu-table-fixed-shadow {
height: calc(100% - 8px);
scrollbar-width: 8px;
}
::-webkit-scrollbar { ::-webkit-scrollbar {
width: 6px; width: 8px;
height: 6px; height: 8px;
} }
::-webkit-scrollbar-thumb { ::-webkit-scrollbar-thumb {

@ -39,6 +39,7 @@
<div class="card-content"> <div class="card-content">
<Table <Table
border
:loading="leaseTableLoading" :loading="leaseTableLoading"
size="small" size="small"
stripe stripe
@ -46,6 +47,7 @@
:height="300" :height="300"
:data="leases" :data="leases"
:columns="leaseTable" :columns="leaseTable"
@on-row-dblclick="leaseRowDbclick"
></Table> ></Table>
<div class="page"> <div class="page">
<Page <Page
@ -86,6 +88,7 @@
</div> </div>
<div class="card-content"> <div class="card-content">
<Table <Table
border
:loading="payTableLoading" :loading="payTableLoading"
size="small" size="small"
stripe stripe
@ -93,6 +96,7 @@
:height="300" :height="300"
:data="pays" :data="pays"
:columns="payTable" :columns="payTable"
@on-row-dblclick="leasePlanDbclick"
></Table> ></Table>
<div class="page"> <div class="page">
<Page <Page
@ -450,11 +454,18 @@ export default {
fixed: "left", fixed: "left",
align: "left", align: "left",
render: (h, { row }) => { render: (h, { row }) => {
let tags = [ let tags = row.id_leases_to_assets_lease_id_relation?.map(item => {
...row?.land?.map((i) => if (item.land_id) {
let land = row.land?.find(j => j.id === item.land_id)
return h('el-popover',{
props: {
width: 200
}
},[
h( h(
"Tag", "Tag",
{ {
slot: 'reference',
props: { props: {
type: "dot", type: "dot",
color: "#3fa45a", color: "#3fa45a",
@ -463,13 +474,24 @@ export default {
background: "#e5f4ea !important", background: "#e5f4ea !important",
}, },
}, },
i.name land.name
)
), ),
...row?.houses?.map((i) => h("div",{
slot: 'default'
}, (land.name||'无') + '-' + (item.xiangxiweizhi||'无') + '-' + (item.chuzumianji||'0'))
])
} else if (item.house_id) {
let house = row.houses?.find(j => j.id === item.house_id)
return h("el-popover",{
props: {
width: 200,
trigger: "hover"
}
},[
h( h(
"Tag", "Tag",
{ {
slot: "reference",
props: { props: {
type: "dot", type: "dot",
color: "#2254e4", color: "#2254e4",
@ -478,10 +500,75 @@ export default {
background: "#e8edfc !important", background: "#e8edfc !important",
}, },
}, },
i.name h("div",{
slot: 'default'
},(house.name||'无') + '-' + (item.xiangxiweizhi||'无') + '-' + (item.chuzumianji||'0'))
) )
])
} else {
return h("el-popover",{
props: {
width: 200,
trigger: "hover"
}
},[
h(
"Tag",
{
slot: "reference",
props: {
type: "dot",
color: "#6c3fa4",
},
style: {
background: "#b78cea !important",
},
},
item.name || ""
), ),
]; h(
"div",
{
slot: "default"
},
(item.name||'无') + '-' + (item.xiangxiweizhi||'无') + '-' + (item.chuzumianji||'0')
),
])
}
})
// let tags = [
// ...row?.land?.map((i) =>
// h(
// "Tag",
// {
// props: {
// type: "dot",
// color: "#3fa45a",
// },
// style: {
// background: "#e5f4ea !important",
// },
// },
// i.name
// )
// ),
// ...row?.houses?.map((i) =>
// h(
// "Tag",
// {
// props: {
// type: "dot",
// color: "#2254e4",
// },
// style: {
// background: "#e8edfc !important",
// },
// },
// i.name
// )
// ),
// ];
return h("div", [ return h("div", [
...tags.slice(0, 1), ...tags.slice(0, 1),
h( h(
@ -514,12 +601,6 @@ export default {
]); ]);
}, },
}, },
{
title: "出租方",
key: "chuzufang",
align: "left",
width: 150,
},
{ {
title: "租赁期限", title: "租赁期限",
width: 190, width: 190,
@ -601,6 +682,17 @@ export default {
}, },
}, },
methods: { methods: {
leaseRowDbclick(row, index) {
this.$router.push({
path: '/lease/detail/' + row.id
})
},
leasePlanDbclick(row, index) {
this.$router.push({
path: '/leasePlan/detail/' + row.id
})
},
index, index,
async loadData() { async loadData() {
await getChartsHome() await getChartsHome()

Loading…
Cancel
Save