页面路径完善

This commit is contained in:
Zy
2026-04-28 19:18:57 +08:00
parent bde3ca8ff1
commit 7b89144dd4
70 changed files with 573 additions and 221 deletions

View File

@@ -48,8 +48,7 @@
<div class="descriptionsbox">
<div class="label">房屋设施:</div>
<div class="value">
<DictTag :options="com_house_rental_facilities" :value="HouseInfo.facilities"></DictTag>
<span v-for="item in HouseInfo.facilitieslist" :key="item">{{ handlefacilities(item.name) }}</span>
<span style="margin-right: 10px" v-for="item in HouseInfo.facilitieslist" :key="item">{{ handlefacilities(item) }} </span>
</div>
</div>
<el-row>
@@ -138,6 +137,7 @@ async function init() {
getHouseRental(houseRentalid.value).then((res) => {
HouseInfo.value = res.data;
HouseInfo.value.facilitieslist = res.data.facilities.split(',').filter((item) => item);
console.log(HouseInfo.value.facilitieslist);
HouseInfo.value.houseImageUrls = HouseInfo.value.houseImageUrl.split(',').filter((item) => item);
const arr = getHousePathById(treedata.value, HouseInfo.value.houseId, 'label');
HouseInfo.value.house = arr.join(' - ');
@@ -147,11 +147,13 @@ init();
function handlefacilities(id: string) {
const find = housefacilities.value.find((item) => item.id === id);
console.log(find, id);
return find ? find.name : '';
}
function hanlededit() {
router.push({
path: '/house/addhouseRental',
path: '/house/edithouseRental',
query: {
id: HouseInfo.value.id
}