巡检日,周,月完成,数据概况待修改
This commit is contained in:
@@ -114,7 +114,6 @@ import { validator } from '@/utils/Reg';
|
||||
import { useHouseStore } from '@/store/modules/house';
|
||||
|
||||
const houseStore = useHouseStore();
|
||||
const { treedata } = storeToRefs(houseStore);
|
||||
const uploadUrl = import.meta.env.VITE_APP_BASE_API + '/resident/uploadImage';
|
||||
|
||||
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
|
||||
@@ -161,6 +160,14 @@ const rules = ref({
|
||||
]
|
||||
});
|
||||
|
||||
const treedata = ref([]);
|
||||
function getTree() {
|
||||
houseStore.getCurrentVilageTreeHouse().then((res) => {
|
||||
treedata.value = res;
|
||||
gettreedata();
|
||||
});
|
||||
}
|
||||
getTree();
|
||||
// !== 楼栋房屋 =============================================================================
|
||||
const userid = ref(null);
|
||||
function gettreedata() {
|
||||
@@ -176,7 +183,7 @@ function gettreedata() {
|
||||
});
|
||||
}
|
||||
}
|
||||
gettreedata();
|
||||
|
||||
function handleChange(val: CascaderValue) {
|
||||
userHousepath.value = val;
|
||||
form.value.buildingId = val[0];
|
||||
|
||||
Reference in New Issue
Block a user