This commit is contained in:
cwchen 2025-07-24 21:35:10 +08:00
parent 8b673816e6
commit d496cb81b4
1 changed files with 20 additions and 18 deletions

View File

@ -8,15 +8,6 @@ const tipsArr = [
'定期组织技能培训和考试,并做好施工工具的维护与定期检查工作。', '定期组织技能培训和考试,并做好施工工具的维护与定期检查工作。',
]; ];
// let
const inefficiencyArr = [
{
'gxName':'',
nameList:['专业技能不足', '工具故障','人员异常','设备维保','环境变化'],
valueList:[{ name: '专业技能不足', value: 4 }, { name: '工具故障', value: 1 }]
}
];
layui.use(['layer', 'table', 'form'], function () { layui.use(['layer', 'table', 'form'], function () {
layer = layui.layer; layer = layui.layer;
table = layui.table; table = layui.table;
@ -58,22 +49,33 @@ function initTable() {
userName: userName, userName: userName,
}, },
cols: [[ cols: [[
{ type: 'numbers', title: '序号', width: '10%' }, // 添加序号列 { type: 'numbers', title: '序号', width: '6%' }, // 添加序号列
{ field: 'userName', title: '班组长', align: 'center', width: '10%' }, { field: 'userName', title: '班组长', align: 'center', width: '10%' },
{ field: 'teamName', title: '班组', align: 'center', width: '15%' }, { 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 '<span title="' + d.gxName + '">' + d.gxName.substring(0, 100) + '...</span>'
} else {
return '<span title="' + d.gxName + '">' + d.gxName + '</span>'
}
} 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) { templet: function (d) {
if (d.workStandard) { if (d.workStandard) {
if (d.workStandard.length > 60) { if (d.workStandard.length > 60) {
@ -86,7 +88,7 @@ function initTable() {
} }
} }
}, }, */
{ {
title: '效率评级', align: 'center', width: '10%', title: '效率评级', align: 'center', width: '10%',
templet: function (d) { templet: function (d) {
@ -399,8 +401,8 @@ function initEchartsOne(obj) {
/* 变化趋势 */ /* 变化趋势 */
function initEchartsTwo(data) { function initEchartsTwo(data) {
let nameList = ['专业技能不足', '工具故障','人员异常','设备维保','环境变化']; let nameList = ['专业技能不足', '工具故障','设备维保','环境变化'];
let valueList = [{ name: '专业技能不足', value: 4 }, { name: '工具故障', value: 1 }]; let valueList = [{ name: '专业技能不足', value: 4 }, { name: '工具故障', value: 1 },{ name: '设备维保', value: 1 },{ name: '环境变化', value: 1 }];
const option = { const option = {
grid: { grid: {
top: 0, top: 0,