物业之前,新工作台

This commit is contained in:
Zy
2026-04-16 21:03:35 +08:00
parent cf9a1f1585
commit 4184f1c55d
91 changed files with 1781 additions and 588 deletions

View File

@@ -10,13 +10,13 @@
<div
class="housetype"
:class="{
active: houseStore.buildingtype === index
active: buildingtype == house.value
}"
@click="houseStore.switchHouseType(index)"
v-for="(house, index) in housetypelist"
@click="houseStore.switchHouseType(house.value)"
v-for="(house, index) in com_build_use"
:key="index"
>
{{ house }}
{{ house.label }}
</div>
</div>
</template>
@@ -32,9 +32,13 @@ import building from './components/building.vue';
import unit from './components/unit.vue';
import PageHeader from '@/components/Pageheader/index.vue';
import { useHouseStore } from '@/store/modules/house';
const houseStore = useHouseStore();
const { currentVilageInfo } = storeToRefs(houseStore);
const housetypelist = ['住宅', '办公', '商用', '公寓'];
const { buildingtype, currentVilageInfo } = storeToRefs(houseStore);
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
const { com_build_use } = toRefs<any>(proxy?.useDict('com_build_use'));
houseStore.initHouse(houseStore.buildingtype);
// 初始化数据
</script>