Commit f7398481f98b23bbb302c0fa6af54aca330c7571

Authored by 张红振
1 parent 7bec5c44

fix bug

src/views/community/houses/buildOwner.vue
@@ -56,12 +56,12 @@ const search = (): void => { @@ -56,12 +56,12 @@ const search = (): void => {
56 searchData.houseId = props.houseId; 56 searchData.houseId = props.houseId;
57 availableResidentList(searchData) 57 availableResidentList(searchData)
58 .then((res) => { 58 .then((res) => {
59 - data.tableList = res.data.data; 59 + data.tableList = res.data.data.list;
60 data.tableList.map((item) => { 60 data.tableList.map((item) => {
61 item.houseId = props.houseId; 61 item.houseId = props.houseId;
62 item.residentId = item.id; 62 item.residentId = item.id;
63 }); 63 });
64 - data.total = res.data.data.length; 64 + data.total = res.data.data.total;
65 data.loading = false; 65 data.loading = false;
66 data.selectList = []; 66 data.selectList = [];
67 }) 67 })
@@ -142,7 +142,7 @@ watchEffect(() => { @@ -142,7 +142,7 @@ watchEffect(() => {
142 <template> 142 <template>
143 <div> 143 <div>
144 <!-- 搜索 --> 144 <!-- 搜索 -->
145 - <el-form :inline="true" :model="searchData" v-loading="data.loading"> 145 + <el-form :inline="true" :model="searchData" >
146 <el-form-item> 146 <el-form-item>
147 <el-input 147 <el-input
148 style="width: 280px" 148 style="width: 280px"
@@ -171,6 +171,7 @@ watchEffect(() =&gt; { @@ -171,6 +171,7 @@ watchEffect(() =&gt; {
171 @select-all="selectAll" 171 @select-all="selectAll"
172 @selection-change="handleSelectionChange" 172 @selection-change="handleSelectionChange"
173 ref="multipleTableRef" 173 ref="multipleTableRef"
  174 + v-loading="data.loading"
174 > 175 >
175 <el-table-column type="selection" width="55" /> 176 <el-table-column type="selection" width="55" />
176 <el-table-column label="姓名" prop="name"></el-table-column> 177 <el-table-column label="姓名" prop="name"></el-table-column>