| | |
| | | /* eslint-disable */ |
| | | export const tagList = [ |
| | | { |
| | | name: '考勤榜单', |
| | | columns: [ |
| | | { |
| | | title: '名词', |
| | | dataIndex: 'index', |
| | | key: 'index' |
| | | }, |
| | | { |
| | | title: '姓名', |
| | | dataIndex: 'name', |
| | | key: 'name' |
| | | }, |
| | | { |
| | | title: '部门', |
| | | dataIndex: 'part', |
| | | key: 'part' |
| | | }, |
| | | { |
| | | title: '次数', |
| | | dataIndex: 'count', |
| | | key: 'count' |
| | | }, |
| | | { |
| | | title: '时长(分)', |
| | | dataIndex: 'time', |
| | | key: 'timer' |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | import moment from 'moment'; |
| | | export const tag = { |
| | | // 绩效排行 |
| | | meritsRanking: { |
| | | name: '绩效榜单', |
| | | columns: [ |
| | | { |
| | | title: '名词', |
| | | title: '名次', |
| | | dataIndex: 'index', |
| | | key: 'index' |
| | | key: 'index', |
| | | render: (item, cur, idx) => { |
| | | return idx + 1; |
| | | }, |
| | | }, |
| | | { |
| | | title: '姓名', |
| | | dataIndex: 'name', |
| | | key: 'name' |
| | | dataIndex: 'userName', |
| | | key: 'userName', |
| | | }, |
| | | { |
| | | title: '部门', |
| | | dataIndex: 'part', |
| | | key: 'part' |
| | | }, |
| | | // { |
| | | // title: '部门', |
| | | // dataIndex: 'userDeptName', |
| | | // key: 'userDeptName', |
| | | // }, |
| | | { |
| | | title: '绩效得分', |
| | | dataIndex: 'score', |
| | | key: 'score' |
| | | } |
| | | ] |
| | | dataIndex: 'meritsGrade', |
| | | key: 'meritsGrade', |
| | | render: (cur, item) => { |
| | | return cur + '分'; |
| | | }, |
| | | }, |
| | | ], |
| | | }, |
| | | { |
| | | |
| | | // 缺陷排行 |
| | | defectRanking: { |
| | | name: '缺陷榜单', |
| | | columns: [ |
| | | { |
| | | title: '名词', |
| | | title: '名次', |
| | | dataIndex: 'index', |
| | | key: 'index' |
| | | key: 'index', |
| | | render: (item, cur, idx) => { |
| | | return idx + 1; |
| | | }, |
| | | }, |
| | | { |
| | | title: '姓名', |
| | | dataIndex: 'name', |
| | | key: 'name' |
| | | dataIndex: 'userName', |
| | | key: 'userName', |
| | | }, |
| | | { |
| | | title: '部门', |
| | | dataIndex: 'part', |
| | | key: 'part' |
| | | }, |
| | | // { |
| | | // title: '部门', |
| | | // dataIndex: 'userDeptName', |
| | | // key: 'userDeptName', |
| | | // }, |
| | | { |
| | | title: '缺陷数', |
| | | dataIndex: 'quexianshu', |
| | | key: 'quexianshu' |
| | | } |
| | | ] |
| | | } |
| | | ]; |
| | | dataIndex: 'defectNumber', |
| | | key: 'defectNumber', |
| | | render: (cur, item) => { |
| | | return cur + '个'; |
| | | }, |
| | | }, |
| | | ], |
| | | }, |
| | | |
| | | //迟到排行 |
| | | latenessRanking: { |
| | | name: '考勤(迟到)榜单', |
| | | columns: [ |
| | | { |
| | | title: '名次', |
| | | dataIndex: 'index', |
| | | key: 'index', |
| | | render: (item, cur, idx) => { |
| | | return idx + 1; |
| | | }, |
| | | }, |
| | | { |
| | | title: '姓名', |
| | | dataIndex: 'userName', |
| | | key: 'userName', |
| | | }, |
| | | // { |
| | | // title: '部门', |
| | | // dataIndex: 'userDeptName', |
| | | // key: 'userDeptName', |
| | | // width: '25%', |
| | | // }, |
| | | { |
| | | title: '次数', |
| | | dataIndex: 'lateTimes', |
| | | key: 'lateTimes', |
| | | render: (item, cur) => { |
| | | return item + '次'; |
| | | }, |
| | | }, |
| | | { |
| | | title: '时长(分)', |
| | | dataIndex: 'lateMinute', |
| | | key: 'lateMinute', |
| | | render: (item, cur) => { |
| | | return item + '分钟'; |
| | | }, |
| | | }, |
| | | ], |
| | | }, |
| | | |
| | | //早到排行 |
| | | earlyRanking: { |
| | | name: '考勤(早到)榜单', |
| | | columns: [ |
| | | { |
| | | title: '名次', |
| | | dataIndex: 'index', |
| | | key: 'index', |
| | | render: (item, cur, idx) => { |
| | | return idx + 1; |
| | | }, |
| | | }, |
| | | { |
| | | title: '姓名', |
| | | dataIndex: 'userName', |
| | | key: 'userName', |
| | | }, |
| | | // { |
| | | // title: '部门', |
| | | // dataIndex: 'userDeptName', |
| | | // key: 'userDeptName', |
| | | // width: '25%', |
| | | // }, |
| | | // { |
| | | // title: '打卡时间', |
| | | // dataIndex: 'onDutyUserCheckTime', |
| | | // key: 'onDutyUserCheckTime', |
| | | // className: 'fontSize12', |
| | | // width: '25%', |
| | | // render: (item, cur) => { |
| | | // return ( |
| | | // item && |
| | | // // <div style={{ fontSize: 12 }}> |
| | | // moment(item).format('MM/DD HH:mm') |
| | | // // </div> |
| | | // ); |
| | | // }, |
| | | // }, |
| | | { |
| | | title: '次数', |
| | | dataIndex: 'earlyTimes', |
| | | key: 'earlyTimes', |
| | | render: (item, cur) => { |
| | | return item + '次'; |
| | | }, |
| | | }, |
| | | { |
| | | title: '早到时长', |
| | | dataIndex: 'earlyMinute', |
| | | key: 'earlyMinute', |
| | | render: (item, cur) => { |
| | | return item + '分钟'; |
| | | }, |
| | | }, |
| | | ], |
| | | }, |
| | | }; |