bug
This commit is contained in:
@@ -44,25 +44,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="info-item info-work" v-if="false">
|
|
||||||
<div class="info-item__title">
|
|
||||||
<h2>考勤统计</h2>
|
|
||||||
<image src="../images/right.png" @click="linkTo('./Attendance?date=' + date.replace(/年|月/g, '-'))" />
|
|
||||||
</div>
|
|
||||||
<div class="info-work__wrapper">
|
|
||||||
<div class="top">
|
|
||||||
<div class="left">
|
|
||||||
<h2>{{ attendanceCount.hasIn || 0 }}</h2>
|
|
||||||
<span>人已打卡</span>
|
|
||||||
<i>共{{ attendanceCount.all || 0 }}人</i>
|
|
||||||
</div>
|
|
||||||
<span>{{ rate }}%</span>
|
|
||||||
</div>
|
|
||||||
<div class="progress">
|
|
||||||
<div :style="{width: rate + '%'}"></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="info-item info-rank">
|
<div class="info-item info-rank">
|
||||||
<div class="info-item__title">
|
<div class="info-item__title">
|
||||||
<h2>成员拍照排名</h2>
|
<h2>成员拍照排名</h2>
|
||||||
@@ -103,18 +84,7 @@
|
|||||||
isMore: false,
|
isMore: false,
|
||||||
isShow: false,
|
isShow: false,
|
||||||
yyyyMM: '',
|
yyyyMM: '',
|
||||||
DD: '',
|
DD: ''
|
||||||
attendanceCount: {}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
computed: {
|
|
||||||
rate () {
|
|
||||||
if (!this.attendanceCount.all) {
|
|
||||||
return '0'
|
|
||||||
}
|
|
||||||
|
|
||||||
return (this.attendanceCount.hasIn / this.attendanceCount.all * 100).toFixed(2)
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -133,12 +103,6 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
this.$http.post(`/api/appattendancerecord/attendanceCount?queryTime=${this.date.replace(/年|月/g, '-')}`).then(res => {
|
|
||||||
if (res.code === 0) {
|
|
||||||
this.attendanceCount = res.data
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
this.$http.post(`/api/appattendancerecord/userphotosort?queryTime=${this.date.replace(/年|月/g, '-')}`).then(res => {
|
this.$http.post(`/api/appattendancerecord/userphotosort?queryTime=${this.date.replace(/年|月/g, '-')}`).then(res => {
|
||||||
if (res.code === 0) {
|
if (res.code === 0) {
|
||||||
this.list = Object.keys(res.data).map(v => {
|
this.list = Object.keys(res.data).map(v => {
|
||||||
|
|||||||
Reference in New Issue
Block a user