数据分析

This commit is contained in:
cwchen 2025-07-23 15:18:23 +08:00
parent 81075a1aaa
commit 698d85f448
4 changed files with 186 additions and 146 deletions

View File

@ -30,6 +30,7 @@ body {
height: 100%;
padding: 2% 0;
box-sizing: border-box;
flex-direction: column;
}
.basic-search-box{

View File

@ -0,0 +1,166 @@
/** 工人效率分析数据*/
// 1512P017007Y01-凌云变 1612P021000T01-红枫变
let dataList = [{
bidCode: '1512P017007Y01',
list: [{
userName: '宋跃进',
teamName: '变电土建-朱润生3班',
postName: '组塔工',
attDay: 22,
workTime: 176,
completeWorkload: 15,
completeWorkloadUnit:'座',
unitTimeOutput: 0.085,
unitTimeOutputUnit: '座/小时',
rateLevel: '高效',
},
{
userName: '刘振',
teamName: '变电土建-朱润生3班',
postName: '导线压线工',
attDay: 22,
workTime: 176,
completeWorkload: 15,
completeWorkloadUnit:'座',
unitTimeOutput: 0.085,
unitTimeOutputUnit: '座/小时',
rateLevel: '高效',
},
{
userName: '黄照飞',
teamName: '变电土建-朱润生3班',
postName: '组塔工',
attDay: 22,
workTime: 176,
completeWorkload: 15,
completeWorkloadUnit:'座',
unitTimeOutput: 0.085,
unitTimeOutputUnit: '座/小时',
rateLevel: '高效',
},
{
userName: '王玉华',
teamName: '变电土建-朱润生3班',
postName: '组塔工',
attDay: 22,
workTime: 176,
completeWorkload: 15,
completeWorkloadUnit:'座',
unitTimeOutput: 0.085,
unitTimeOutputUnit: '座/小时',
rateLevel: '高效',
},
{
userName: '黄丹',
teamName: '变电土建-朱润生3班',
postName: '组塔工',
attDay: 22,
workTime: 176,
completeWorkload: 15,
completeWorkloadUnit:'座',
unitTimeOutput: 0.085,
unitTimeOutputUnit: '座/小时',
rateLevel: '高效',
},
{
userName: '赵光伟',
teamName: '变电土建-朱润生3班',
postName: '组塔工',
attDay: 22,
workTime: 176,
completeWorkload: 15,
completeWorkloadUnit:'座',
unitTimeOutput: 0.085,
unitTimeOutputUnit: '座/小时',
rateLevel: '高效',
},
{
userName: '刘磊',
teamName: '变电土建-朱润生3班',
postName: '组塔工',
attDay: 22,
workTime: 176,
completeWorkload: 15,
completeWorkloadUnit:'座',
unitTimeOutput: 0.085,
unitTimeOutputUnit: '座/小时',
rateLevel: '高效',
},
{
userName: '化苏碧',
teamName: '变电土建-朱润生3班',
postName: '组塔工',
attDay: 22,
workTime: 176,
completeWorkload: 15,
completeWorkloadUnit:'座',
unitTimeOutput: 0.085,
unitTimeOutputUnit: '座/小时',
rateLevel: '高效',
},
{
userName: '曹先应',
teamName: '变电土建-朱润生3班',
postName: '组塔工',
attDay: 22,
workTime: 176,
completeWorkload: 15,
completeWorkloadUnit:'座',
unitTimeOutput: 0.085,
unitTimeOutputUnit: '座/小时',
rateLevel: '高效',
},
{
userName: '陆乃怀',
teamName: '变电土建-朱润生3班',
postName: '组塔工',
attDay: 22,
workTime: 176,
completeWorkload: 15,
completeWorkloadUnit:'座',
unitTimeOutput: 0.085,
unitTimeOutputUnit: '座/小时',
rateLevel: '高效',
},
{
userName: '袁加纯',
teamName: '变电土建-朱润生3班',
postName: '组塔工',
attDay: 22,
workTime: 176,
completeWorkload: 15,
completeWorkloadUnit:'座',
unitTimeOutput: 0.085,
unitTimeOutputUnit: '座/小时',
rateLevel: '高效',
},
{
userName: '张友顺',
teamName: '变电土建-朱润生3班',
postName: '组塔工',
attDay: 22,
workTime: 176,
completeWorkload: 15,
completeWorkloadUnit:'座',
unitTimeOutput: 0.085,
unitTimeOutputUnit: '座/小时',
rateLevel: '高效',
}
]
},
{
bidCode: '1612P021000T01',
list: [{
userName: '宋跃进',
teamName: '变电土建-宋鹏2班',
postName: '组塔工',
attDay: 22,
workTime: 176,
completeWorkload: 15,
completeWorkloadUnit:'座',
unitTimeOutput: 0.085,
unitTimeOutputUnit: '座/小时',
rateLevel: '高效',
}]
}];

View File

@ -1,142 +1,3 @@
// 1512P017007Y01-凌云变 1612P021000T01-红枫变
let dataList = [{
bidCode: '1512P017007Y01',
list: [{
userName: '宋跃进',
teamName: '变电土建-朱润生3班',
postName: '组塔工',
attDay: 22,
workTime: 176,
completeWorkload: '15座',
unitTimeOutput: '0.085座/小时',
rateLevel: '高效',
},
{
userName: '刘振',
teamName: '变电土建-朱润生3班',
postName: '导线压线工',
attDay: 22,
workTime: 176,
completeWorkload: '15座',
unitTimeOutput: '0.085座/小时',
rateLevel: '高效',
},
{
userName: '黄照飞',
teamName: '变电土建-朱润生3班',
postName: '组塔工',
attDay: 22,
workTime: 176,
completeWorkload: '15座',
unitTimeOutput: '0.085座/小时',
rateLevel: '高效',
},
{
userName: '王玉华',
teamName: '变电土建-朱润生3班',
postName: '组塔工',
attDay: 22,
workTime: 176,
completeWorkload: '15座',
unitTimeOutput: '0.085座/小时',
rateLevel: '高效',
},
{
userName: '黄丹',
teamName: '变电土建-朱润生3班',
postName: '组塔工',
attDay: 22,
workTime: 176,
completeWorkload: '15座',
unitTimeOutput: '0.085座/小时',
rateLevel: '高效',
},
{
userName: '赵光伟',
teamName: '变电土建-朱润生3班',
postName: '组塔工',
attDay: 22,
workTime: 176,
completeWorkload: '15座',
unitTimeOutput: '0.085座/小时',
rateLevel: '高效',
},
{
userName: '刘磊',
teamName: '变电土建-朱润生3班',
postName: '组塔工',
attDay: 22,
workTime: 176,
completeWorkload: '15座',
unitTimeOutput: '0.085座/小时',
rateLevel: '高效',
},
{
userName: '化苏碧',
teamName: '变电土建-朱润生3班',
postName: '组塔工',
attDay: 22,
workTime: 176,
completeWorkload: '15座',
unitTimeOutput: '0.085座/小时',
rateLevel: '高效',
},
{
userName: '曹先应',
teamName: '变电土建-朱润生3班',
postName: '组塔工',
attDay: 22,
workTime: 176,
completeWorkload: '15座',
unitTimeOutput: '0.085座/小时',
rateLevel: '高效',
},
{
userName: '陆乃怀',
teamName: '变电土建-朱润生3班',
postName: '组塔工',
attDay: 22,
workTime: 176,
completeWorkload: '15座',
unitTimeOutput: '0.085座/小时',
rateLevel: '高效',
},
{
userName: '袁加纯',
teamName: '变电土建-朱润生3班',
postName: '组塔工',
attDay: 22,
workTime: 176,
completeWorkload: '15座',
unitTimeOutput: '0.085座/小时',
rateLevel: '高效',
},
{
userName: '张友顺',
teamName: '变电土建-朱润生3班',
postName: '组塔工',
attDay: 22,
workTime: 176,
completeWorkload: '15座',
unitTimeOutput: '0.085座/小时',
rateLevel: '高效',
}
]
},
{
bidCode: '1612P021000T01',
list: [{
userName: '宋跃进',
teamName: '变电土建-宋鹏2班',
postName: '组塔工',
attDay: 22,
workTime: 176,
completeWorkload: '15座',
unitTimeOutput: '0.085座/小时',
rateLevel: '高效',
}]
}];
let table, layer, form;
let myChart = null, myChart2 = null;
layui.use(['layer', 'table', 'form'], function () {
@ -170,8 +31,16 @@ function initTable(data) {
{ field: 'postName', title: '工种', align: 'center', width: '10%' },
{ field: 'attDay', title: '出勤天数', align: 'center', width: '10%' },
{ field: 'workTime', title: '工作时长', align: 'center', width: '10%' },
{ field: 'completeWorkload', title: '完成工作量', align: 'center', width: '15%' },
{ field: 'unitTimeOutput', title: '单位时间产量', align: 'center', width: '15%' },
{ field: 'completeWorkload', title: '完成工作量', align: 'center', width: '15%',
templet: function (d) {
return d.completeWorkload + d.completeWorkloadUnit;
}
},
{ field: 'unitTimeOutput', title: '单位时间产量', align: 'center', width: '15%',
templet: function (d) {
return d.unitTimeOutput + d.unitTimeOutputUnit;
}
},
{
field: 'rateLevel', title: '效率评级', align: 'center', width: '10%',
templet: function (d) {
@ -202,6 +71,7 @@ function initTable(data) {
})
table.on('rowDouble(demo2)', function (obj) {
console.log(obj.data);
initEcharts(obj.data);
});
}
@ -224,12 +94,14 @@ function query(type) {
}
// 初始化 echarts
function initEcharts() {
myChart.dispose();
myChart2.dispose();
function initEcharts(data) {
if(myChart && myChart2){
myChart.dispose();
myChart2.dispose();
}
myChart = echarts.init(document.getElementById("oneEcharts"));
myChart2 = echarts.init(document.getElementById("twoEcharts"));
initEchartsOne();
initEchartsOne(data);
}
function initEchartsOne() {

View File

@ -43,7 +43,7 @@
</div>
<table id="demo2" lay-filter="demo2"></table>
</div>
<div id="right-box">
<div id="right-box" class="layout">
<div id="oneEcharts">
</div>
@ -58,6 +58,7 @@
background-color: transparent !important;
}
</style>
<script src="../../js/pages/newDataAnalysis/datas.js" type="text/javascript"></script>
<script src="../../js/pages/newDataAnalysis/workerEfficiencyAnalysis.js" type="text/javascript"></script>
</html>