物业之前,新工作台
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user