|
|
@@ -77,7 +77,7 @@
|
|
77
|
77
|
<el-button size="large" type="primary" plain>{{ $t("reportforms.export") }}</el-button>
|
|
78
|
78
|
<template #dropdown>
|
|
79
|
79
|
<el-dropdown-menu v-for="(item, index) in columnList" :key="index">
|
|
80
|
|
- <el-dropdown-item>
|
|
|
80
|
+ <el-dropdown-item v-if="item.label != '并网点'">
|
|
81
|
81
|
<el-checkbox @change="oncheck" v-model="item.ifcolumn" :label="item.label" size="large" />
|
|
82
|
82
|
<template v-if="item.children">
|
|
83
|
83
|
<template v-for="(items, i) in item.children" :key="i">
|
|
|
@@ -96,8 +96,14 @@
|
|
96
|
96
|
  
|
|
97
|
97
|
<el-table :data="tableData.list" style="width: 100%" align="center" :show-overflow-tooltip="true">
|
|
98
|
98
|
<!-- <el-table-column type="selection" width="55" /> -->
|
|
|
99
|
+
|
|
99
|
100
|
<template v-for="(item, index) in columnList" :key="index">
|
|
100
|
|
- <el-table-column v-if="item.ifcolumn" :label="item.label" :prop="item.prop" align="center">
|
|
|
101
|
+ <el-table-column
|
|
|
102
|
+ v-if="item.ifcolumn && item.label != '并网点'"
|
|
|
103
|
+ :label="item.label"
|
|
|
104
|
+ :prop="item.prop"
|
|
|
105
|
+ align="center"
|
|
|
106
|
+ >
|
|
101
|
107
|
<template v-if="item.children">
|
|
102
|
108
|
<template v-for="(items, i) in item.children" :key="i">
|
|
103
|
109
|
<el-table-column v-if="items.ifcolumn" :label="items.label" :prop="items.prop" align="center">
|
|
|
@@ -106,6 +112,7 @@
|
|
106
|
112
|
</template>
|
|
107
|
113
|
</el-table-column>
|
|
108
|
114
|
</template>
|
|
|
115
|
+
|
|
109
|
116
|
<!-- <el-table-column prop="stationName" label="站点名称" width="150" align="center" />
|
|
110
|
117
|
<el-table-column label="充电量(kWh)" align="center">
|
|
111
|
118
|
<el-table-column prop="chargeSharp" label="尖" align="center" />
|
|
|
@@ -535,6 +542,12 @@ import { other, Station } from "@/api/interface";
|
|
535
|
542
|
// 汇总表头
|
|
536
|
543
|
const columnList = ref([
|
|
537
|
544
|
{
|
|
|
545
|
+ prop: "grid",
|
|
|
546
|
+ label: "并网点",
|
|
|
547
|
+ ifcolumn: true,
|
|
|
548
|
+ children: null
|
|
|
549
|
+ },
|
|
|
550
|
+ {
|
|
538
|
551
|
prop: "stationName",
|
|
539
|
552
|
label: "日期",
|
|
540
|
553
|
ifcolumn: true,
|
|
|
@@ -620,6 +633,7 @@ const singlecolumnList = ref([
|
|
620
|
633
|
ifcolumn: true,
|
|
621
|
634
|
children: null
|
|
622
|
635
|
},
|
|
|
636
|
+
|
|
623
|
637
|
{
|
|
624
|
638
|
prop: "",
|
|
625
|
639
|
label: "充电量(kWh)",
|
|
|
@@ -1137,7 +1151,7 @@ const onexport = async () => {
|
|
1137
|
1151
|
if (columnList.value) {
|
|
1138
|
1152
|
for (const column of columnList.value) {
|
|
1139
|
1153
|
if (column?.ifcolumn) {
|
|
1140
|
|
- if (column.prop) {
|
|
|
1154
|
+ if (column.prop && column.prop != "grid") {
|
|
1141
|
1155
|
obj.push(column.prop);
|
|
1142
|
1156
|
}
|
|
1143
|
1157
|
if (column.children) {
|
|
|
@@ -1346,9 +1360,9 @@ const getstategriddayURL = async () => {
|
|
1346
|
1360
|
endDate: StateGrid.value[1]
|
|
1347
|
1361
|
};
|
|
1348
|
1362
|
const { data } = await stategriddayURL(obj, stategridSite.value);
|
|
1349
|
|
- data.total.stationName = "总计";
|
|
|
1363
|
+ // data.total.stationName = "总计";
|
|
1350
|
1364
|
|
|
1351
|
|
- data.list.push(data.total);
|
|
|
1365
|
+ // data.list.push(data.total);
|
|
1352
|
1366
|
GridReportdata.value = data;
|
|
1353
|
1367
|
};
|
|
1354
|
1368
|
// 月份
|
|
|
@@ -1358,9 +1372,9 @@ const getstategridmonthURL = async () => {
|
|
1358
|
1372
|
endYearMonth: StateGrid.value[1]
|
|
1359
|
1373
|
};
|
|
1360
|
1374
|
const { data } = await stategridmonthURL(obj, stategridSite.value);
|
|
1361
|
|
- data.total.stationName = "总计";
|
|
|
1375
|
+ // data.total.stationName = "总计";
|
|
1362
|
1376
|
|
|
1363
|
|
- data.list.push(data.total);
|
|
|
1377
|
+ // data.list.push(data.total);
|
|
1364
|
1378
|
GridReportdata.value = data;
|
|
1365
|
1379
|
};
|
|
1366
|
1380
|
// 年份
|
|
|
@@ -1370,9 +1384,9 @@ const getstategridyearURL = async () => {
|
|
1370
|
1384
|
endYear: StateGrid.value[1]
|
|
1371
|
1385
|
};
|
|
1372
|
1386
|
const { data } = await stategridyearURL(obj, stategridSite.value);
|
|
1373
|
|
- data.total.stationName = "总计";
|
|
|
1387
|
+ // data.total.stationName = "总计";
|
|
1374
|
1388
|
|
|
1375
|
|
- data.list.push(data.total);
|
|
|
1389
|
+ // data.list.push(data.total);
|
|
1376
|
1390
|
GridReportdata.value = data;
|
|
1377
|
1391
|
};
|
|
1378
|
1392
|
|