diff --git a/api/commonRequest.js b/api/commonRequest.js index 27fe4d7..2654bf1 100644 --- a/api/commonRequest.js +++ b/api/commonRequest.js @@ -13,7 +13,7 @@ let aqEnnable = false; // 参数加密开关 const URL_IP = "http://127.0.0.1:13030/ah_jjzhgd_webscreen"; // const commonUrl = "http://192.168.0.38:13030/zhgd/"; -const commonUrl = "http://192.168.2.72:13030/zhgd/"; +const commonUrl = "http://127.0.0.1:13030/zhgd/"; // const commonUrl = "http://192.168.1.105:18080/zhgd/"; // const imgUrl = "http://192.168.0.38:13030/zhgd/file/files/"; const imgUrl = "http://sgwpdm.ah.sgcc.com.cn/zhgd/file/files/"; diff --git a/js/pages/newDataAnalysis/engineeringSafetyAnalysis.js b/js/pages/newDataAnalysis/engineeringSafetyAnalysis.js index 5fc09a1..17b9473 100644 --- a/js/pages/newDataAnalysis/engineeringSafetyAnalysis.js +++ b/js/pages/newDataAnalysis/engineeringSafetyAnalysis.js @@ -38,17 +38,17 @@ function initTable(bidCode,name) { { field: 'windSpeed', title: '风速', align: 'center', width: '8%' }, { field: 'gasValue', title: '气体值', align: 'center', width: '10%' }, { - field: 'rateLevel', title: '最高隐患等级', align: 'center', width: '8%', + field: 'rateLevel', title: '隐患', align: 'center', width: '8%', templet: function (d) { let color = ''; - if (d.level == "一般隐患") { - color = 'green'; - } else if (d.level == '较大隐患') { - color = 'yellow'; - } else if (d.level == '重大隐患') { - color = 'red'; - } - return '
' + d.level + '
'; + // if (d.level == "一般隐患") { + // color = 'green'; + // } else if (d.level == '较大隐患') { + // color = 'yellow'; + // } else if (d.level == '重大隐患') { + // color = 'red'; + // } + return '存在隐患
'; } }, { 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, diff --git a/pages/newDataAnalysis/engineeringSafetyAnalysis.html b/pages/newDataAnalysis/engineeringSafetyAnalysis.html index b8d2565..91d9641 100644 --- a/pages/newDataAnalysis/engineeringSafetyAnalysis.html +++ b/pages/newDataAnalysis/engineeringSafetyAnalysis.html @@ -32,11 +32,11 @@