2025-10-18 15:55:58 +08:00
|
|
|
let table, layer, form, laydate;
|
2025-10-14 18:16:49 +08:00
|
|
|
let fontSize = '14', fontFamily = 'Alibaba PuHuiTi R', fontColor = '#fff';
|
|
|
|
|
|
2025-10-18 15:55:58 +08:00
|
|
|
layui.use(["layer", "table", "form", "laydate"], function () {
|
2025-10-14 18:16:49 +08:00
|
|
|
layer = layui.layer;
|
|
|
|
|
table = layui.table;
|
|
|
|
|
form = layui.form;
|
|
|
|
|
|
2025-10-18 15:55:58 +08:00
|
|
|
laydate = layui.laydate;
|
|
|
|
|
laydate.render({
|
|
|
|
|
elem: "#ID-laydate-rangeLinked",
|
|
|
|
|
range: ["#ID-laydate-start-date-1", "#ID-laydate-end-date-1"],
|
|
|
|
|
rangeLinked: true, // 开启日期范围选择时的区间联动标注模式 --- 2.8+ 新增
|
|
|
|
|
});
|
2025-10-14 18:16:49 +08:00
|
|
|
|
2025-10-18 15:55:58 +08:00
|
|
|
$("#ID-laydate-start-date-1").val(getNowTime())
|
|
|
|
|
$("#ID-laydate-end-date-1").val(getNowTime())
|
2025-10-14 18:16:49 +08:00
|
|
|
|
2025-10-18 15:55:58 +08:00
|
|
|
let startTime = "";
|
|
|
|
|
let endTime = "";
|
|
|
|
|
if ($("#ID-laydate-start-date-1").val() != "") {
|
|
|
|
|
startTime = $("#ID-laydate-start-date-1").val();
|
|
|
|
|
endTime = $("#ID-laydate-end-date-1").val();
|
|
|
|
|
} else {
|
|
|
|
|
startTime = "";
|
|
|
|
|
endTime = "";
|
|
|
|
|
}
|
|
|
|
|
getProProgress(startTime, endTime);
|
2025-10-14 18:16:49 +08:00
|
|
|
});
|
|
|
|
|
|
2025-10-18 15:55:58 +08:00
|
|
|
function query() {
|
|
|
|
|
let startTime = "";
|
|
|
|
|
let endTime = "";
|
|
|
|
|
if ($("#ID-laydate-start-date-1").val() != "") {
|
|
|
|
|
startTime = $("#ID-laydate-start-date-1").val();
|
|
|
|
|
endTime = $("#ID-laydate-end-date-1").val();
|
|
|
|
|
} else {
|
|
|
|
|
startTime = "";
|
|
|
|
|
endTime = "";
|
|
|
|
|
}
|
|
|
|
|
getProProgress(startTime, endTime);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function getProProgress(startTime, endTime) {
|
|
|
|
|
const url =
|
|
|
|
|
commonUrl +
|
|
|
|
|
"screen/proProgress/selectProProgress?startTime=" + startTime + "&endTime=" + endTime;
|
|
|
|
|
ajaxRequestGet(
|
|
|
|
|
url,
|
|
|
|
|
"GET",
|
|
|
|
|
true,
|
|
|
|
|
function () {
|
|
|
|
|
},
|
|
|
|
|
function (result) {
|
|
|
|
|
if (result.code === 200) {
|
|
|
|
|
setData(result.data);
|
|
|
|
|
} else if (result.code === 500) {
|
|
|
|
|
console.error("实时监测" + result.msg);
|
|
|
|
|
setData(null);
|
|
|
|
|
} else if (result.code === 401) {
|
|
|
|
|
loginout(1);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
function (xhr, status, error) {
|
|
|
|
|
errorFn(xhr, status, error);
|
|
|
|
|
setData(null);
|
|
|
|
|
},
|
|
|
|
|
aqEnnable
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
/* 实时检测赋值 */
|
|
|
|
|
function setData(data) {
|
|
|
|
|
if (data) {
|
|
|
|
|
var civilEngineeringData = data["变电土建专业"];
|
|
|
|
|
if (civilEngineeringData) {
|
|
|
|
|
var civilEngineeringEchartsData = civilEngineeringData["echarts"];
|
|
|
|
|
getCivilEngineering(civilEngineeringEchartsData)
|
|
|
|
|
var civilEngineeringPercentData = civilEngineeringData["percent"];
|
|
|
|
|
initCivilEngineeringPercent(civilEngineeringPercentData)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var electricalData = data["变电电气专业"];
|
|
|
|
|
if (electricalData) {
|
|
|
|
|
var electricalEchartsData = electricalData["echarts"];
|
|
|
|
|
getElectrical(electricalEchartsData)
|
|
|
|
|
var electricalPercentData =electricalData["percent"];
|
|
|
|
|
initElectricalPercentPercent(electricalPercentData)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function getCivilEngineering(civilEngineeringEchartsData) {
|
|
|
|
|
let date = []
|
|
|
|
|
let plannedCount = []
|
|
|
|
|
let actualCount = []
|
|
|
|
|
if (civilEngineeringEchartsData) {
|
|
|
|
|
for (let i = 0; i < civilEngineeringEchartsData.length; i++) {
|
|
|
|
|
date.push(civilEngineeringEchartsData[i].date)
|
|
|
|
|
plannedCount.push(civilEngineeringEchartsData[i].plannedCount)
|
|
|
|
|
actualCount.push(civilEngineeringEchartsData[i].actualCount)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
initCivilEngineering(date, plannedCount, actualCount)
|
2025-10-14 18:16:49 +08:00
|
|
|
}
|
|
|
|
|
|
2025-10-18 15:55:58 +08:00
|
|
|
function getElectrical(electricalEchartsData) {
|
|
|
|
|
let date = []
|
|
|
|
|
let plannedCount = []
|
|
|
|
|
let actualCount = []
|
|
|
|
|
if (electricalEchartsData) {
|
|
|
|
|
for (let i = 0; i < electricalEchartsData.length; i++) {
|
|
|
|
|
date.push(electricalEchartsData[i].date)
|
|
|
|
|
plannedCount.push(electricalEchartsData[i].plannedCount)
|
|
|
|
|
actualCount.push(electricalEchartsData[i].actualCount)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
initElectrical(date, plannedCount, actualCount)
|
2025-10-14 18:16:49 +08:00
|
|
|
}
|
|
|
|
|
|
2025-10-18 15:55:58 +08:00
|
|
|
// 初始化
|
|
|
|
|
function initCivilEngineering(date, plannedCount, actualCount) {
|
2025-10-14 18:16:49 +08:00
|
|
|
const leftChart = echarts.init(document.getElementById("civilEngineering"));
|
2025-10-18 15:55:58 +08:00
|
|
|
const option = {
|
2025-10-14 18:16:49 +08:00
|
|
|
tooltip: {
|
2025-10-18 15:55:58 +08:00
|
|
|
show: true,
|
2025-10-14 18:16:49 +08:00
|
|
|
trigger: 'axis',
|
|
|
|
|
axisPointer: {
|
|
|
|
|
type: 'shadow',
|
|
|
|
|
},
|
|
|
|
|
borderColor: 'rgba(255,255,255,.3)',
|
|
|
|
|
backgroundColor: 'rgba(19,51,55,.6)',
|
|
|
|
|
textStyle: {
|
|
|
|
|
color: 'white', //设置文字颜色
|
|
|
|
|
},
|
|
|
|
|
borderWidth: 1,
|
|
|
|
|
padding: 10,
|
|
|
|
|
},
|
|
|
|
|
legend: {
|
2025-10-18 15:55:58 +08:00
|
|
|
show: true,
|
|
|
|
|
top: 45,
|
|
|
|
|
right: 50,
|
|
|
|
|
textStyle: {
|
|
|
|
|
color: '#ffffff'
|
2025-10-14 18:16:49 +08:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
grid: {
|
|
|
|
|
top: '35%',
|
|
|
|
|
left: '8%',
|
|
|
|
|
right: '4%',
|
|
|
|
|
bottom: '15%'
|
|
|
|
|
},
|
|
|
|
|
xAxis: [
|
|
|
|
|
{
|
|
|
|
|
type: 'category',
|
|
|
|
|
boundaryGap: true,
|
|
|
|
|
axisLine: {
|
|
|
|
|
//坐标轴轴线相关设置。数学上的x轴
|
|
|
|
|
show: true,
|
|
|
|
|
lineStyle: {
|
|
|
|
|
color: '#5A6E71',
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
axisLabel: {
|
|
|
|
|
//坐标轴刻度标签的相关设置
|
|
|
|
|
textStyle: {
|
|
|
|
|
color: fontColor,
|
|
|
|
|
fontSize: fontSize,
|
|
|
|
|
fontFamily: fontFamily
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
splitLine: {
|
|
|
|
|
show: false,
|
|
|
|
|
lineStyle: {
|
|
|
|
|
color: '#233653',
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
axisTick: {
|
|
|
|
|
show: true,
|
|
|
|
|
},
|
2025-10-18 15:55:58 +08:00
|
|
|
data: date,
|
2025-10-14 18:16:49 +08:00
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
yAxis: [{
|
|
|
|
|
min: 0,
|
|
|
|
|
splitNumber: 10,
|
|
|
|
|
splitLine: {
|
|
|
|
|
show: true,
|
|
|
|
|
lineStyle: {
|
|
|
|
|
color: 'rgba(255,255,255,0.6)',
|
|
|
|
|
type: 'dashed',
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
axisLine: {
|
|
|
|
|
show: false,
|
|
|
|
|
},
|
|
|
|
|
axisLabel: {
|
|
|
|
|
show: true,
|
|
|
|
|
textStyle: {
|
|
|
|
|
color: 'rgba(255,255,255,0.8)',
|
|
|
|
|
padding: 16
|
|
|
|
|
},
|
2025-10-18 15:55:58 +08:00
|
|
|
formatter: function (value) {
|
2025-10-14 18:16:49 +08:00
|
|
|
if (value === 0) {
|
|
|
|
|
return value
|
|
|
|
|
}
|
|
|
|
|
return value
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
axisTick: {
|
|
|
|
|
show: false,
|
|
|
|
|
},
|
|
|
|
|
}],
|
2025-10-18 17:19:35 +08:00
|
|
|
"dataZoom": [{
|
|
|
|
|
"show": true,
|
|
|
|
|
"height": 12,
|
|
|
|
|
"xAxisIndex": [
|
|
|
|
|
0
|
|
|
|
|
],
|
|
|
|
|
bottom:'8%',
|
|
|
|
|
"start": 10,
|
|
|
|
|
"end": 90,
|
|
|
|
|
handleIcon: 'path://M306.1,413c0,2.2-1.8,4-4,4h-59.8c-2.2,0-4-1.8-4-4V200.8c0-2.2,1.8-4,4-4h59.8c2.2,0,4,1.8,4,4V413z',
|
|
|
|
|
handleSize: '110%',
|
|
|
|
|
handleStyle:{
|
|
|
|
|
color:"#d3dee5",
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
textStyle:{
|
|
|
|
|
color:"#fff"},
|
|
|
|
|
borderColor:"#90979c"
|
|
|
|
|
}, {
|
|
|
|
|
"type": "inside",
|
|
|
|
|
"show": true,
|
|
|
|
|
"height": 15,
|
|
|
|
|
"start": 1,
|
|
|
|
|
"end": 35
|
|
|
|
|
}],
|
2025-10-14 18:16:49 +08:00
|
|
|
series: [{
|
2025-10-18 15:55:58 +08:00
|
|
|
name: '计划',
|
2025-10-14 18:16:49 +08:00
|
|
|
type: 'line',
|
|
|
|
|
symbol: 'circle',
|
|
|
|
|
showAllSymbol: true,
|
|
|
|
|
symbolSize: 0,
|
|
|
|
|
smooth: true,
|
|
|
|
|
lineStyle: {
|
|
|
|
|
normal: {
|
|
|
|
|
width: 2,
|
|
|
|
|
color: "#00FEFC",
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
itemStyle: {
|
|
|
|
|
color: "#00FEFC",
|
|
|
|
|
borderWidth: 2
|
|
|
|
|
},
|
|
|
|
|
tooltip: {
|
|
|
|
|
show: true
|
|
|
|
|
},
|
|
|
|
|
areaStyle: {
|
|
|
|
|
normal: {
|
|
|
|
|
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
|
|
|
|
|
offset: 0,
|
|
|
|
|
color: "rgba(18,86,100,0.6)"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
offset: 1,
|
|
|
|
|
color: "rgba(16,72,81, 0.7)"
|
|
|
|
|
}
|
|
|
|
|
], false),
|
|
|
|
|
shadowColor: 'rgba(15,55,63, 0.8)',
|
|
|
|
|
shadowBlur: 20
|
|
|
|
|
}
|
|
|
|
|
},
|
2025-10-18 15:55:58 +08:00
|
|
|
data: plannedCount
|
2025-10-14 18:16:49 +08:00
|
|
|
}, {
|
2025-10-18 15:55:58 +08:00
|
|
|
name: '实际',
|
2025-10-14 18:16:49 +08:00
|
|
|
type: 'line',
|
|
|
|
|
symbol: 'circle',
|
|
|
|
|
showAllSymbol: true,
|
|
|
|
|
symbolSize: 0,
|
|
|
|
|
smooth: true,
|
|
|
|
|
lineStyle: {
|
|
|
|
|
normal: {
|
|
|
|
|
width: 2,
|
|
|
|
|
color: "rgba(25,196,134, 1)",
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
itemStyle: {
|
|
|
|
|
color: "rgba(25,196,134, 1)",
|
|
|
|
|
borderWidth: 2
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
tooltip: {
|
|
|
|
|
show: true
|
|
|
|
|
},
|
|
|
|
|
areaStyle: {
|
|
|
|
|
normal: {
|
|
|
|
|
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
|
|
|
|
|
offset: 0,
|
|
|
|
|
color: "rgba(17,95,82, 0.6)"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
offset: 1,
|
|
|
|
|
color: "rgba(16,72,67, 0.7)"
|
|
|
|
|
}
|
|
|
|
|
], false),
|
|
|
|
|
shadowColor: 'rgba(15,55,54, 0.8)',
|
|
|
|
|
shadowBlur: 20
|
|
|
|
|
}
|
|
|
|
|
},
|
2025-10-18 15:55:58 +08:00
|
|
|
data: actualCount
|
2025-10-14 18:16:49 +08:00
|
|
|
}]
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
leftChart.setOption(option);
|
|
|
|
|
// 响应式调整
|
|
|
|
|
window.addEventListener("resize", function () {
|
|
|
|
|
leftChart.resize();
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
2025-10-18 15:55:58 +08:00
|
|
|
// 初始化
|
|
|
|
|
function initElectrical(date, plannedCount, actualCount) {
|
2025-10-14 18:16:49 +08:00
|
|
|
const leftChart = echarts.init(document.getElementById("electrical"));
|
2025-10-18 15:55:58 +08:00
|
|
|
const option = {
|
2025-10-14 18:16:49 +08:00
|
|
|
tooltip: {
|
2025-10-18 15:55:58 +08:00
|
|
|
show: true,
|
2025-10-14 18:16:49 +08:00
|
|
|
trigger: 'axis',
|
|
|
|
|
axisPointer: {
|
|
|
|
|
type: 'shadow',
|
|
|
|
|
},
|
|
|
|
|
borderColor: 'rgba(255,255,255,.3)',
|
|
|
|
|
backgroundColor: 'rgba(19,51,55,.6)',
|
|
|
|
|
textStyle: {
|
|
|
|
|
color: 'white', //设置文字颜色
|
|
|
|
|
},
|
|
|
|
|
borderWidth: 1,
|
|
|
|
|
padding: 10,
|
|
|
|
|
},
|
|
|
|
|
legend: {
|
2025-10-18 15:55:58 +08:00
|
|
|
show: true,
|
|
|
|
|
top: 45,
|
|
|
|
|
right: 50,
|
|
|
|
|
textStyle: {
|
|
|
|
|
color: '#ffffff'
|
2025-10-14 18:16:49 +08:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
grid: {
|
|
|
|
|
top: '35%',
|
|
|
|
|
left: '8%',
|
|
|
|
|
right: '4%',
|
|
|
|
|
bottom: '15%'
|
|
|
|
|
},
|
|
|
|
|
xAxis: [
|
|
|
|
|
{
|
|
|
|
|
type: 'category',
|
|
|
|
|
boundaryGap: true,
|
|
|
|
|
axisLine: {
|
|
|
|
|
//坐标轴轴线相关设置。数学上的x轴
|
|
|
|
|
show: true,
|
|
|
|
|
lineStyle: {
|
|
|
|
|
color: '#5A6E71',
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
axisLabel: {
|
|
|
|
|
//坐标轴刻度标签的相关设置
|
|
|
|
|
textStyle: {
|
|
|
|
|
color: fontColor,
|
|
|
|
|
fontSize: fontSize,
|
|
|
|
|
fontFamily: fontFamily
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
splitLine: {
|
|
|
|
|
show: false,
|
|
|
|
|
lineStyle: {
|
|
|
|
|
color: '#233653',
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
axisTick: {
|
|
|
|
|
show: true,
|
|
|
|
|
},
|
2025-10-18 15:55:58 +08:00
|
|
|
data: date,
|
2025-10-14 18:16:49 +08:00
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
yAxis: [{
|
|
|
|
|
min: 0,
|
|
|
|
|
splitNumber: 10,
|
|
|
|
|
splitLine: {
|
|
|
|
|
show: true,
|
|
|
|
|
lineStyle: {
|
|
|
|
|
color: 'rgba(255,255,255,0.6)',
|
|
|
|
|
type: 'dashed',
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
axisLine: {
|
|
|
|
|
show: false,
|
|
|
|
|
},
|
|
|
|
|
axisLabel: {
|
|
|
|
|
show: true,
|
|
|
|
|
textStyle: {
|
|
|
|
|
color: 'rgba(255,255,255,0.8)',
|
|
|
|
|
padding: 16
|
|
|
|
|
},
|
2025-10-18 15:55:58 +08:00
|
|
|
formatter: function (value) {
|
2025-10-14 18:16:49 +08:00
|
|
|
if (value === 0) {
|
|
|
|
|
return value
|
|
|
|
|
}
|
|
|
|
|
return value
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
axisTick: {
|
|
|
|
|
show: false,
|
|
|
|
|
},
|
|
|
|
|
}],
|
2025-10-18 17:19:35 +08:00
|
|
|
"dataZoom": [{
|
|
|
|
|
"show": true,
|
|
|
|
|
"height": 12,
|
|
|
|
|
"xAxisIndex": [
|
|
|
|
|
0
|
|
|
|
|
],
|
|
|
|
|
bottom:'8%',
|
|
|
|
|
"start": 10,
|
|
|
|
|
"end": 90,
|
|
|
|
|
handleIcon: 'path://M306.1,413c0,2.2-1.8,4-4,4h-59.8c-2.2,0-4-1.8-4-4V200.8c0-2.2,1.8-4,4-4h59.8c2.2,0,4,1.8,4,4V413z',
|
|
|
|
|
handleSize: '110%',
|
|
|
|
|
handleStyle:{
|
|
|
|
|
color:"#d3dee5",
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
textStyle:{
|
|
|
|
|
color:"#fff"},
|
|
|
|
|
borderColor:"#90979c"
|
|
|
|
|
}, {
|
|
|
|
|
"type": "inside",
|
|
|
|
|
"show": true,
|
|
|
|
|
"height": 15,
|
|
|
|
|
"start": 1,
|
|
|
|
|
"end": 35
|
|
|
|
|
}],
|
2025-10-14 18:16:49 +08:00
|
|
|
series: [{
|
2025-10-18 15:55:58 +08:00
|
|
|
name: '计划',
|
2025-10-14 18:16:49 +08:00
|
|
|
type: 'line',
|
|
|
|
|
symbol: 'circle',
|
|
|
|
|
showAllSymbol: true,
|
|
|
|
|
symbolSize: 0,
|
|
|
|
|
smooth: true,
|
|
|
|
|
lineStyle: {
|
|
|
|
|
normal: {
|
|
|
|
|
width: 2,
|
|
|
|
|
color: "#00FEFC",
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
itemStyle: {
|
|
|
|
|
color: "#00FEFC",
|
|
|
|
|
borderWidth: 2
|
|
|
|
|
},
|
|
|
|
|
tooltip: {
|
|
|
|
|
show: true
|
|
|
|
|
},
|
|
|
|
|
areaStyle: {
|
|
|
|
|
normal: {
|
|
|
|
|
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
|
|
|
|
|
offset: 0,
|
|
|
|
|
color: "rgba(18,86,100,0.6)"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
offset: 1,
|
|
|
|
|
color: "rgba(16,72,81, 0.7)"
|
|
|
|
|
}
|
|
|
|
|
], false),
|
|
|
|
|
shadowColor: 'rgba(15,55,63, 0.8)',
|
|
|
|
|
shadowBlur: 20
|
|
|
|
|
}
|
|
|
|
|
},
|
2025-10-18 15:55:58 +08:00
|
|
|
data: plannedCount
|
2025-10-14 18:16:49 +08:00
|
|
|
}, {
|
2025-10-18 15:55:58 +08:00
|
|
|
name: '实际',
|
2025-10-14 18:16:49 +08:00
|
|
|
type: 'line',
|
|
|
|
|
symbol: 'circle',
|
|
|
|
|
showAllSymbol: true,
|
|
|
|
|
symbolSize: 0,
|
|
|
|
|
smooth: true,
|
|
|
|
|
lineStyle: {
|
|
|
|
|
normal: {
|
|
|
|
|
width: 2,
|
|
|
|
|
color: "rgba(25,196,134, 1)",
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
itemStyle: {
|
|
|
|
|
color: "rgba(25,196,134, 1)",
|
|
|
|
|
borderWidth: 2
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
tooltip: {
|
|
|
|
|
show: true
|
|
|
|
|
},
|
|
|
|
|
areaStyle: {
|
|
|
|
|
normal: {
|
|
|
|
|
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
|
|
|
|
|
offset: 0,
|
|
|
|
|
color: "rgba(17,95,82, 0.6)"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
offset: 1,
|
|
|
|
|
color: "rgba(16,72,67, 0.7)"
|
|
|
|
|
}
|
|
|
|
|
], false),
|
|
|
|
|
shadowColor: 'rgba(15,55,54, 0.8)',
|
|
|
|
|
shadowBlur: 20
|
|
|
|
|
}
|
|
|
|
|
},
|
2025-10-18 15:55:58 +08:00
|
|
|
data: actualCount
|
2025-10-14 18:16:49 +08:00
|
|
|
}]
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
leftChart.setOption(option);
|
|
|
|
|
// 响应式调整
|
|
|
|
|
window.addEventListener("resize", function () {
|
|
|
|
|
leftChart.resize();
|
|
|
|
|
});
|
|
|
|
|
}
|
2025-10-18 15:55:58 +08:00
|
|
|
|
|
|
|
|
function initCivilEngineeringPercent(civilEngineeringPercentData) {
|
|
|
|
|
let civilEngineeringPercent = document.getElementById('civilEngineeringPercent');
|
|
|
|
|
if (civilEngineeringPercentData) {
|
|
|
|
|
civilEngineeringPercentData.forEach(item => {
|
|
|
|
|
const html = `
|
|
|
|
|
<div class="border">
|
|
|
|
|
<div class="title">
|
|
|
|
|
0${item.id} ${item.proGx}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="progress-group">
|
|
|
|
|
<div class="label">计划 ${item.planStartTime} ~ ${item.planEndTime} / 共${item.planDays}天</div>
|
|
|
|
|
<div class="progress-bar-container">
|
|
|
|
|
<div class="percentage-box">计划</div>
|
|
|
|
|
<div class="progress-bar-container-box">
|
|
|
|
|
<div class="progress-bar-box" style="width: ${item.planPercent}%;"></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="percentage-box">${item.planPercent}%</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="progress-group">
|
|
|
|
|
<div class="label">实际 ${item.startTime} ~ ${item.endTime} / 共${item.actualDays}天</div>
|
|
|
|
|
<div class="progress-bar-container">
|
|
|
|
|
<div class="percentage-box">实际</div>
|
|
|
|
|
<div class="progress-bar-container-box">
|
|
|
|
|
<div class="progress-bar-box-sj" style="width: ${item.actualPercent}%;"></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="percentage-box">${item.actualPercent}%</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
`;
|
|
|
|
|
civilEngineeringPercent.insertAdjacentHTML('beforeend', html);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function initElectricalPercentPercent(electricalPercentData) {
|
|
|
|
|
let electricalPercent = document.getElementById('electricalPercent');
|
|
|
|
|
if (electricalPercentData) {
|
|
|
|
|
electricalPercentData.forEach(item => {
|
|
|
|
|
const html = `
|
|
|
|
|
<div class="border">
|
|
|
|
|
<div class="title">
|
|
|
|
|
0${item.id} ${item.proGx}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="progress-group">
|
|
|
|
|
<div class="label">计划 ${item.planStartTime} ~ ${item.planEndTime} / 共${item.planDays}天</div>
|
|
|
|
|
<div class="progress-bar-container">
|
|
|
|
|
<div class="percentage-box">计划</div>
|
|
|
|
|
<div class="progress-bar-container-box">
|
|
|
|
|
<div class="progress-bar-box" style="width: ${item.planPercent}%;"></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="percentage-box">${item.planPercent}%</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="progress-group">
|
|
|
|
|
<div class="label">实际 ${item.startTime} ~ ${item.endTime} / 共${item.actualDays}天</div>
|
|
|
|
|
<div class="progress-bar-container">
|
|
|
|
|
<div class="percentage-box">实际</div>
|
|
|
|
|
<div class="progress-bar-container-box">
|
|
|
|
|
<div class="progress-bar-box-sj" style="width: ${item.actualPercent}%;"></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="percentage-box">${item.actualPercent}%</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
`;
|
|
|
|
|
electricalPercent.insertAdjacentHTML('beforeend', html);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|