Commit aabbec028dc56d7a50f8a4afd9cd751596bdc305
1 parent
9c46d9fd
fix bug
Showing
1 changed file
with
21 additions
and
21 deletions
src/views/ownerManagement/owner/index.vue
| ... | ... | @@ -48,25 +48,25 @@ const data = reactive({ |
| 48 | 48 | /** |
| 49 | 49 | * 类型变化监听 |
| 50 | 50 | */ |
| 51 | -const chengeType = (e: Event) => { | |
| 52 | - data.loading = true; | |
| 53 | - getTableList({ | |
| 54 | - page: searchData.page, | |
| 55 | - pageSize: searchData.pageSize, | |
| 56 | - isOwner: searchData.isOwner, | |
| 57 | - isLiving: searchData.isLiving, | |
| 58 | - houseId: searchData.houseId, | |
| 59 | - }) | |
| 60 | - .then((res) => { | |
| 61 | - data.tableList = res.data.data.list; | |
| 62 | - data.total = res.data.data.total; | |
| 63 | - data.loading = false; | |
| 64 | - }) | |
| 65 | - .catch((err) => { | |
| 66 | - console.log(err); | |
| 67 | - data.loading = false; | |
| 68 | - }); | |
| 69 | -}; | |
| 51 | +// const chengeType = (e: Event) => { | |
| 52 | +// data.loading = true; | |
| 53 | +// getTableList({ | |
| 54 | +// page: searchData.page, | |
| 55 | +// pageSize: searchData.pageSize, | |
| 56 | +// isOwner: searchData.isOwner, | |
| 57 | +// isLiving: searchData.isLiving, | |
| 58 | +// houseId: searchData.houseId, | |
| 59 | +// }) | |
| 60 | +// .then((res) => { | |
| 61 | +// data.tableList = res.data.data.list; | |
| 62 | +// data.total = res.data.data.total; | |
| 63 | +// data.loading = false; | |
| 64 | +// }) | |
| 65 | +// .catch((err) => { | |
| 66 | +// console.log(err); | |
| 67 | +// data.loading = false; | |
| 68 | +// }); | |
| 69 | +// }; | |
| 70 | 70 | /** |
| 71 | 71 | * 列表查询 |
| 72 | 72 | */ |
| ... | ... | @@ -166,7 +166,7 @@ watchEffect(() => { |
| 166 | 166 | v-model="searchData.isOwner" |
| 167 | 167 | placeholder="请选择是否是业主" |
| 168 | 168 | clearable |
| 169 | - @change="chengeType" | |
| 169 | + | |
| 170 | 170 | > |
| 171 | 171 | <el-option |
| 172 | 172 | v-for="item in data.options" |
| ... | ... | @@ -182,7 +182,7 @@ watchEffect(() => { |
| 182 | 182 | v-model="searchData.isLiving" |
| 183 | 183 | placeholder="请选择是否在住" |
| 184 | 184 | clearable |
| 185 | - @change="chengeType" | |
| 185 | + | |
| 186 | 186 | > |
| 187 | 187 | <el-option |
| 188 | 188 | v-for="item in data.livingList" | ... | ... |