Commit 563a7146 authored by dll's avatar dll

考勤绩效负责人

parent 468eee28
......@@ -58,7 +58,6 @@ export default {
this.tableData = this.beforeRender(
Object.assign({}, this.tableData, data)
)
console.log(this.tableData,'')
this.afterRender(this.tableData);
})
.catch(error => {
......@@ -71,6 +70,7 @@ export default {
this.tableData.loading = false;
}, 300);
})
},
// 复制一个数组或对象
util_copy(data) {
......
......@@ -22,6 +22,9 @@ export default {
handleClick(key, keyPath){
this.$emit('handleClick',key)
}
},
mounted(){
console.log(this.activeName,';ss')
}
}
</script>
......
......@@ -45,14 +45,12 @@ const router = new Router({
...restBuilder('care/template', 'care/template'),// 关怀问候信息
...restBuilder('staff/black', 'staff/black'),// 员工黑名单信息
...restBuilder('job', 'job'),// 职位信息
...restBuilder('staff/adjust/log', 'staff/adjust/log'),// 员工调岗信息
...restBuilder('staff/regular', 'staff/regular'),// 员工转正信息
...restBuilder('staff/leave', 'staff/leave'),// 员工离职信息
...restBuilder('staff/contract', 'staff/contract'),// 员工合同信息
...restBuilder('attendance/record/hik', 'attendance/record/hik'),// 海康考勤
...restBuilder('attendance/record/error', 'attendance/record/error'),// 考勤打卡记录异常信息
...restBuilder('attendance/stat', 'attendance/stat'),// 考勤汇总信息
......
......@@ -119,7 +119,8 @@ export default {
this.$store.commit('setHeadBar',[])
this.$store.commit("setCurrentParentName",'')
this.$store.commit('setCurrentThirdArr',[])
console.log(this.menu,'菜单')
this.$store.commit('setCurrentSecondPath','')
this.$store.commit('setThirdPath','')
},
methods:{
tabChildren(name){
......@@ -128,9 +129,10 @@ export default {
this.$store.commit('setHeadBar',result)
// 路由跳转
if(result.children.length>0){
this.$router.push({path:result.children[0].path})
this.$store.commit('CurrentSecondPath',result.children[0].path)
this.$store.commit('setCurrentThirdArr',result.children[0].children)
this.$store.commit('setCurrentSecondPath',result.children[0].path)
this.$store.commit('setThirdPath',result.children[0].path)
this.$router.push({path:result.children[0].path})
}else{
this.$message.error('暂未完成添加');
}
......
......@@ -29,7 +29,10 @@
</el-scrollbar>
</el-col>
<el-col :span="18" :xs="12" class="mytree">
<LayoutTable :data="tableData" :config="tableConfig"></LayoutTable>
<LayoutTable :data="tableData" :config="tableConfig">
<el-button type="primary" @click="doExport" :disabled="isExport"
size="mini" slot="table-head-left2">导出</el-button>
</LayoutTable>
</el-col>
</el-row>
<drawer-show ref="drawerform" @ok="getData" />
......@@ -50,7 +53,7 @@
},
mixins: [table,tree],
created() {
this.getpositions()
console.log(this.activeName,'ssss')
},
computed:{
thirdList(){
......@@ -62,6 +65,16 @@
}
},
methods: {
doExport(){
this.isExport = true;
this.$download("/staff/list/exportExcel", {
"idList": this.selection,
'name': this.$route.query['name'],
}, { type: "excel" }).then(() => this.isExport = false).catch(error => {
this.isExport = false;
this.$message.error(error.message);
})
},
/** 重写新增方法 */
toAdd(row) {
this.$refs.drawerform.add(row);
......@@ -91,24 +104,24 @@
return {
config: {
search: [
{
name: "groupName",
type: "text",
label: "分组名称",
fuzzy: true
},
{
name: "jobCode",
type: "text",
label: "职位编码",
fuzzy: true
},
{
name: "jobName",
type: "text",
label: "职位名称",
fuzzy: true
},
// {
// name: "groupName",
// type: "text",
// label: "分组名称",
// fuzzy: true
// },
// {
// name: "jobCode",
// type: "text",
// label: "职位编码",
// fuzzy: true
// },
// {
// name: "jobName",
// type: "text",
// label: "职位名称",
// fuzzy: true
// },
],
columns: [
{type: "selection", width: 60},
......@@ -134,7 +147,8 @@
}
}
]
}
},
isExport:false
}
}
};
......
......@@ -4,17 +4,19 @@
<tab-pane :thirdList="thirdList" :activeName="activeName" @handleClick="handleClick"></tab-pane>
</div>
<div class="totalNum flex">
<div class="item">在职员工 <span class="num">66</span></div>
<div class="item">在职员工 <span class="num">{{tableData.staff.inWorkStaff}}</span></div>
<div class="item flex">
<div>全职 <span class="num">66</span></div>
<div>实习 <span class="num">66</span></div>
<div>兼职 <span class="num">66</span></div>
<div>全职 <span class="num">{{tableData.staff.fullStaff}}</span></div>
<div>实习 <span class="num">{{tableData.staff.pricateStaff}}</span></div>
<!-- 兼职未对 -->
<div>兼职 <span class="num">{{tableData.staff.inWorkStaff}}</span></div>
</div>
<div class="item flex">
<div>试用 <span class="num">66</span></div>
<div>正式 <span class="num">66</span></div>
<div>待离职 <span class="num">66</span></div>
<div>试用 <span class="num">{{tableData.staff.onTrialStaff}}</span></div>
<div>正式 <span class="num">{{tableData.staff.formalStaff}}</span></div>
<div>待离职 <span class="num">{{tableData.staff.resignationStaff}}</span></div>
</div>
</div>
<el-row :gutter="20">
......@@ -170,7 +172,7 @@
},
doExport(){
this.isExport = true;
this.$download("/staff/list/exportExcel", {
this.$download("/staff/exportExcel", {
"idList": this.selection,
'name': this.$route.query['name'],
}, { type: "excel" }).then(() => this.isExport = false).catch(error => {
......@@ -232,10 +234,10 @@
],
isshowTabPane:false
},
activeName:'first',
isshowHome:false,
personData:[],
isExport:false
isExport:false,
staffInfo:{}
}
},
computed:{
......
......@@ -6,19 +6,21 @@
<el-button type="primary" @click="$router.back()" size="small">返回上级</el-button>
</div>
<div class="persons">
<div class="cell1 flex flex-pack-justify">
<div class="avator"></div>
<div class="content">
<div class="cell1 flex">
<el-image
style="width: 120px; height: 150px"
:src="allinfo.photoPath"
:preview-src-list="allinfo.photoPath">
</el-image>
<div class="content ml20">
<div class="c1">
<span>{{info.name}}</span>
<span class="tags" v-if="info.status == 1">正式</span>
<span class="tags" v-if="info.status == 2">试用</span>
<span class="tags" v-if="info.status == 3">离职</span>
<span>{{info.workName}}</span>
<span class="tags">{{info.workStatus}}</span>
</div>
<div class="c2">
<span>{{info.positionName}}</span>
<span>{{info.workDept}}</span>
<span style="margin:0 10px">|</span>
<span>1512</span>
<span>{{info.workLimit}}</span>
</div>
</div>
</div>
......@@ -26,11 +28,11 @@
<div class="title">成长记录</div>
<div class="flex">
<div class="history">
<div class="times">{{info.entryDate}}</div>
<div class="times">{{info.workBeginDay}}</div>
<div>入职时间</div>
</div>
<div class="history">
<div class="times">{{info.regularDate}}</div>
<div class="times">{{info.workFormalDay}}</div>
<div>转正时间</div>
</div>
</div>
......@@ -43,31 +45,31 @@
<div class="flex flex-pack-justify" style="margin-top:10px">
<div class="flex">
<div>实际出勤天数</div>
<div class="times">2020</div>
<div class="times ml20">{{info.attendanceCount}}</div>
</div>
<div class="flex">
<div>请假天数</div>
<div class="times">2020</div>
<div class="times ml20">{{info.leaveCount}}</div>
</div>
</div>
<div class="flex flex-pack-justify" style="margin-top:10px">
<div class="flex">
<div>迟到早退次数</div>
<div class="times">2020</div>
<div class="times ml20">{{info.lateCount}}</div>
</div>
<div class="flex">
<div>旷工天数</div>
<div class="times">2020</div>
<div class="times ml20">{{info.minerCount}}</div>
</div>
</div>
<div class="flex flex-pack-justify" style="margin-top:10px">
<div class="flex">
<div>缺卡次数</div>
<div class="times">2020天</div>
<div class="times ml20">{{info.lackCardCount}}</div>
</div>
<div class="flex">
<div>加班天数</div>
<div class="times">2020</div>
<div class="times ml20">{{info.workOverDay}}</div>
</div>
</div>
</div>
......@@ -76,21 +78,21 @@
<div class="flex flex-pack-justify" style="margin-top:10px">
<div class="flex">
<div>调休</div>
<div class="times">2020</div>
<div class="times ml20">{{info.compensatoryDay}}</div>
</div>
<div class="flex">
<div>婚假</div>
<div class="times">2020</div>
<div class="times ml20">{{info.marriageHoliday}}</div>
</div>
</div>
<div class="flex flex-pack-justify" style="margin-top:10px">
<div class="flex">
<div>年假</div>
<div class="times">2020</div>
<div class="times ml20">{{info.winterHoliday}}</div>
</div>
<div class="flex">
<div>陪产假</div>
<div class="times">2020</div>
<div class="times ml20">{{info.paternityLeaveDay}}</div>
</div>
</div>
</div>
......@@ -108,9 +110,8 @@
getdata(id){
this.$get('/staff/info',{id}).then(res => {
if(res.code == 1){
this.info = res.data
this.info.entryDate = timestampToTime(this.info.entryDate)
this.info.regularDate = timestampToTime(this.info.regularDate)
this.info = res.data.holidayLists[0]
this.allinfo = res.data//总
}
})
.catch(err => {
......@@ -120,7 +121,8 @@
},
data() {
return {
info:{}
info:{},
allinfo:{}
}
},
created(){
......@@ -136,11 +138,11 @@
font-weight: bold;
}
.cell1{
.avator{
width: 120px;
height: 150px;
background-color: aliceblue;
}
// .avator{
// width: 120px;
// height: 150px;
// background-color: aliceblue;
// }
.c2{
color: #999;
font-size: 12px;
......
......@@ -14,8 +14,8 @@
</el-form-item>
</el-col>
<!--<Field label="ID" prop="id" v-model="form.id" v-if='pageInfo.type !== "add"' disabled />-->
<Field label="名称" prop="name" v-model="form.name"/>
<!-- <Field label="ID" prop="id" v-model="form.id" v-if='pageInfo.type !== "add"' disabled />
--> <Field label="名称" prop="name" v-model="form.name"/>
<Field label="权限类型" prop="authType" v-model="form.authType" :enumData='dict.authType' type='select' />
<Field label="访问地址" prop="url" v-model="form.url" />
<Field label="状态" prop="status" v-model="form.status" :enumData='dict.status' type='radio' />
......
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