优化
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
<span @click="changeTab(1)" :class="[currIndex === 1 ? 'active' : '']">已出勤 {{ attendanceCount.hasIn || 0 }}</span>
|
||||
<span @click="changeTab(2)" :class="[currIndex === 2 ? 'active' : '']">未出勤 {{ attendanceCount.hasOut || 0 }}</span>
|
||||
</div>
|
||||
<div class="right" @click="linkTo('./AttendanceSetting')">考勤设置</div>
|
||||
<div class="right" @click="linkTo('./AttendanceSetting')" v-if="isAdmin">考勤设置</div>
|
||||
</div>
|
||||
<div class="info-table">
|
||||
<div class="table-header">
|
||||
@@ -61,7 +61,8 @@
|
||||
attendanceCount: {},
|
||||
all: '1',
|
||||
hasIn: '',
|
||||
hasOut: ''
|
||||
hasOut: '',
|
||||
isAdmin: false
|
||||
}
|
||||
},
|
||||
|
||||
@@ -84,6 +85,7 @@
|
||||
},
|
||||
|
||||
created () {
|
||||
this.isAdmin = !!this.$store.state.user.adminAuthType
|
||||
this.date = this.$dayjs(new Date).format('YYYY年MM月DD')
|
||||
this.getList()
|
||||
this.getTotal()
|
||||
|
||||
@@ -155,6 +155,7 @@
|
||||
uni.chooseImage({
|
||||
count: 1,
|
||||
sizeType: ['compressed'],
|
||||
sourceType: ['camera'],
|
||||
success: res => {
|
||||
let formData = new FormData()
|
||||
formData.append('file', res.tempFiles[0])
|
||||
|
||||
Reference in New Issue
Block a user