From d496cb81b464a031da3df0e12ca5126883ac075b Mon Sep 17 00:00:00 2001
From: cwchen <1048842385@qq.com>
Date: Thu, 24 Jul 2025 21:35:10 +0800
Subject: [PATCH] =?UTF-8?q?=E5=88=86=E6=9E=90?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../workerEfficiencyAnalysis.js | 38 ++++++++++---------
1 file changed, 20 insertions(+), 18 deletions(-)
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,