工单对账无数据显示空图片
This commit is contained in:
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="wrap">
|
<div class="wrap" :style="`backgroundColor: ${show ? '#FAFAFA' : '#F4F5F7'};`">
|
||||||
<div class="navBar">
|
<div class="navBar">
|
||||||
<van-nav-bar
|
<van-nav-bar
|
||||||
title="工单对账"
|
title="工单对账"
|
||||||
@ -34,7 +34,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<van-pull-refresh v-model="isLoading" @refresh="onRefresh">
|
<van-pull-refresh v-model="isLoading" @refresh="onRefresh" style="height: 100%" v-show="!show">
|
||||||
<div >
|
<div >
|
||||||
<div class="content_wrap" v-for="(item,index) in orderList" :key="index">
|
<div class="content_wrap" v-for="(item,index) in orderList" :key="index">
|
||||||
<div class="codeTxt common">
|
<div class="codeTxt common">
|
||||||
@ -66,7 +66,9 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</van-pull-refresh>
|
</van-pull-refresh>
|
||||||
|
<div style="height: 85% ;background-color: #FAFAFA;display: flex;justify-content: center;align-items: center" v-show="show" >
|
||||||
|
<img style="width: 100%" src="@/assets/empty.png" />
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -91,6 +93,7 @@ export default {
|
|||||||
currentDate: new Date(),
|
currentDate: new Date(),
|
||||||
ymTime: '',
|
ymTime: '',
|
||||||
isLoading:"",
|
isLoading:"",
|
||||||
|
// show:false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
@ -100,6 +103,11 @@ export default {
|
|||||||
this.initSelectTime();
|
this.initSelectTime();
|
||||||
this.getList();
|
this.getList();
|
||||||
},
|
},
|
||||||
|
computed:{
|
||||||
|
show() {
|
||||||
|
return (this.orderList.length < 0 || this.orderList.length == 0); // 判断数组长度是否大于 0
|
||||||
|
},
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
onRefresh() {
|
onRefresh() {
|
||||||
this.getList()
|
this.getList()
|
||||||
@ -185,7 +193,7 @@ export default {
|
|||||||
|
|
||||||
.wrap {
|
.wrap {
|
||||||
@include wh(100%, 100%);
|
@include wh(100%, 100%);
|
||||||
background: #F4F5F7;
|
//background: #F4F5F7;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
padding: 0 12px;
|
padding: 0 12px;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
|
Reference in New Issue
Block a user