This commit is contained in:
parent
c847bd29e1
commit
d9856230e6
@ -1,5 +1,5 @@
|
||||
<script lang="ts" setup>
|
||||
import {ref, watch} from 'vue';
|
||||
import {onMounted, ref, watch} from 'vue';
|
||||
import {Select} from 'ant-design-vue';
|
||||
import {resident_unitList, resident_unitInfo} from "#/api/property/resident/unit";
|
||||
|
||||
@ -17,7 +17,7 @@ const props= withDefaults(defineProps<{
|
||||
unitId: '',
|
||||
});
|
||||
|
||||
async function queryUnit(value: string, callback: any) {
|
||||
async function queryUnit(value: string|undefined, callback: any) {
|
||||
const queryData = {
|
||||
name: value,
|
||||
pageSize: 100,
|
||||
@ -64,6 +64,10 @@ watch(() => props.unitId,
|
||||
getUnitInfo(newX)
|
||||
}
|
||||
}, {immediate: true})
|
||||
|
||||
onMounted(()=>{
|
||||
queryUnit(undefined, (d: any[]) => (data.value = d));
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
Loading…
Reference in New Issue
Block a user