|
@@ -10,9 +10,9 @@
|
|
|
<li v-for="(item,index) in recordList" class="mui-table-view-cell">
|
|
|
{{item.recordTime}}
|
|
|
<div class="mui-media-body">
|
|
|
- <button type="button" class="mui-btn mui-btn-primary" v-if="item.result=='1' && item.status=='1'" @click="goToInfo(item.fillAttendanceId)">{{item.type=='1'?'已外勤打卡':'已补卡'}}</button>
|
|
|
- <button type="button" class="mui-btn mui-btn-primary" v-if="item.result=='0' && item.status=='2'" @click="goToInfo(item.fillAttendanceId)">已拒绝</button>
|
|
|
- <button type="button" class="mui-btn mui-btn-primary" v-if="item.result=='0' && item.status=='0'" @click="goToInfo(item.fillAttendanceId)">审核中</button>
|
|
|
+ <button type="button" class="mui-btn mui-btn-primary" v-if="item.result=='1' && item.status=='1'" @click="goToInfo(item.fillAttendanceId,item.id)">{{item.type=='1'?'已外勤打卡':'已补卡'}}</button>
|
|
|
+ <button type="button" class="mui-btn mui-btn-primary" v-if="item.result=='0' && item.status=='2'" @click="goToInfo(item.fillAttendanceId,item.id)">已拒绝</button>
|
|
|
+ <button type="button" class="mui-btn mui-btn-primary" v-if="item.result=='0' && item.status=='0'" @click="goToInfo(item.fillAttendanceId,item.id)">审核中</button>
|
|
|
<button type="button" class="mui-btn mui-btn-primary" v-if="item.result=='0' && item.status===null" @click="applybk(item.id)">申请补卡</button>
|
|
|
<span :style="'color:'+statusColor[item.result]" v-text="status[item.result]">缺卡</span>
|
|
|
</div>
|
|
@@ -22,7 +22,7 @@
|
|
|
</div>
|
|
|
<NullList :remark="'暂无考勤记录'" v-if="!recordList.length"></NullList>
|
|
|
<!--弹窗-->
|
|
|
-
|
|
|
+
|
|
|
<loading :visible="isLoading"></loading>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -85,11 +85,12 @@
|
|
|
})
|
|
|
},
|
|
|
//跳转申请补卡详情
|
|
|
- goToInfo(id) {
|
|
|
+ goToInfo(id, applyId) {
|
|
|
this.$router.push({
|
|
|
name: 'MasterAttendanceInfo',
|
|
|
query: {
|
|
|
- id: id
|
|
|
+ id: id,
|
|
|
+ applyId: applyId
|
|
|
}
|
|
|
})
|
|
|
},
|