Commit 139d34ca authored by 姬鋆屾's avatar 姬鋆屾
parents fb5fd26a 77267dbb
...@@ -221,7 +221,6 @@ export default { ...@@ -221,7 +221,6 @@ export default {
/** 导出Excel */ /** 导出Excel */
doExport() { doExport() {
if(this.isExport==true) { if(this.isExport==true) {
console.log("isExport:",this.isExport)
this.$message.info("考勤数据正在导出中,请勿重复点击!") this.$message.info("考勤数据正在导出中,请勿重复点击!")
return false; return false;
} }
......
...@@ -24,15 +24,15 @@ export default { ...@@ -24,15 +24,15 @@ export default {
this.$message.error(error.message || '请登录'); this.$message.error(error.message || '请登录');
console.log("href:"+process.env.VUE_APP_PORTAL_URL) console.log("href:"+process.env.VUE_APP_PORTAL_URL)
// window.location.href=process.env.VUE_APP_PORTAL_URL=='undefined'?'http://192.168.0.98:11072':process.env.VUE_APP_PORTAL_URL //window.location.href=process.env.VUE_APP_PORTAL_URL=='undefined'?'http://192.168.0.98:11072':process.env.VUE_APP_PORTAL_URL
// window.location.href=process.env.VUE_APP_PORTAL_URL window.location.href=process.env.VUE_APP_PORTAL_URL
this.$router.replace({ /* this.$router.replace({
path: '/login', path: '/login',
query: { query: {
redirect: this.redirect, redirect: this.redirect,
} }
}); });*/
} }
}, },
computed: { computed: {
......
...@@ -48,33 +48,28 @@ ...@@ -48,33 +48,28 @@
}, },
{ {
name: "gender", name: "gender",
type: "text", type: "select",
label: "性别1男2女", label: "性别"
fuzzy: true
}, },
{ {
name: "politicalstatus", name: "politicalstatus",
type: "select", type: "select",
label: "政治面貌 ", label: "政治面貌"
fuzzy: true
}, },
{ {
name: "staffType", name: "staffType",
type: "text", type: "select",
label: "员工类型1全职2兼职3实习", label: "员工类型"
fuzzy: true
}, },
{ {
name: "status", name: "status",
type: "text", type: "select",
label: "员工状态1正式2试用3离职", label: "员工状态"
fuzzy: true
}, },
{ {
name: "auditStatus", name: "auditStatus",
type: "text", type: "select",
label: "审核状态0待审核1通过2拒绝", label: "审核状态"
fuzzy: true
}, },
], ],
columns: [ columns: [
...@@ -83,19 +78,18 @@ ...@@ -83,19 +78,18 @@
{label: "员工姓名", prop: "fullName"}, {label: "员工姓名", prop: "fullName"},
{label: "性别1男2女", prop: "gender",formatter: this.formatter}, {label: "性别", prop: "gender",formatter: this.formatter},
{label: "政治面貌 ", prop: "politicalstatus",formatter: this.formatter}, {label: "政治面貌 ", prop: "politicalstatus",formatter: this.formatter},
{label: "员工类型1全职2兼职3实习", prop: "staffType",formatter: this.formatter}, {label: "员工类型", prop: "staffType",formatter: this.formatter},
{label: "员工状态1正式2试用3离职", prop: "status",formatter: this.formatter}, {label: "员工状态", prop: "status",formatter: this.formatter},
{label: "入职时间", prop: "entryDate", formatter: this.formatterDate}, {label: "入职时间", prop: "entryDate", formatter: this.formatterDate},
{label: "审核状态0待审核1通过2拒绝", prop: "auditStatus",formatter: this.formatter}, {label: "审核状态", prop: "auditStatus",formatter: this.formatter},
{label: "创建用户", prop: "createUserId", formatter: this.formatter},
{ {
label: "操作", label: "操作",
width: 240, width: 240,
......
...@@ -260,8 +260,10 @@ public class LoginController extends BaseCRUDJsonBodyMappingController<UserServi ...@@ -260,8 +260,10 @@ public class LoginController extends BaseCRUDJsonBodyMappingController<UserServi
int levealPersonNum = vacationRecordService.count(vacationRecordQuery, getContext());*/ int levealPersonNum = vacationRecordService.count(vacationRecordQuery, getContext());*/
AttendanceLeaveRecordQuery leaveRecordQuery = new AttendanceLeaveRecordQuery(); AttendanceLeaveRecordQuery leaveRecordQuery = new AttendanceLeaveRecordQuery();
leaveRecordQuery.setCreateTimeStart(DateUtil.beginOfMonth(new Date()).toDateStr()); /* leaveRecordQuery.setCreateTimeStart(DateUtil.beginOfMonth(new Date()).toDateStr());
leaveRecordQuery.setCreateTimeEnd(DateUtil.today()); leaveRecordQuery.setCreateTimeEnd(DateUtil.today());*/
leaveRecordQuery.setCreateTimeStart(DateUtil.yesterday().toDateStr());
leaveRecordQuery.setCreateTimeEnd(DateUtil.yesterday().toDateStr());
leaveRecordQuery.setProcessStatus(ProcessStatusEnum.已处理.getValue()); leaveRecordQuery.setProcessStatus(ProcessStatusEnum.已处理.getValue());
int levealPersonNum = leaveRecordService.count(leaveRecordQuery, getContext()); int levealPersonNum = leaveRecordService.count(leaveRecordQuery, getContext());
...@@ -276,10 +278,10 @@ public class LoginController extends BaseCRUDJsonBodyMappingController<UserServi ...@@ -276,10 +278,10 @@ public class LoginController extends BaseCRUDJsonBodyMappingController<UserServi
//异常考勤记录 //异常考勤记录
//未考勤 //未考勤
// long noAtt=lackOfCards; // long noAtt=lackOfCards;
// long att = totalAttend - lackOfCardsAttend - levealPersonNum; long att = totalCache - lackOfCardsAttend - levealPersonNum;
long att = totalAttend - lackOfCardsAttend; // long att = totalAttend - lackOfCardsAttend;
if (att != 0L) { if (att != 0L) {
BigDecimal bigDecimal = new BigDecimal(att).divide(new BigDecimal(totalAttend), 4, BigDecimal.ROUND_CEILING).multiply(new BigDecimal(100)).setScale(2, BigDecimal.ROUND_CEILING); BigDecimal bigDecimal = new BigDecimal(att).divide(new BigDecimal(totalCache), 4, BigDecimal.ROUND_CEILING).multiply(new BigDecimal(100)).setScale(2, BigDecimal.ROUND_CEILING);
homeStatInfo.setAttendRadio(bigDecimal.toString() + "%"); homeStatInfo.setAttendRadio(bigDecimal.toString() + "%");
} else { } else {
homeStatInfo.setAttendRadio("0%"); homeStatInfo.setAttendRadio("0%");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment