fix:余热发电mgroup根据name获取

This commit is contained in:
shijing 2024-04-29 13:49:37 +08:00
parent 93f058997a
commit 4188ad2a8b
4 changed files with 284 additions and 342 deletions

View File

@ -247,17 +247,17 @@ export default {
name: "sflog", name: "sflog",
data() { data() {
return { return {
apiObj: this.$API.wpm.sflog.list, apiObj: null,
apiObj2: null, apiObj2: null,
query: { query: {
shift: "", shift: "",
team: "", team: "",
end_time__lt: "", end_time__lt: "",
start_time__gte: "", start_time__gte: "",
mgroup: "3347217246321065984", mgroup: "",
}, },
deptId: "3347207082608115712", deptId: "",
sflogItem: {}, sflogItem: {},
options: [], options: [],
optionsShift: [], optionsShift: [],
@ -267,8 +267,16 @@ export default {
}; };
}, },
mounted() { mounted() {
this.getTeam(); this.$API.mtm.mgroup.list
this.getShfit(); .req({ page: 0, search: "余热发电" })
.then((res) => {
console.log("余热发电", res);
this.query.mgroup = res[0].id;
this.apiObj = this.$API.wpm.sflog.list;
this.deptId = res[0].belong_dept;
this.getTeam();
this.getShfit();
});
}, },
methods: { methods: {
getTeam() { getTeam() {

View File

@ -332,7 +332,9 @@ export default {
}, },
data() { data() {
return { return {
timeStamp: null,
chartShow: false, chartShow: false,
exportLoading: false,
myOption: null, myOption: null,
optionHour: {}, optionHour: {},
optionDay: {}, optionDay: {},
@ -536,6 +538,7 @@ export default {
let days = (that.days = myDate.getDate()); let days = (that.days = myDate.getDate());
let hours = (that.hours = myDate.getHours()); let hours = (that.hours = myDate.getHours());
let timeDate = myDate.getTime(); let timeDate = myDate.getTime();
that.timeStamp = timeDate;
let dayTime = 24 * 60 * 60 * 1000; let dayTime = 24 * 60 * 60 * 1000;
// //
let year_d = year, let year_d = year,
@ -556,218 +559,165 @@ export default {
let month_h = hourDate.getMonth() + 1; let month_h = hourDate.getMonth() + 1;
let days_h = hourDate.getDate(); let days_h = hourDate.getDate();
let hours_h = hourDate.getHours(); let hours_h = hourDate.getHours();
// this.$API.mtm.mgroup.list
let params3 = {}; .req({ page: 0, search: "余热发电" })
params3.page = 0;
params3.year_s = year_d;
params3.month_s = month_d;
params3.day_s = days_d;
params3.type = "day_s";
params3.mgroup = this.query.mgroup;
this.$API.enm.enstat.req(params3).then((res3) => {
if (res3.length > 0) {
let data3 = res3[0];
that.tableDatas[0][3] = data3.total_production;
that.tableDatas[1][3] = data3.production_hour;
that.tableDatas[2][3] = data3.run_hour;
that.tableDatas[3][3] = data3.run_rate;
that.tableDatas[4][3] = data3.elec_consume_unit;
that.tableDatas[5][3] = data3.celec_consume_unit;
that.tableDatas[6][3] = data3.coal_consume_unit;
that.tableDatas[7][3] = data3.cen_consume_unit;
that.tableDatas[8][3] = data3.production_cost_unit;
}
});
//
let params4 = {};
params4.page = 0;
params4.year = year_h;
params4.month = month_h;
params4.day = days_h;
params4.hour = hours_h;
params4.type = "hour_st";
params4.mgroup = this.query.mgroup;
this.$API.enm.enstat.req(params4).then((res4) => {
if (res4.length > 0) {
let data4 = res4[0];
that.tableDatas[0][2] = data4.total_production;
that.tableDatas[4][2] = data4.elec_consume_unit;
that.tableDatas[5][2] = data4.celec_consume_unit;
that.tableDatas[6][2] = data4.coal_consume_unit;
that.tableDatas[7][2] = data4.cen_consume_unit;
that.tableDatas[8][2] = data4.production_cost_unit;
}
});
let params5 = {};
params5.page = 0;
params5.mgroup = "3346520558031773696";
this.$API.mtm.goal.list
.req(params5)
.then((res5) => {
if (res5.length > 0) {
let data5 = res5;
data5.forEach((item5) => {
let str = "goal_val_" + that.month;
if (item5.goal_cate_name == "总产量t") {
that.tableDatas[0][6] = item5[str];
that.tableDatas[0][8] = item5.goal_val;
} else if (item5.goal_cate_name == "台时产量t/h") {
that.tableDatas[1][6] = item5[str];
that.tableDatas[1][8] = item5.goal_val;
} else if (item5.goal_cate_name == "运转时间h") {
that.tableDatas[2][6] = item5[str];
that.tableDatas[2][8] = item5.goal_val;
} else if (item5.goal_cate_name == "运转率(%") {
that.tableDatas[3][6] = item5[str];
that.tableDatas[3][8] = item5.goal_val;
} else if (
item5.goal_cate_name == "单位产品分布电耗KW·h/t"
) {
that.tableDatas[4][6] = item5[str];
that.tableDatas[4][8] = item5.goal_val;
} else if (
item5.goal_cate_name == "单位产品综合电耗KW·h/t"
) {
that.tableDatas[5][6] = item5[str];
that.tableDatas[5][8] = item5.goal_val;
} else if (
item5.goal_cate_name == "单位产品标煤耗kgce/t"
) {
that.tableDatas[6][6] = item5[str];
that.tableDatas[6][8] = item5.goal_val;
} else if (
item5.goal_cate_name == "单位产品综合能耗kgce/t"
) {
that.tableDatas[7][6] = item5[str];
that.tableDatas[7][8] = item5.goal_val;
} else if (
item5.goal_cate_name == "单位产品成本(元/吨)"
) {
that.tableDatas[8][6] = item5[str];
that.tableDatas[8][8] = item5.goal_val;
}
});
}
})
.then((res) => { .then((res) => {
// console.log("余热发电", res);
let params1 = {}; that.query.mgroup = res[0].id;
params1.page = 0; //
params1.year_s = year; let params3 = {};
params1.type = "year_s"; params3.page = 0;
params1.mgroup = this.query.mgroup; params3.year_s = year_d;
this.$API.enm.enstat.req(params1).then((res1) => { params3.month_s = month_d;
if (res1.length > 0) { params3.day_s = days_d;
let data1 = res1[0]; params3.type = "day_s";
that.tableDatas[0][5] = data1.total_production; params3.mgroup = this.query.mgroup;
that.tableDatas[0][9] = precen( this.$API.enm.enstat.req(params3).then((res3) => {
that.tableDatas[0][5], if (res3.length > 0) {
that.tableDatas[0][8] let data3 = res3[0];
); that.tableDatas[0][3] = data3.total_production;
that.tableDatas[1][5] = data1.production_hour; that.tableDatas[1][3] = data3.production_hour;
that.tableDatas[1][9] = precen( that.tableDatas[2][3] = data3.run_hour;
that.tableDatas[1][5], that.tableDatas[3][3] = data3.run_rate;
that.tableDatas[1][8] that.tableDatas[4][3] = data3.elec_coast;
);
that.tableDatas[2][5] = data1.run_hour;
that.tableDatas[2][9] = precen(
that.tableDatas[2][5],
that.tableDatas[2][8]
);
that.tableDatas[3][5] = data1.run_rate;
that.tableDatas[3][9] = precen(
that.tableDatas[3][5],
that.tableDatas[3][8]
);
that.tableDatas[4][5] = data1.elec_consume_unit;
that.tableDatas[4][9] = precen(
that.tableDatas[4][5],
that.tableDatas[4][8]
);
that.tableDatas[5][5] = data1.celec_consume_unit;
that.tableDatas[5][9] = precen(
that.tableDatas[5][5],
that.tableDatas[5][8]
);
that.tableDatas[6][5] = data1.coal_consume_unit;
that.tableDatas[6][9] = precen(
that.tableDatas[6][5],
that.tableDatas[6][8]
);
that.tableDatas[7][5] = data1.cen_consume_unit;
that.tableDatas[7][9] = precen(
that.tableDatas[7][5],
that.tableDatas[7][8]
);
that.tableDatas[8][5] = data1.production_cost_unit;
that.tableDatas[8][9] = precen(
that.tableDatas[8][5],
that.tableDatas[8][8]
);
} else {
} }
}); });
// //
let params2 = {}; let params4 = {};
params2.page = 0; params4.page = 0;
params2.year_s = year; params4.year = year_h;
params2.month_s = month; params4.month = month_h;
params2.type = "month_s"; params4.day = days_h;
params2.mgroup = this.query.mgroup; params4.hour = hours_h;
this.$API.enm.enstat.req(params2).then((res2) => { params4.type = "hour_st";
if (res2.length > 0) { params4.mgroup = this.query.mgroup;
let data2 = res2[0]; this.$API.enm.enstat.req(params4).then((res4) => {
that.tableDatas[0][4] = data2.total_production; if (res4.length > 0) {
that.tableDatas[0][7] = precen( let data4 = res4[0];
that.tableDatas[0][4], that.tableDatas[0][2] = data4.total_production;
that.tableDatas[0][6] that.tableDatas[4][2] = data4.elec_coast;
);
that.tableDatas[1][4] = data2.production_hour;
that.tableDatas[1][7] = precen(
that.tableDatas[1][4],
that.tableDatas[1][6]
);
that.tableDatas[2][4] = data2.run_hour;
that.tableDatas[2][7] = precen(
that.tableDatas[2][4],
that.tableDatas[2][6]
);
that.tableDatas[3][4] = data2.run_rate;
that.tableDatas[3][7] = precen(
that.tableDatas[3][4],
that.tableDatas[3][6]
);
that.tableDatas[4][4] = data2.elec_consume_unit;
that.tableDatas[4][7] = precen(
that.tableDatas[4][4],
that.tableDatas[4][6]
);
that.tableDatas[5][4] = data2.celec_consume_unit;
that.tableDatas[5][7] = precen(
that.tableDatas[5][4],
that.tableDatas[5][6]
);
that.tableDatas[6][4] = data2.coal_consume_unit;
that.tableDatas[6][7] = precen(
that.tableDatas[6][4],
that.tableDatas[6][6]
);
that.tableDatas[7][4] = data2.cen_consume_unit;
that.tableDatas[7][7] = precen(
that.tableDatas[7][4],
that.tableDatas[7][6]
);
that.tableDatas[8][4] = data2.production_cost_unit;
that.tableDatas[8][7] = precen(
that.tableDatas[8][4],
that.tableDatas[8][6]
);
} }
}); });
let params5 = {};
params5.page = 0;
params5.mgroup = this.query.mgroup;
this.$API.mtm.goal.list
.req(params5)
.then((res5) => {
if (res5.length > 0) {
let data5 = res5;
data5.forEach((item5) => {
let str = "goal_val_" + that.month;
if (
item5.goal_cate_name == "总发电量KW·h/t"
) {
that.tableDatas[0][6] = item5[str];
that.tableDatas[0][8] = item5.goal_val;
} else if (
item5.goal_cate_name ==
"单位发电量KW·h/t"
) {
that.tableDatas[1][6] = item5[str];
that.tableDatas[1][8] = item5.goal_val;
} else if (
item5.goal_cate_name == "运转时间h"
) {
that.tableDatas[2][6] = item5[str];
that.tableDatas[2][8] = item5.goal_val;
} else if (
item5.goal_cate_name == "运转率(%"
) {
that.tableDatas[3][6] = item5[str];
that.tableDatas[3][8] = item5.goal_val;
} else if (
item5.goal_cate_name == "用电量KW·h"
) {
that.tableDatas[4][6] = item5[str];
that.tableDatas[4][8] = item5.goal_val;
}
});
}
})
.then((res) => {
//
let params1 = {};
params1.page = 0;
params1.year_s = year;
params1.type = "year_s";
params1.mgroup = this.query.mgroup;
this.$API.enm.enstat.req(params1).then((res1) => {
if (res1.length > 0) {
let data1 = res1[0];
that.tableDatas[0][5] = data1.total_production;
that.tableDatas[0][9] = precen(
that.tableDatas[0][5],
that.tableDatas[0][8]
);
that.tableDatas[1][5] = data1.production_hour;
that.tableDatas[1][9] = precen(
that.tableDatas[1][5],
that.tableDatas[1][8]
);
that.tableDatas[2][5] = data1.run_hour;
that.tableDatas[2][9] = precen(
that.tableDatas[2][5],
that.tableDatas[2][8]
);
that.tableDatas[3][5] = data1.run_rate;
that.tableDatas[3][9] = precen(
that.tableDatas[3][5],
that.tableDatas[3][8]
);
that.tableDatas[4][5] = data1.elec_coast;
that.tableDatas[4][9] = precen(
that.tableDatas[4][5],
that.tableDatas[4][8]
);
} else {
}
});
//
let params2 = {};
params2.page = 0;
params2.year_s = year;
params2.month_s = month;
params2.type = "month_s";
params2.mgroup = this.query.mgroup;
this.$API.enm.enstat.req(params2).then((res2) => {
if (res2.length > 0) {
let data2 = res2[0];
that.tableDatas[0][4] = data2.total_production;
that.tableDatas[0][7] = precen(
that.tableDatas[0][4],
that.tableDatas[0][6]
);
that.tableDatas[1][4] = data2.production_hour;
that.tableDatas[1][7] = precen(
that.tableDatas[1][4],
that.tableDatas[1][6]
);
that.tableDatas[2][4] = data2.run_hour;
that.tableDatas[2][7] = precen(
that.tableDatas[2][4],
that.tableDatas[2][6]
);
that.tableDatas[3][4] = data2.run_rate;
that.tableDatas[3][7] = precen(
that.tableDatas[3][4],
that.tableDatas[3][6]
);
that.tableDatas[4][4] = data2.elec_coast;
that.tableDatas[4][7] = precen(
that.tableDatas[4][4],
that.tableDatas[4][6]
);
}
});
});
that.getHourData();
that.getDayData();
that.getMonthData();
}); });
that.getHourData();
that.getDayData();
that.getMonthData();
}, },
methods: { methods: {
// //

View File

@ -85,9 +85,10 @@ export default {
year_s: "", year_s: "",
page: 0, page: 0,
type: "month_st", type: "month_st",
mgroup: "3347217246321065984", mgroup: "",
}, },
tableDatas: [], tableDatas: [],
exportLoading: false,
}; };
}, },
mounted() { mounted() {
@ -95,7 +96,13 @@ export default {
var myDate = new Date(); var myDate = new Date();
let year = myDate.getFullYear(); let year = myDate.getFullYear();
that.query.year_s = year; that.query.year_s = year;
this.getData(); this.$API.mtm.mgroup.list
.req({ page: 0, search: "余热发电" })
.then((res) => {
console.log("余热发电", res);
that.query.mgroup = res[0].id;
this.getData();
});
}, },
methods: { methods: {
getData() { getData() {
@ -104,7 +111,7 @@ export default {
query0.page = 0; query0.page = 0;
query0.type = "month_st"; query0.type = "month_st";
query0.year_s = that.query.year_s - 1; query0.year_s = that.query.year_s - 1;
query0.mgroup = "3347217246321065984"; query0.mgroup = that.query.mgroup;
let wrapArr = [], let wrapArr = [],
wrapArr0 = [], wrapArr0 = [],
wrapArrs = []; wrapArrs = [];
@ -116,6 +123,7 @@ export default {
// //
let n0 = item0.month_s; let n0 = item0.month_s;
let ind0 = 0; let ind0 = 0;
let team_name0 = item0.team_name;
if (team_name0.indexOf("甲") > -1) { if (team_name0.indexOf("甲") > -1) {
ind0 = (n0 - 1) * 3; ind0 = (n0 - 1) * 3;
} else if (team_name0.indexOf("乙") > -1) { } else if (team_name0.indexOf("乙") > -1) {
@ -152,7 +160,7 @@ export default {
arr.push(item.total_production); arr.push(item.total_production);
arr.push(item.production_hour); arr.push(item.production_hour);
arr.push(item.run_rate); arr.push(item.run_rate);
// //
arr[5] = item.elec_consume_unit; //KW·h/t arr[5] = item.elec_consume_unit; //KW·h/t
arr[6] = item.celec_consume_unit; //KW·h/t// arr[6] = item.celec_consume_unit; //KW·h/t//
arr[7] = item.celec_consume_unit; //KW·h/t arr[7] = item.celec_consume_unit; //KW·h/t
@ -175,51 +183,6 @@ export default {
arr[9] = item.celec_consume_unit; //KW·h/t arr[9] = item.celec_consume_unit; //KW·h/t
arr[10] = item.celec_consume_unit; //% arr[10] = item.celec_consume_unit; //%
arr[11] = item.celec_consume_unit; //% arr[11] = item.celec_consume_unit; //%
//
//
arr[12] =
item.高温风机_consume_unit != null
? item.高温风机_consume_unit
: "/";
arr[13] =
item.篦冷机一室风机_consume_unit != null
? item.篦冷机一室风机_consume_unit
: "/";
arr[14] =
item.篦冷机三室风机_consume_unit != null
? item.篦冷机三室风机_consume_unit
: "/";
arr[15] =
item.篦冷机二室风机_consume_unit != null
? item.篦冷机二室风机_consume_unit
: "/";
arr[16] =
item.窑头排风机_consume_unit != null
? item.窑头排风机_consume_unit
: "/";
arr[17] = item.elec_consume_unit; //KW·h/t
arr[18] = item.celec_consume_unit; //KW·h/t//
arr[19] = item.celec_consume_unit; //KW·h/t
let ind_pre1 = 0,
huanbi1 = 0;
if (item.month_s == 1) {
ind_pre1 = 12;
huanbi1 = wrapArr0[ind_pre]
? wrapArr0[ind_pre].elec_consume_unit
: "/";
} else {
ind_pre1 = ind - 1;
huanbi1 = wrapArr[ind_pre]
? wrapArr[ind_pre].elec_consume_unit
? wrapArr[ind_pre].elec_consume_unit
: "/"
: "/";
}
arr[20] = huanbi; //KW·h/t
arr[21] = item.celec_consume_unit; //KW·h/t
arr[22] = item.celec_consume_unit; //%
arr[23] = item.celec_consume_unit; //%
arr[24] = item.celec_consume_unit; //%
wrapArr[ind] = arr; wrapArr[ind] = arr;
}); });
console.log(wrapArr); console.log(wrapArr);

View File

@ -257,12 +257,13 @@ export default {
}, },
data() { data() {
return { return {
exportLoading: false,
chartShow: false, chartShow: false,
myOption: null, myOption: null,
query: { query: {
type: 1, type: 1,
year_s: "", year_s: "",
mgroup: "3347217246321065984", mgroup: "",
}, },
monthGoal: [], monthGoal: [],
monthGoal2: [], monthGoal2: [],
@ -304,87 +305,13 @@ export default {
var myDate = new Date(); var myDate = new Date();
let year = myDate.getFullYear(); let year = myDate.getFullYear();
that.query.year_s = year; that.query.year_s = year;
// that.$API.mtm.mgroup.list
let paramsGoal = {}; .req({ page: 0, search: "余热发电" })
paramsGoal.page = 0; .then((res) => {
paramsGoal.mgroup = that.query.mgroup; console.log("余热发电", res);
that.$API.mtm.goal.list.req(paramsGoal).then((ress) => { that.query.mgroup = res[0].id;
if (ress.length > 0) { that.getMonthGoal();
let monthGoal = [], });
monthGoal2 = [],
monthGoal3 = [],
monthGoal4 = [];
ress.forEach((goal) => {
if (goal.goal_cate_name == "单位产品分布电耗KW·h/t") {
monthGoal[0] = goal.goal_val;
monthGoal[1] = goal.goal_val_2;
monthGoal[2] = goal.goal_val_3;
monthGoal[3] = goal.goal_val_4;
monthGoal[4] = goal.goal_val_5;
monthGoal[5] = goal.goal_val_6;
monthGoal[6] = goal.goal_val_7;
monthGoal[7] = goal.goal_val_8;
monthGoal[8] = goal.goal_val_9;
monthGoal[9] = goal.goal_val_10;
monthGoal[10] = goal.goal_val_11;
monthGoal[11] = goal.goal_val_12;
monthGoal[12] = goal.goal_val_12;
that.monthGoal = monthGoal;
}
if (goal.goal_cate_name == "单位产品综合电耗KW·h/t") {
monthGoal2[0] = goal.goal_val;
monthGoal2[1] = goal.goal_val_2;
monthGoal2[2] = goal.goal_val_3;
monthGoal2[3] = goal.goal_val_4;
monthGoal2[4] = goal.goal_val_5;
monthGoal2[5] = goal.goal_val_6;
monthGoal2[6] = goal.goal_val_7;
monthGoal2[7] = goal.goal_val_8;
monthGoal2[8] = goal.goal_val_9;
monthGoal2[9] = goal.goal_val_10;
monthGoal2[10] = goal.goal_val_11;
monthGoal2[11] = goal.goal_val_12;
monthGoal2[12] = goal.goal_val_12;
that.monthGoal2 = monthGoal2;
}
if (goal.goal_cate_name == "单位产品标煤耗kgce/t") {
monthGoal3[0] = goal.goal_val;
monthGoal3[1] = goal.goal_val_2;
monthGoal3[2] = goal.goal_val_3;
monthGoal3[3] = goal.goal_val_4;
monthGoal3[4] = goal.goal_val_5;
monthGoal3[5] = goal.goal_val_6;
monthGoal3[6] = goal.goal_val_7;
monthGoal3[7] = goal.goal_val_8;
monthGoal3[8] = goal.goal_val_9;
monthGoal3[9] = goal.goal_val_10;
monthGoal3[10] = goal.goal_val_11;
monthGoal3[11] = goal.goal_val_12;
monthGoal3[12] = goal.goal_val_12;
that.monthGoal3 = monthGoal3;
}
if (goal.goal_cate_name == "单位产品综合能耗kgce/t") {
monthGoal4[0] = goal.goal_val;
monthGoal4[1] = goal.goal_val_2;
monthGoal4[2] = goal.goal_val_3;
monthGoal4[3] = goal.goal_val_4;
monthGoal4[4] = goal.goal_val_5;
monthGoal4[5] = goal.goal_val_6;
monthGoal4[6] = goal.goal_val_7;
monthGoal4[7] = goal.goal_val_8;
monthGoal4[8] = goal.goal_val_9;
monthGoal4[9] = goal.goal_val_10;
monthGoal4[10] = goal.goal_val_11;
monthGoal4[11] = goal.goal_val_12;
monthGoal4[12] = goal.goal_val_12;
that.monthGoal4 = monthGoal4;
}
});
this.getData();
} else {
this.getData();
}
});
}, },
methods: { methods: {
// Class // Class
@ -403,6 +330,96 @@ export default {
} }
return classInfo; return classInfo;
}, },
//
getMonthGoal() {
let that = this;
let paramsGoal = {};
paramsGoal.page = 0;
paramsGoal.mgroup = that.query.mgroup;
that.$API.mtm.goal.list.req(paramsGoal).then((ress) => {
if (ress.length > 0) {
let monthGoal = [],
monthGoal2 = [],
monthGoal3 = [],
monthGoal4 = [];
ress.forEach((goal) => {
if (
goal.goal_cate_name == "单位产品分布电耗KW·h/t"
) {
monthGoal[0] = goal.goal_val;
monthGoal[1] = goal.goal_val_2;
monthGoal[2] = goal.goal_val_3;
monthGoal[3] = goal.goal_val_4;
monthGoal[4] = goal.goal_val_5;
monthGoal[5] = goal.goal_val_6;
monthGoal[6] = goal.goal_val_7;
monthGoal[7] = goal.goal_val_8;
monthGoal[8] = goal.goal_val_9;
monthGoal[9] = goal.goal_val_10;
monthGoal[10] = goal.goal_val_11;
monthGoal[11] = goal.goal_val_12;
monthGoal[12] = goal.goal_val_12;
that.monthGoal = monthGoal;
}
if (
goal.goal_cate_name == "单位产品综合电耗KW·h/t"
) {
monthGoal2[0] = goal.goal_val;
monthGoal2[1] = goal.goal_val_2;
monthGoal2[2] = goal.goal_val_3;
monthGoal2[3] = goal.goal_val_4;
monthGoal2[4] = goal.goal_val_5;
monthGoal2[5] = goal.goal_val_6;
monthGoal2[6] = goal.goal_val_7;
monthGoal2[7] = goal.goal_val_8;
monthGoal2[8] = goal.goal_val_9;
monthGoal2[9] = goal.goal_val_10;
monthGoal2[10] = goal.goal_val_11;
monthGoal2[11] = goal.goal_val_12;
monthGoal2[12] = goal.goal_val_12;
that.monthGoal2 = monthGoal2;
}
if (goal.goal_cate_name == "单位产品标煤耗kgce/t") {
monthGoal3[0] = goal.goal_val;
monthGoal3[1] = goal.goal_val_2;
monthGoal3[2] = goal.goal_val_3;
monthGoal3[3] = goal.goal_val_4;
monthGoal3[4] = goal.goal_val_5;
monthGoal3[5] = goal.goal_val_6;
monthGoal3[6] = goal.goal_val_7;
monthGoal3[7] = goal.goal_val_8;
monthGoal3[8] = goal.goal_val_9;
monthGoal3[9] = goal.goal_val_10;
monthGoal3[10] = goal.goal_val_11;
monthGoal3[11] = goal.goal_val_12;
monthGoal3[12] = goal.goal_val_12;
that.monthGoal3 = monthGoal3;
}
if (
goal.goal_cate_name == "单位产品综合能耗kgce/t"
) {
monthGoal4[0] = goal.goal_val;
monthGoal4[1] = goal.goal_val_2;
monthGoal4[2] = goal.goal_val_3;
monthGoal4[3] = goal.goal_val_4;
monthGoal4[4] = goal.goal_val_5;
monthGoal4[5] = goal.goal_val_6;
monthGoal4[6] = goal.goal_val_7;
monthGoal4[7] = goal.goal_val_8;
monthGoal4[8] = goal.goal_val_9;
monthGoal4[9] = goal.goal_val_10;
monthGoal4[10] = goal.goal_val_11;
monthGoal4[11] = goal.goal_val_12;
monthGoal4[12] = goal.goal_val_12;
that.monthGoal4 = monthGoal4;
}
});
that.getData();
} else {
that.getData();
}
});
},
getData() { getData() {
let that = this; let that = this;
let query0 = {}; let query0 = {};
@ -893,6 +910,10 @@ export default {
this.chartShow = true; this.chartShow = true;
}); });
}, },
typeCange() {},
handleQuery() {
this.getMonthGoal();
},
handlePrint() { handlePrint() {
this.$PRINT("#myReport"); this.$PRINT("#myReport");
}, },