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