fix:tku中的power更改

This commit is contained in:
shijing 2024-05-15 11:29:36 +08:00
parent 245c2b6155
commit bad6efb816
5 changed files with 23 additions and 8 deletions

View File

@ -52,21 +52,21 @@
<td <td
v-if="ind == 3" v-if="ind == 3"
class="numCell hoursItem" class="numCell hoursItem"
@click="itemClick('hour_s', item1)" @click="itemClick('hour_s', item)"
> >
{{ item1 }} {{ item1 }}
</td> </td>
<td <td
v-if="ind == 4" v-if="ind == 4"
class="numCell monthItem" class="numCell monthItem"
@click="itemClick('day_s', item1)" @click="itemClick('day_s', item)"
> >
{{ item1 }} {{ item1 }}
</td> </td>
<td <td
v-if="ind == 5" v-if="ind == 5"
class="numCell yearItem" class="numCell yearItem"
@click="itemClick('month_s', item1)" @click="itemClick('month_s', item)"
> >
{{ item1 }} {{ item1 }}
</td> </td>
@ -106,7 +106,7 @@
:title="title" :title="title"
:cate="cate" :cate="cate"
:apiObj="apiObj" :apiObj="apiObj"
:mgroup="query.mgroup" :mpoint="mpoint"
:modelValue="modelValue" :modelValue="modelValue"
:showClose="showClose" :showClose="showClose"
:echartType="echartType" :echartType="echartType"
@ -189,6 +189,7 @@ export default {
query: { query: {
mgroup: "", mgroup: "",
}, },
mpoint: "",
tableName: "主要设备100KW以上单位产品电耗数据表", tableName: "主要设备100KW以上单位产品电耗数据表",
tableDatas: [ tableDatas: [
["煤磨排风机主电机", "", "KW·h/t", "", "", ""], ["煤磨排风机主电机", "", "KW·h/t", "", "", ""],
@ -370,6 +371,7 @@ export default {
hourProduct hourProduct
).toFixed(2); ).toFixed(2);
that.tableDatas[i][5] = val; that.tableDatas[i][5] = val;
that.tableDatas[i][6] = data2[i].mpoint;
} }
}); });
} }
@ -567,6 +569,7 @@ export default {
itemClick(type, item) { itemClick(type, item) {
this.type = type; this.type = type;
this.cate = item[0]; this.cate = item[0];
this.mpoint = item[6];
this.asynDialog = true; this.asynDialog = true;
}, },
handlePrint() { handlePrint() {

View File

@ -106,7 +106,7 @@
:title="title" :title="title"
:cate="cate" :cate="cate"
:apiObj="apiObj" :apiObj="apiObj"
:mgroup="query.mgroup" :mpoint="mpoint"
:modelValue="modelValue" :modelValue="modelValue"
:showClose="showClose" :showClose="showClose"
:echartType="echartType" :echartType="echartType"
@ -200,6 +200,7 @@ export default {
query: { query: {
mgroup: "", mgroup: "",
}, },
mpoint: "",
tableName: "主要设备100KW以上单位产品电耗数据表", tableName: "主要设备100KW以上单位产品电耗数据表",
tableDatas: [ tableDatas: [
["高温风机", "", "KW·h/t", "", "", ""], ["高温风机", "", "KW·h/t", "", "", ""],
@ -484,6 +485,7 @@ export default {
allValMonth allValMonth
).toFixed(2); ).toFixed(2);
that.tableDatas[i][5] = val; that.tableDatas[i][5] = val;
that.tableDatas[i][6] = data2[i].mpoint;
} }
}); });
} }
@ -765,6 +767,7 @@ export default {
itemClick(type, item) { itemClick(type, item) {
this.type = type; this.type = type;
this.cate = item[0]; this.cate = item[0];
this.mpoint = item[6];
this.asynDialog = true; this.asynDialog = true;
}, },
handlePrint() { handlePrint() {

View File

@ -106,7 +106,7 @@
:title="title" :title="title"
:cate="cate" :cate="cate"
:apiObj="apiObj" :apiObj="apiObj"
:mgroup="query.mgroup" :mpoint="mpoint"
:modelValue="modelValue" :modelValue="modelValue"
:showClose="showClose" :showClose="showClose"
:echartType="echartType" :echartType="echartType"
@ -198,6 +198,7 @@ export default {
query: { query: {
mgroup: "", mgroup: "",
}, },
mpoint: "",
tableName: "主要设备100KW以上单位产品电耗数据表", tableName: "主要设备100KW以上单位产品电耗数据表",
tableDatas: [ tableDatas: [
["循环风机1906", "", "KW·h/t", "", "", ""], ["循环风机1906", "", "KW·h/t", "", "", ""],
@ -442,6 +443,7 @@ export default {
allValMonth allValMonth
).toFixed(2); ).toFixed(2);
that.tableDatas[i][5] = val; that.tableDatas[i][5] = val;
that.tableDatas[i][6] = data2[i].mpoint;
} }
debugger; debugger;
console.log(that.tableDatas); console.log(that.tableDatas);
@ -701,6 +703,7 @@ export default {
itemClick(type, item) { itemClick(type, item) {
this.type = type; this.type = type;
this.cate = item[0]; this.cate = item[0];
this.mpoint = item[6];
this.asynDialog = true; this.asynDialog = true;
}, },
handlePrint() { handlePrint() {

View File

@ -106,7 +106,7 @@
:title="title" :title="title"
:cate="cate" :cate="cate"
:apiObj="apiObj" :apiObj="apiObj"
:mgroup="query.mgroup" :mpoint="mpoint"
:modelValue="modelValue" :modelValue="modelValue"
:showClose="showClose" :showClose="showClose"
:echartType="echartType" :echartType="echartType"
@ -189,6 +189,7 @@ export default {
query: { query: {
mgroup: "", mgroup: "",
}, },
mpoint: "",
tableName: "主要设备100KW以上单位产品电耗数据表", tableName: "主要设备100KW以上单位产品电耗数据表",
tableDatas: [ tableDatas: [
["立磨主电机", "", "KW·h/t", "", "", ""], ["立磨主电机", "", "KW·h/t", "", "", ""],
@ -419,6 +420,7 @@ export default {
hourProduct hourProduct
).toFixed(2); ).toFixed(2);
that.tableDatas[i][5] = val; that.tableDatas[i][5] = val;
that.tableDatas[i][6] = data2[i].mpoint;
} }
}); });
} }
@ -651,6 +653,7 @@ export default {
itemClick(type, item) { itemClick(type, item) {
this.type = type; this.type = type;
this.cate = item[0]; this.cate = item[0];
this.mpoint = item[6];
this.asynDialog = true; this.asynDialog = true;
}, },
handlePrint() { handlePrint() {

View File

@ -90,7 +90,7 @@
:title="title" :title="title"
:cate="cate" :cate="cate"
:apiObj="apiObj" :apiObj="apiObj"
:mgroup="query.mgroup" :mpoint="mpoint"
:modelValue="modelValue" :modelValue="modelValue"
:showClose="showClose" :showClose="showClose"
:echartType="echartType" :echartType="echartType"
@ -163,6 +163,7 @@ export default {
query: { query: {
mgroup: "", mgroup: "",
}, },
mpoint: "",
tableName: "主要设备100KW以上单位产品电耗数据表", tableName: "主要设备100KW以上单位产品电耗数据表",
tableDatas: [["烘干破主电机", "", "kw.h/t", "", "", ""]], tableDatas: [["烘干破主电机", "", "kw.h/t", "", "", ""]],
modelValue: true, modelValue: true,
@ -296,6 +297,7 @@ export default {
allValMonth allValMonth
).toFixed(2); ).toFixed(2);
that.tableDatas[i][4] = val; that.tableDatas[i][4] = val;
that.tableDatas[i][5] = data2[i].mpoint;
} }
}); });
} }
@ -405,6 +407,7 @@ export default {
itemClick(type, item) { itemClick(type, item) {
this.type = type; this.type = type;
this.cate = item[0]; this.cate = item[0];
this.mpoint = item[5];
this.asynDialog = true; this.asynDialog = true;
}, },
handlePrint() { handlePrint() {