Merge branch 'master' of https://e.coding.net/ctcdevteam/ehs/ehs_web
This commit is contained in:
commit
cd479c65e6
|
|
@ -12,7 +12,7 @@
|
||||||
<el-button type="primary" @click="handlePrint">打印 </el-button>
|
<el-button type="primary" @click="handlePrint">打印 </el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-header>
|
</el-header>
|
||||||
<el-card style="margin-top: 5px">
|
<el-card style="margin-top: 5px;position: relative;">
|
||||||
<div class="printWrap">
|
<div class="printWrap">
|
||||||
<div ref="print" id="myReport" class="printContainer">
|
<div ref="print" id="myReport" class="printContainer">
|
||||||
<table
|
<table
|
||||||
|
|
@ -55,6 +55,9 @@
|
||||||
@click="itemClick('day_s', item)"
|
@click="itemClick('day_s', item)"
|
||||||
>
|
>
|
||||||
{{ item1 }}
|
{{ item1 }}
|
||||||
|
<div class="tooltip">
|
||||||
|
<p>设备电量({{item[6]}})/工段产量({{item[7]}})</p>
|
||||||
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td
|
<td
|
||||||
v-if="ind == 4"
|
v-if="ind == 4"
|
||||||
|
|
@ -62,6 +65,9 @@
|
||||||
@click="itemClick('month_s', item)"
|
@click="itemClick('month_s', item)"
|
||||||
>
|
>
|
||||||
{{ item1 }}
|
{{ item1 }}
|
||||||
|
<div class="tooltip">
|
||||||
|
<p>设备电量({{item[8]}})/工段产量({{item[9]}})</p>
|
||||||
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</template>
|
</template>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
@ -116,6 +122,9 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="computeFormula" style="">
|
||||||
|
设备单位产品电耗=设备电量/工段产量
|
||||||
|
</div>
|
||||||
<charts
|
<charts
|
||||||
v-if="asynDialog"
|
v-if="asynDialog"
|
||||||
:type="type"
|
:type="type"
|
||||||
|
|
@ -342,6 +351,8 @@ export default {
|
||||||
let index_d = that.mpoints.indexOf(item.mpoint_name);
|
let index_d = that.mpoints.indexOf(item.mpoint_name);
|
||||||
if (that.tableDatas[index_d]) {
|
if (that.tableDatas[index_d]) {
|
||||||
that.tableDatas[index_d][3] = item.elec_consume_unit;
|
that.tableDatas[index_d][3] = item.elec_consume_unit;
|
||||||
|
that.tableDatas[index_d][6] = item.val;
|
||||||
|
that.tableDatas[index_d][7] = item.total_production;
|
||||||
} else {
|
} else {
|
||||||
let obj = [];
|
let obj = [];
|
||||||
obj[0] = item.ep_monitored_name?item.ep_monitored_name:item.mpoint_nickname?item.mpoint_nickname:item.mpoint_name;
|
obj[0] = item.ep_monitored_name?item.ep_monitored_name:item.mpoint_nickname?item.mpoint_nickname:item.mpoint_name;
|
||||||
|
|
@ -349,6 +360,8 @@ export default {
|
||||||
obj[2] = "KW·h/t";
|
obj[2] = "KW·h/t";
|
||||||
obj[3] = item.elec_consume_unit;
|
obj[3] = item.elec_consume_unit;
|
||||||
obj[5] = item.mpoint;
|
obj[5] = item.mpoint;
|
||||||
|
obj[6] = item.val;
|
||||||
|
obj[7] = item.total_production;
|
||||||
that.tableDatas[index_d] = obj;
|
that.tableDatas[index_d] = obj;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
@ -367,8 +380,9 @@ export default {
|
||||||
item.mpoint_name
|
item.mpoint_name
|
||||||
);
|
);
|
||||||
if (that.tableDatas[index_m]) {
|
if (that.tableDatas[index_m]) {
|
||||||
that.tableDatas[index_m][4] =
|
that.tableDatas[index_m][4] =item.elec_consume_unit;
|
||||||
item.elec_consume_unit;
|
that.tableDatas[index_m][8] = item.val;
|
||||||
|
that.tableDatas[index_m][9] = item.total_production;
|
||||||
} else {
|
} else {
|
||||||
let obj = [];
|
let obj = [];
|
||||||
obj[0] = item.ep_monitored_name?item.ep_monitored_name:item.mpoint_nickname?item.mpoint_nickname:item.mpoint_name;
|
obj[0] = item.ep_monitored_name?item.ep_monitored_name:item.mpoint_nickname?item.mpoint_nickname:item.mpoint_name;
|
||||||
|
|
@ -376,9 +390,12 @@ export default {
|
||||||
obj[2] = "KW·h/t";
|
obj[2] = "KW·h/t";
|
||||||
obj[4] = item.elec_consume_unit;
|
obj[4] = item.elec_consume_unit;
|
||||||
obj[5] = item.mpoint;
|
obj[5] = item.mpoint;
|
||||||
|
obj[8] = item.val;
|
||||||
|
obj[9] = item.total_production;
|
||||||
that.tableDatas[index_m] = obj;
|
that.tableDatas[index_m] = obj;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
console.log("tableDatas", that.tableDatas);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
@ -485,6 +502,12 @@ export default {
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
.computeFormula{
|
||||||
|
position: absolute;left: 1100px;top: 20px;font-size: 16px;color: #666666;border-radius: 5px; box-shadow: inset 0 0 10px 10px rgba(0,0,0,.1);padding: 10px;
|
||||||
|
}
|
||||||
|
.numCell{
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
.printContainer {
|
.printContainer {
|
||||||
padding-left: 20px;
|
padding-left: 20px;
|
||||||
}
|
}
|
||||||
|
|
@ -497,4 +520,19 @@ export default {
|
||||||
padding-top: 10px;
|
padding-top: 10px;
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
.tooltip {
|
||||||
|
width: 280px;
|
||||||
|
position: absolute;
|
||||||
|
bottom: 10%;
|
||||||
|
right:80%;
|
||||||
|
font-size: 14px;
|
||||||
|
background-color: rgba(0,0,0,.5);
|
||||||
|
color: #fff;
|
||||||
|
border-radius: 5px;
|
||||||
|
display: none;
|
||||||
|
padding: 5px;
|
||||||
|
}
|
||||||
|
td:hover .tooltip {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue