diff --git a/js/pages/newDataAnalysis/engineeringSafetyAnalysis.js b/js/pages/newDataAnalysis/engineeringSafetyAnalysis.js index 963100b..5fc09a1 100644 --- a/js/pages/newDataAnalysis/engineeringSafetyAnalysis.js +++ b/js/pages/newDataAnalysis/engineeringSafetyAnalysis.js @@ -33,10 +33,10 @@ function initTable(bidCode,name) { { field: 'workLocation', title: '作业地点', align: 'center', width: '10%' }, { field: 'monitoringPointId', title: '监测点编号', align: 'center', width: '10%' }, { field: 'name', title: '监测点名称', align: 'center', width: '10%' }, - { field: 'temperature', title: '当前平均温度', align: 'center', width: '8%' }, - { field: 'humidity', title: '当前平均湿度', align: 'center', width: '8%' }, - { field: 'windSpeed', title: '当前平均风速', align: 'center', width: '8%' }, - { field: 'gasValue', title: '当前平均气体值', align: 'center', width: '10%' }, + { field: 'temperature', title: '温度', align: 'center', width: '8%' }, + { field: 'humidity', title: '湿度', align: 'center', width: '8%' }, + { field: 'windSpeed', title: '风速', align: 'center', width: '8%' }, + { field: 'gasValue', title: '气体值', align: 'center', width: '10%' }, { field: 'rateLevel', title: '最高隐患等级', align: 'center', width: '8%', templet: function (d) { @@ -144,6 +144,14 @@ function initEchartsOne(data) { tooltip: { trigger: 'axis' }, + title: { + text: '异常检测', // 标题文本 + left: 'left', // 标题位置,可以是 'left', 'right', 'center' + textStyle: { + color: '#fff', // 标题颜色 + fontSize: 18, // 字体大小 + }, + }, legend: { data: ['温度', '湿度', '风速'], textStyle: { @@ -155,7 +163,11 @@ function initEchartsOne(data) { data: dates, axisLabel: { color: "#fff", // X轴标签白色 - fontSize: 10, + formatter: function(value) { + // 假设 value 是 "2025-07-24" 格式的字符串 + // 你可以根据需要进行格式化,例如换行显示 + return value.split('-').join('\n'); // 将日期字符串按 "-" 分割,并用换行符连接 + } }, axisLine: { lineStyle: { diff --git a/js/pages/newDataAnalysis/proQualityAnalysis.js b/js/pages/newDataAnalysis/proQualityAnalysis.js index c57e0d8..36064ed 100644 --- a/js/pages/newDataAnalysis/proQualityAnalysis.js +++ b/js/pages/newDataAnalysis/proQualityAnalysis.js @@ -155,7 +155,7 @@ function initTable(type, bidCode) { // 工程质量分析 return [ { type: "numbers", title: "序号", width: "10%" }, // 添加序号列 - { field: "projectName", title: "工程名称", align: "center" }, + { field: "checkItems", title: "检查项目", align: "center" }, { field: "projectManager", title: "项目经理", align: "center" }, { field: "team", title: "施工队伍", align: "center" }, { field: "startTime", title: "开始时间", align: "center" }, @@ -291,12 +291,12 @@ function initEchartsOne(passRate, noPassRate) { } function initEchartsTwo(data) { - const teams = data.map((item) => item.team); + const teams = data.map((item) => item.checkItems); const scores = data.map((item) => item.score); const option = { title: { - text: "队伍得分柱状图", + text: "检查项目得分情况", left: "center", textStyle: { color: "#fff", diff --git a/js/pages/newDataAnalysis/projectManagement.js b/js/pages/newDataAnalysis/projectManagement.js index 10477b8..8d900ca 100644 --- a/js/pages/newDataAnalysis/projectManagement.js +++ b/js/pages/newDataAnalysis/projectManagement.js @@ -190,12 +190,12 @@ function setCols(type) { return [ { type: "numbers", title: "序号", width: "10%" }, // 添加序号列 { - field: "taskName", + field: "proName", title: "工程名称", align: "center", }, { - field: "projectNumber", + field: "taskName", title: "任务名称", align: "center", }, @@ -224,19 +224,19 @@ function setCols(type) { title: "实际成本", align: "center", }, - { - title: "风险等级", - align: "center", - templet: (d) => { - let text = ""; - text += - '' + - d.riskLevel + - "级" + - ""; - return text; - }, - }, + // { + // title: "风险等级", + // align: "center", + // templet: (d) => { + // let text = ""; + // text += + // '' + + // d.riskLevel + + // "级" + + // ""; + // return text; + // }, + // }, { title: "风险数量", align: "center", @@ -249,11 +249,11 @@ function setCols(type) { return text; }, }, - { - field: "suggestion", - title: "建议策略", - align: "center", - }, + // { + // field: "suggestion", + // title: "建议策略", + // align: "center", + // }, { title: "操作", align: "center", @@ -276,7 +276,7 @@ function setCols2(type) { { type: "numbers", title: "序号", width: "10%" }, // 添加序号列 { field: "proPart", - title: "工程部位", + title: "工序名称", align: "center", }, { @@ -375,7 +375,7 @@ function initTable(type, bidCode) { tableData = res.rows; barData = tableData.map((item) => { - return item.taskName; + return item.proName; }); barData_1 = tableData.map((item) => { return item.actualCost; @@ -562,6 +562,7 @@ function initTable(type, bidCode) { } $(".chart-box").hide(); +$(".chart-box2").hide(); $(".list-view").click(function () { if ($(this).hasClass("active")) return; @@ -715,8 +716,10 @@ function initPieChart() { type: "category", data: barData, axisLabel: { - color: "#fff", // x轴文字颜色设为白色 + color: "#fff", fontSize: 12, + interval: 0, // 强制显示所有标签 + rotate: barData.length > 5 ? 30 : 0, // 如果项目多就旋转标签 }, axisLine: { lineStyle: { diff --git a/js/pages/newDataAnalysis/projectProgress.js b/js/pages/newDataAnalysis/projectProgress.js index 2b57d8a..6f0a89c 100644 --- a/js/pages/newDataAnalysis/projectProgress.js +++ b/js/pages/newDataAnalysis/projectProgress.js @@ -157,11 +157,11 @@ function initTable(type, bidCode) { "
延误原因:" + rowData.delayActor + "
" + - "
其他原因:" + - data1[index] + + "
延误对策:" + + rowData.delayPolicy + "
" + "
分析结果:" + - data2[index] + + rowData.analyzeResult + "
" + "
", area: ["600px", "300px"], diff --git a/pages/newDataAnalysis/energySavingAnalysis.html b/pages/newDataAnalysis/energySavingAnalysis.html index f192519..6ab781c 100644 --- a/pages/newDataAnalysis/energySavingAnalysis.html +++ b/pages/newDataAnalysis/energySavingAnalysis.html @@ -158,14 +158,14 @@

设备能耗占比

-
+
-

节能减排措施落实情况

-
+

设备节能占比

+

能耗异常分析

@@ -179,6 +179,8 @@ diff --git a/pages/newDataAnalysis/exception-detail.html b/pages/newDataAnalysis/exception-detail.html index 23ad64a..fbe1c53 100644 --- a/pages/newDataAnalysis/exception-detail.html +++ b/pages/newDataAnalysis/exception-detail.html @@ -78,10 +78,9 @@ -