|
|
@@ -81,6 +81,12 @@
|
|
|
<view class="student" style="margin-bottom: 20rpx;">
|
|
|
<text style="display: block; margin-bottom: 32rpx;">请假学生</text>
|
|
|
|
|
|
+ <view v-if="listData.length == 0">
|
|
|
+ <view style="text-align: center; line-height: 150rpx;">
|
|
|
+ 暂无数据
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
<Table v-if="listData.length < 3" :tableEye="tableEye" :eyeData="eyeDataOpen" />
|
|
|
<Table v-else :tableEye="tableEye" :eyeData="tabelShow ? eyeDataOpen : eyeData" />
|
|
|
|
|
|
@@ -330,7 +336,7 @@
|
|
|
this.Chart = []
|
|
|
this.Chart.push({
|
|
|
name: '暂无数据',
|
|
|
- value: 1
|
|
|
+ value: 0
|
|
|
})
|
|
|
}else{
|
|
|
this.Chart = arr
|
|
|
@@ -358,7 +364,7 @@
|
|
|
}).then(res=>{
|
|
|
// console.log('res', res)
|
|
|
this.listData = res.data.records
|
|
|
- this.eyeDataOpen = this.listData
|
|
|
+ this.eyeDataOpen = res.data.records
|
|
|
if(this.listData.length > 2){
|
|
|
this.eyeData = [
|
|
|
this.listData[0],
|
|
|
@@ -366,8 +372,9 @@
|
|
|
]
|
|
|
}
|
|
|
|
|
|
- this.eyeData.unshift({})
|
|
|
- this.eyeDataOpen.unshift({})
|
|
|
+ console.log('listData', this.listData, res)
|
|
|
+ // this.eyeData.unshift({})
|
|
|
+ // this.eyeDataOpen.unshift({})
|
|
|
}).catch(err=>{
|
|
|
console.log('err' , err)
|
|
|
})
|
|
|
@@ -534,7 +541,7 @@
|
|
|
.total{
|
|
|
height: 302rpx;
|
|
|
box-sizing: border-box;
|
|
|
- padding: 36rpx 22rpx;
|
|
|
+ padding: 32rpx 32rpx;
|
|
|
background-color: #fff;
|
|
|
border-radius: 32rpx;
|
|
|
margin: 20rpx 32rpx 0;
|