8/25 dev 权限,sse,账单
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div class="AddBuildingBox">
|
||||
<PageHeader title="房屋租赁管理"></PageHeader>
|
||||
<div class="AddBuildingBody">
|
||||
<div class="AddBuildingBody" v-loading="loading">
|
||||
<div class="title flex flex-items-center flex-justify-between">
|
||||
<div>
|
||||
<span>基础资料 </span>
|
||||
@@ -65,7 +65,7 @@
|
||||
:src="item"
|
||||
:preview-src-list="HouseInfo.houseImageUrls"
|
||||
show-progress
|
||||
:initial-index="0"
|
||||
:initial-index="index"
|
||||
class="houseImage"
|
||||
></el-image>
|
||||
</div>
|
||||
@@ -135,20 +135,23 @@ const HouseInfo = ref({
|
||||
'facilitieslist': [],
|
||||
'houseImageUrls': []
|
||||
});
|
||||
|
||||
const loading = ref(false);
|
||||
const housefacilities = ref([]);
|
||||
async function init() {
|
||||
if (route.query.id) {
|
||||
houseRentalid.value = route.query.id;
|
||||
}
|
||||
loading.value = true;
|
||||
const reslist = await listHouseFacilities();
|
||||
housefacilities.value = reslist.rows;
|
||||
await houseStore.getCurrentVilageTreeHouse();
|
||||
getHouseRental(houseRentalid.value).then((res) => {
|
||||
HouseInfo.value = res.data;
|
||||
HouseInfo.value.facilitieslist = res.data.facilities.split(',').filter((item) => item);
|
||||
HouseInfo.value.houseImageUrls = HouseInfo.value.houseImageUrl.split(',').filter((item) => item);
|
||||
});
|
||||
getHouseRental(houseRentalid.value)
|
||||
.then((res) => {
|
||||
HouseInfo.value = res.data;
|
||||
HouseInfo.value.facilitieslist = res.data.facilities.split(',').filter((item) => item);
|
||||
HouseInfo.value.houseImageUrls = HouseInfo.value.houseImageUrl.split(',').filter((item) => item);
|
||||
})
|
||||
.finally(() => (loading.value = false));
|
||||
}
|
||||
init();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user