优化
This commit is contained in:
@@ -22,7 +22,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')" v-if="!isAdmin">考勤设置</div>
|
||||
<div class="right" @click="linkTo('./AttendanceSetting')" v-if="isAdmin">考勤设置</div>
|
||||
</div>
|
||||
<div class="info-table">
|
||||
<div class="table-header">
|
||||
|
||||
@@ -3,14 +3,11 @@
|
||||
<div class="photo-wrapper">
|
||||
<image mode="widthFix" :src="img" />
|
||||
</div>
|
||||
<!-- <u-popup v-model="isShow" :mask="false" :closeable="false" border-radius="32" mode="bottom" @close="isShow = false, currIndex = -1">
|
||||
|
||||
</u-popup> -->
|
||||
<div class="photo-bottom" :class="[isShow ? 'active' : '']">
|
||||
<div class="top">
|
||||
<h2>查看图片</h2>
|
||||
<p>长按图片进行分享给他人</p>
|
||||
<image @click="isShow = false, currIndex = -1" src="./images/down_boldw.png" />
|
||||
<image @click.stop="isShow = false" src="./images/down_boldw.png" />
|
||||
</div>
|
||||
<div class="btns">
|
||||
<div class="btn-item" hover-class="bg-hover" @click="back">
|
||||
|
||||
@@ -250,8 +250,8 @@
|
||||
allowTaint: true,
|
||||
useCORS: true
|
||||
}).then((canvas) => {
|
||||
let dataURL = canvas.toDataURL('image/jpg')
|
||||
const file = this.dataURLtoFile(dataURL, 'photo.jpg')
|
||||
let dataURL = canvas.toDataURL('image/png')
|
||||
const file = this.dataURLtoFile(dataURL, 'photo.png')
|
||||
let formData = new FormData()
|
||||
formData.append('file', file)
|
||||
this.$http.post('/admin/file/add2?type=image', formData).then(res => {
|
||||
|
||||
Reference in New Issue
Block a user