数据分析-
This commit is contained in:
parent
43c3c63241
commit
c47cf0722d
|
|
@ -91,7 +91,12 @@ function initData(startTime, endTime) {
|
||||||
$("#planProgress").text(data[key]);
|
$("#planProgress").text(data[key]);
|
||||||
break;
|
break;
|
||||||
case "进度偏差":
|
case "进度偏差":
|
||||||
$("#delayProgress").text(data[key]);
|
var delayProgress = Number(data[key]);
|
||||||
|
if(delayProgress > 0){
|
||||||
|
$("#delayProgress").text("超前" + delayProgress);
|
||||||
|
}else{
|
||||||
|
$("#delayProgress").text("滞后" + Math.abs(delayProgress));
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "计划成本":
|
case "计划成本":
|
||||||
|
|
|
||||||
|
|
@ -480,10 +480,11 @@ function initProjectRisk(projectRisk) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function initCivilEngineering(date) {
|
function initCivilEngineering(date) {
|
||||||
const xLabel = date.map((item) => item.day);
|
const xLabel = date.day;
|
||||||
const expenditureData = date.map((item) => item.tjplanNum);
|
const expenditureData = date.tjplanNum;
|
||||||
const incomeData = date.map((item) => item.tjexeNum);
|
const incomeData = date.tjexeNum;
|
||||||
const leftChart = echarts.init(document.getElementById("civilEngineering"));
|
const leftChart = echarts.init(document.getElementById("civilEngineering"));
|
||||||
|
|
||||||
const option = {
|
const option = {
|
||||||
title: {
|
title: {
|
||||||
text: "土建专业",
|
text: "土建专业",
|
||||||
|
|
@ -713,9 +714,9 @@ function initCivilEngineering(date) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function initElectrical(data) {
|
function initElectrical(data) {
|
||||||
const xLabel = data.map((item) => item.day);
|
const xLabel = data.day;
|
||||||
const expenditureData = data.map((item) => item.dqplanNum);
|
const expenditureData = data.dqplanNum;
|
||||||
const incomeData = data.map((item) => item.dqexeNum);
|
const incomeData = data.dqexeNum;
|
||||||
const leftChart = echarts.init(document.getElementById("electrical"));
|
const leftChart = echarts.init(document.getElementById("electrical"));
|
||||||
const option = {
|
const option = {
|
||||||
title: {
|
title: {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue