This commit is contained in:
caoqianming 2025-02-11 17:17:47 +08:00
commit 90143fa763
3 changed files with 15 additions and 16 deletions

View File

@ -68,6 +68,14 @@
></el-input> ></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<!-- <el-col :md="12" :sm="24">
<el-form-item label="自采点位编号" prop="xcode" label-width="120">
<el-input
v-model="form.xcode"
clearable
></el-input>
</el-form-item>
</el-col> -->
<el-col :md="12" :sm="24"> <el-col :md="12" :sm="24">
<el-form-item label="单位" prop="unit"> <el-form-item label="单位" prop="unit">
<el-input <el-input

View File

@ -1107,15 +1107,15 @@ export default {
let data = response; let data = response;
data.forEach((item) => { data.forEach((item) => {
let ind = item.hour; let ind = item.hour;
seriesData0[ind] = item.total_production; // if(item.total_production < 1){
// seriesData1[ind] = item.production_hour; // seriesData0[ind] = 0;
// seriesData2[ind] = item.run_rate; // seriesData3[ind] = 0;
seriesData3[ind] = item.elec_consume_unit; // }else{seriesData0[ind] = item.total_production; //
seriesData3[ind] = item.elec_consume_unit; //}
}
}); });
let options = { ...that.option1 }; let options = { ...that.option1 };
options.series[0].data = seriesData0; options.series[0].data = seriesData0;
// options.series[1].data = seriesData1;
// options.series[2].data = seriesData2;
options.series[1].data = seriesData3; options.series[1].data = seriesData3;
let hourXAxis = []; let hourXAxis = [];
for (let i = 0; i < 24; i++) { for (let i = 0; i < 24; i++) {

View File

@ -254,16 +254,6 @@
handlePrint() { handlePrint() {
this.$PRINT('#myReport'); this.$PRINT('#myReport');
}, },
// updateTableHeaders() {
// let that = this;
// // tableDatas >= 3
// if (this.tableDatas.length > 0) {
// let columnCount = this.tableDatas[0].length - 3; //
// this.tableHeaders = Array.from({ length: columnCount }, (_, i) => i + 1);
// } else {
// this.tableHeaders = [];
// }
// },
exportExcel() { exportExcel() {
this.exportLoading = true; this.exportLoading = true;
this.$XLSX('#myReport', this.tableName) this.$XLSX('#myReport', this.tableName)
@ -271,6 +261,7 @@
}, },
} }
}; };
</script> </script>
<style scoped> <style scoped>
.topTableDiv{ .topTableDiv{