From 01c955be6775133747844230cb7e50af51caf3a9 Mon Sep 17 00:00:00 2001 From: cwchen <1048842385@qq.com> Date: Thu, 24 Jul 2025 11:25:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E4=BA=BA=E6=95=88=E7=8E=87=E5=88=86?= =?UTF-8?q?=E6=9E=90=E6=8F=90=E7=A4=BA=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/pages/newDataAnalysis/workerEfficiencyAnalysis.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/js/pages/newDataAnalysis/workerEfficiencyAnalysis.js b/js/pages/newDataAnalysis/workerEfficiencyAnalysis.js index 2d05800..0fe5eba 100644 --- a/js/pages/newDataAnalysis/workerEfficiencyAnalysis.js +++ b/js/pages/newDataAnalysis/workerEfficiencyAnalysis.js @@ -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('

建议:定期加强技能培训和考试,并且针对施工工具安排定期检查

'); + const randomIndex = Math.floor(Math.random() * tipsArr.length); // 生成 0~4 的随机整数 + const randomItem = tipsArr[randomIndex]; + $('#suggestion').append('

建议:'+randomItem+'

'); } }