工人效率分析提示修改

This commit is contained in:
cwchen 2025-07-24 11:25:35 +08:00
parent 8b5afaf6a4
commit 01c955be67
1 changed files with 10 additions and 1 deletions

View File

@ -1,5 +1,12 @@
let table, layer, form;
let myChart = null, myChart2 = null;
const tipsArr = [
'定期开展技能培训与考核,并对施工工具进行例行检查,确保安全与效率。',
'加强技能培训,定期组织考试,同时落实施工工具的日常检查制度。',
'定期安排技能培训及考核,并严格执行施工工具的定期检查管理。',
'持续强化技能培训与考核,同时确保施工工具按时检查,保障作业安全。',
'定期组织技能培训和考试,并做好施工工具的维护与定期检查工作。',
];
layui.use(['layer', 'table', 'form'], function () {
layer = layui.layer;
table = layui.table;
@ -141,7 +148,9 @@ function initEcharts(data) {
let unitTimeOutput = parseFloat(data.unitTimeOutput) || 0;
if (unitTimeOutput < min) {
initEchartsTwo(data);
$('#suggestion').append('<p>建议:定期加强技能培训和考试,并且针对施工工具安排定期检查</p>');
const randomIndex = Math.floor(Math.random() * tipsArr.length); // 生成 0~4 的随机整数
const randomItem = tipsArr[randomIndex];
$('#suggestion').append('<p>建议:'+randomItem+'</p>');
}
}