diff --git a/js/pages/newDataAnalysis/workerEfficiencyAnalysis.js b/js/pages/newDataAnalysis/workerEfficiencyAnalysis.js index fe76581..247a49b 100644 --- a/js/pages/newDataAnalysis/workerEfficiencyAnalysis.js +++ b/js/pages/newDataAnalysis/workerEfficiencyAnalysis.js @@ -8,15 +8,6 @@ const tipsArr = [ '定期组织技能培训和考试,并做好施工工具的维护与定期检查工作。', ]; -// let -const inefficiencyArr = [ - { - 'gxName':'', - nameList:['专业技能不足', '工具故障','人员异常','设备维保','环境变化'], - valueList:[{ name: '专业技能不足', value: 4 }, { name: '工具故障', value: 1 }] - - } -]; layui.use(['layer', 'table', 'form'], function () { layer = layui.layer; table = layui.table; @@ -58,22 +49,33 @@ function initTable() { userName: userName, }, cols: [[ - { type: 'numbers', title: '序号', width: '10%' }, // 添加序号列 + { type: 'numbers', title: '序号', width: '6%' }, // 添加序号列 { field: 'userName', title: '班组长', align: 'center', width: '10%' }, { field: 'teamName', title: '班组', align: 'center', width: '15%' }, { - field: 'gxName', title: '工序', align: 'center', width: '20%', + field: 'gxName', title: '工序', align: 'center', width: '35%', + templet: function (d) { + if (d.gxName) { + if (d.gxName.length > 100) { + return '' + d.gxName.substring(0, 100) + '...' + } else { + return '' + d.gxName + '' + } + } else { + return ''; + } + } }, { - field: 'planDay', title: '计划完成天数', align: 'center', width: '10%', + field: 'planDay', title: '计划完成天数', align: 'center', width: '12%', }, { - field: 'actualDay', title: '实际完成天数', align: 'center', width: '10%', + field: 'actualDay', title: '实际完成天数', align: 'center', width: '12%', }, - { - field: 'workStandard', title: '作业内容', align: 'center', width: '15%', + /* { + field: 'workStandard', title: '作业内容', align: 'center', width: '19%', templet: function (d) { if (d.workStandard) { if (d.workStandard.length > 60) { @@ -86,7 +88,7 @@ function initTable() { } } - }, + }, */ { title: '效率评级', align: 'center', width: '10%', templet: function (d) { @@ -399,8 +401,8 @@ function initEchartsOne(obj) { /* 变化趋势 */ function initEchartsTwo(data) { - let nameList = ['专业技能不足', '工具故障','人员异常','设备维保','环境变化']; - let valueList = [{ name: '专业技能不足', value: 4 }, { name: '工具故障', value: 1 }]; + let nameList = ['专业技能不足', '工具故障','设备维保','环境变化']; + let valueList = [{ name: '专业技能不足', value: 4 }, { name: '工具故障', value: 1 },{ name: '设备维保', value: 1 },{ name: '环境变化', value: 1 }]; const option = { grid: { top: 0,