修改首部无数据效果

This commit is contained in:
jsy_zjg 2025-02-13 12:33:26 +08:00
parent 11ac07d76f
commit 36415abaca

View File

@ -54,7 +54,6 @@
<!-- 地块选择 --> <!-- 地块选择 -->
<custom-select-land ref="landRef" :data="ijs.companys" :defaultSelect="ijs.land" @getLand="getLand" <custom-select-land ref="landRef" :data="ijs.companys" :defaultSelect="ijs.land" @getLand="getLand"
@select="landChange" /> @select="landChange" />
</template> </template>
<script> <script>
import { import {
@ -84,13 +83,15 @@
this.landName = this.ijs.land.landName; this.landName = this.ijs.land.landName;
this.query.landId = this.ijs.land.id; this.query.landId = this.ijs.land.id;
this.queryList(); this.queryList();
}else{
this.query.landId = -1;
this.queryList();
} }
}, },
methods: { methods: {
queryList() { queryList() {
if (this.query.landId) { if (this.query.landId) {
getHeadDeviceList(this.query.landId).then(res => { getHeadDeviceList(this.query.landId).then(res => {
console.log(res)
this.$refs.paging.complete(res.data) this.$refs.paging.complete(res.data)
}); });
} }