打卡记录
This commit is contained in:
parent
ecf619eb17
commit
02ad2dda9b
|
|
@ -559,6 +559,7 @@
|
|||
openAttCountList(row){
|
||||
this.title = "打卡记录(当天12:00至第二天凌晨05:00)";
|
||||
this.queryAttCount.userId = row.userId;
|
||||
this.queryAttCount.userName = row.userName;
|
||||
this.queryAttCount.attCurrentDay = row.attCurrentDay;
|
||||
this.showAttCount = true;
|
||||
this.getAttCountList();
|
||||
|
|
|
|||
|
|
@ -35,8 +35,8 @@
|
|||
>导出数据</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
|
||||
|
||||
|
||||
<el-table v-loading="loading" :data="tableData" ref="multipleTable" row-key="id" >
|
||||
<el-table-column label="序号" align="center" width="80" type="index">
|
||||
<template slot-scope="scope">
|
||||
|
|
@ -104,7 +104,7 @@
|
|||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
|
||||
<pagination
|
||||
v-show="total>0"
|
||||
:total="total"
|
||||
|
|
@ -126,7 +126,7 @@
|
|||
start-placeholder="开始日期"
|
||||
end-placeholder="结束日期"
|
||||
:picker-options="pickerOptions"
|
||||
|
||||
|
||||
></el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
|
|
@ -148,23 +148,23 @@
|
|||
<template slot-scope="scope">
|
||||
<span>{{ formatDate(scope.row.attCurrent) }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table-column>
|
||||
<el-table-column label="上班打卡时间" align="center" prop="goWorkTime" width="140" sortable/>
|
||||
<el-table-column label="上班状态" align="center" prop="goWorkStatus" width="100" sortable>
|
||||
<template slot-scope="scope">
|
||||
<dict-tag :options="dict.type.att_status" :value="scope.row.goWorkStatus"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table-column>
|
||||
<el-table-column label="上班打卡地址" align="center" prop="goWorkAddress" sortable/>
|
||||
<el-table-column label="下班打卡时间" align="center" prop="offWorkTime" width="140" sortable/>
|
||||
<el-table-column label="下班状态" align="center" prop="offWorkStatus" width="100" sortable>
|
||||
<template slot-scope="scope">
|
||||
<dict-tag :options="dict.type.att_status" :value="scope.row.offWorkStatus"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table-column>
|
||||
<el-table-column label="下班打卡地址" align="center" prop="offWorkAddress" sortable/>
|
||||
</el-table>
|
||||
|
||||
|
||||
<pagination
|
||||
v-show="totalTwo>0"
|
||||
:total="totalTwo"
|
||||
|
|
@ -177,13 +177,13 @@
|
|||
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
<script>
|
||||
import { listMonthlyError,getDetail,exportMonthlyError} from "@/api/report/monthlyError";
|
||||
import { listDept } from "@/api/system/dept";
|
||||
import { downloadFile } from '@/utils/download'
|
||||
import Treeselect from "@riophae/vue-treeselect";
|
||||
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
||||
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
||||
// import { getEngineeringList } from "@/api/select";
|
||||
import { getToken } from '@/utils/auth'
|
||||
export default {
|
||||
|
|
@ -254,7 +254,7 @@
|
|||
computed: {
|
||||
},
|
||||
created() {
|
||||
|
||||
|
||||
this.getMonth();
|
||||
this.getDeptList();
|
||||
if(this.$route.query.param){
|
||||
|
|
@ -267,7 +267,7 @@
|
|||
},
|
||||
methods: {
|
||||
disabledDate(time) {
|
||||
const str=this.queryRecord.attCurrent+'-01';
|
||||
const str=this.queryRecord.attCurrent+'-01';
|
||||
// 获取当前日期
|
||||
var currentDate = new Date(str);
|
||||
// 获取当前月份的第一天
|
||||
|
|
@ -279,7 +279,7 @@
|
|||
// defaultTime(){
|
||||
// // ['2023-04-01', '2023-04-10']
|
||||
// console.log(11111111111111)
|
||||
// const str=this.queryRecord.attCurrent+'-01';
|
||||
// const str=this.queryRecord.attCurrent+'-01';
|
||||
// var currentDate = new Date(str);
|
||||
// // 获取当前月份的第一天
|
||||
// var firstDayOfMonth = new Date(currentDate.getFullYear(), currentDate.getMonth(), 1);
|
||||
|
|
@ -293,7 +293,7 @@
|
|||
var nowDate = new Date();
|
||||
var date = {
|
||||
year: nowDate.getFullYear(),
|
||||
month: nowDate.getMonth() ,
|
||||
month: nowDate.getMonth() + 1,
|
||||
day: nowDate.getDate()
|
||||
};
|
||||
const dayDate = date.year + "-" + (date.month >= 10 ? date.month : "0" + date.month);
|
||||
|
|
@ -328,12 +328,12 @@
|
|||
};
|
||||
},
|
||||
|
||||
handleSelect(value, instanceId) {
|
||||
handleSelect(value, instanceId) {
|
||||
console.log('Selected:', value);
|
||||
// 在这里处理选择事件
|
||||
this.queryParams.orgName=value.orgName;
|
||||
},
|
||||
|
||||
|
||||
/** 查询月异常列表 */
|
||||
getList() {
|
||||
this.loading = true;
|
||||
|
|
@ -366,7 +366,7 @@
|
|||
|
||||
//打开月异常详情页面
|
||||
openRecord(row,titleBoss){
|
||||
this.id = row.id;
|
||||
this.id = row.id;
|
||||
this.title = titleBoss;
|
||||
this.queryRecord.userId = row.userId;
|
||||
this.queryRecord.orgId = row.orgId;
|
||||
|
|
@ -410,14 +410,14 @@
|
|||
this.showRecord = false;
|
||||
this.resetRecord();
|
||||
},
|
||||
|
||||
|
||||
/** 导出按钮操作 */
|
||||
handleExport() {
|
||||
exportMonthlyError(this.queryParams).then(res => {
|
||||
downloadFile({ fileName: `月异常报表_${new Date().getTime()}.xlsx`, fileData: res, fileType: 'application/vnd.ms-excel;charset=utf-8' })
|
||||
})
|
||||
},
|
||||
|
||||
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
@ -444,4 +444,4 @@
|
|||
display: none;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
|
|
|||
Loading…
Reference in New Issue