|
|
@@ -15,113 +15,173 @@
|
|
|
</el-date-picker>
|
|
|
</div>
|
|
|
<div class="but">
|
|
|
- <el-button type="primary" round size="mini">查询</el-button>
|
|
|
- <el-button type="warning" round size="mini">保存</el-button>
|
|
|
- <el-button
|
|
|
+ <el-button type="primary" round size="mini" @click="getTableData"
|
|
|
+ >查询</el-button
|
|
|
+ >
|
|
|
+ <el-button type="warning" round size="mini" @click="save"
|
|
|
+ >保存</el-button
|
|
|
+ >
|
|
|
+ <!-- <el-button
|
|
|
round
|
|
|
size="mini"
|
|
|
type="danger"
|
|
|
@click="exportPDFop"
|
|
|
:loading="loading"
|
|
|
>导出
|
|
|
- </el-button>
|
|
|
+ </el-button> -->
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="main_bot">
|
|
|
- <h2>新能源分公司生产日报 {{reportParamDate}}</h2>
|
|
|
+ <h2>新能源分公司生产日报 {{ reportParamDate }}</h2>
|
|
|
<div class="callbackTable warn-table">
|
|
|
- <el-table :data="tableData" border style="width: 100%;">
|
|
|
+ <el-table :data="tableData" border style="width: 100%">
|
|
|
<el-table-column label="生产指标完成情况" align="center">
|
|
|
<!-- 主要指标列 -->
|
|
|
- <el-table-column prop="indicator" label="主要指标" width="300" />
|
|
|
+ <el-table-column prop="prop" label="主要指标" width="300" />
|
|
|
<!-- 风电合计(惠安全场) -->
|
|
|
<el-table-column label="风电合计" align="center">
|
|
|
<el-table-column label="惠安全场" align="center">
|
|
|
- <el-table-column prop="total_current" label="本期" >
|
|
|
+ <el-table-column prop="all_bq" label="本期" align="center">
|
|
|
<template #default="scope">
|
|
|
<span v-if="showInput(scope.row, arrColumn1)">
|
|
|
- <el-input-number v-model="scope.row.total_current" :min="1" />
|
|
|
- </span>
|
|
|
- <span v-else>{{scope.row.total_current}}</span>
|
|
|
+ <el-input-number
|
|
|
+ class="currentInputNumber"
|
|
|
+ size="small"
|
|
|
+ v-model="scope.row.all_bq"
|
|
|
+ />
|
|
|
+ </span>
|
|
|
+ <span v-else>{{ scope.row.all_bq }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="total_month" label="月累/均">
|
|
|
+ <el-table-column
|
|
|
+ prop="all_month"
|
|
|
+ label="月累/均"
|
|
|
+ align="center"
|
|
|
+ >
|
|
|
<template #default="scope">
|
|
|
<span v-if="showInput(scope.row, arrColumn2)">
|
|
|
- <el-input-number v-model="scope.row.total_month" :min="1" />
|
|
|
- </span>
|
|
|
- <span v-else>{{scope.row.total_month}}</span>
|
|
|
+ <el-input-number
|
|
|
+ class="currentInputNumber"
|
|
|
+ size="small"
|
|
|
+ v-model="scope.row.all_month"
|
|
|
+ />
|
|
|
+ </span>
|
|
|
+ <span v-else>{{ scope.row.all_month }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="total_year" label="年累/均">
|
|
|
+ <el-table-column prop="all_year" label="年累/均" align="center">
|
|
|
<template #default="scope">
|
|
|
- <span v-if="showInput(scope.row, arrColumn3)">
|
|
|
- <el-input-number v-model="scope.row.total_year" :min="1" />
|
|
|
- </span>
|
|
|
- <span v-else>{{scope.row.total_year}}</span>
|
|
|
- </template>
|
|
|
+ <span v-if="showInput(scope.row, arrColumn3)">
|
|
|
+ <el-input-number
|
|
|
+ class="currentInputNumber"
|
|
|
+ size="small"
|
|
|
+ v-model="scope.row.all_year"
|
|
|
+ />
|
|
|
+ </span>
|
|
|
+ <span v-else>{{ scope.row.all_year }}</span>
|
|
|
+ </template>
|
|
|
</el-table-column>
|
|
|
</el-table-column>
|
|
|
<!-- 一期风机 -->
|
|
|
<el-table-column label="一期风机" align="center">
|
|
|
- <el-table-column prop="phase1_current" label="本期">
|
|
|
+ <el-table-column prop="project1_bq" label="本期" align="center">
|
|
|
<template #default="scope">
|
|
|
<span v-if="showInput(scope.row, arrColumn4)">
|
|
|
- <el-input-number v-model="scope.row.phase1_current" :min="1" />
|
|
|
- </span>
|
|
|
- <span v-else>{{scope.row.phase1_current}}</span>
|
|
|
+ <el-input-number
|
|
|
+ class="currentInputNumber"
|
|
|
+ size="small"
|
|
|
+ v-model="scope.row.project1_bq"
|
|
|
+ />
|
|
|
+ </span>
|
|
|
+ <span v-else>{{ scope.row.project1_bq }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="phase1_month" label="月累/均">
|
|
|
+ <el-table-column
|
|
|
+ prop="project1_month"
|
|
|
+ label="月累/均"
|
|
|
+ align="center"
|
|
|
+ >
|
|
|
<template #default="scope">
|
|
|
<span v-if="showInput(scope.row, arrColumn5)">
|
|
|
- <el-input-number v-model="scope.row.phase1_month" :min="1" />
|
|
|
- </span>
|
|
|
- <span v-else>{{scope.row.phase1_month}}</span>
|
|
|
+ <el-input-number
|
|
|
+ class="currentInputNumber"
|
|
|
+ size="small"
|
|
|
+ v-model="scope.row.project1_month"
|
|
|
+ />
|
|
|
+ </span>
|
|
|
+ <span v-else>{{ scope.row.project1_month }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="phase1_year" label="年累/均" >
|
|
|
+ <el-table-column
|
|
|
+ prop="project1_year"
|
|
|
+ label="年累/均"
|
|
|
+ align="center"
|
|
|
+ >
|
|
|
<template #default="scope">
|
|
|
<span v-if="showInput(scope.row, arrColumn6)">
|
|
|
- <el-input-number v-model="scope.row.phase1_year" :min="1" />
|
|
|
- </span>
|
|
|
- <span v-else>{{scope.row.phase1_year}}</span>
|
|
|
+ <el-input-number
|
|
|
+ class="currentInputNumber"
|
|
|
+ size="small"
|
|
|
+ v-model="scope.row.project1_year"
|
|
|
+ />
|
|
|
+ </span>
|
|
|
+ <span v-else>{{ scope.row.project1_year }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table-column>
|
|
|
|
|
|
<!-- 二期风机 -->
|
|
|
<el-table-column label="二期风机" align="center">
|
|
|
- <el-table-column prop="phase2_current" label="本期">
|
|
|
+ <el-table-column prop="project2_bq" label="本期" align="center">
|
|
|
<template #default="scope">
|
|
|
<span v-if="showInput(scope.row, arrColumn7)">
|
|
|
- <el-input-number v-model="scope.row.phase2_current" :min="1" />
|
|
|
- </span>
|
|
|
- <span v-else>{{scope.row.phase2_current}}</span>
|
|
|
+ <el-input-number
|
|
|
+ class="currentInputNumber"
|
|
|
+ size="small"
|
|
|
+ v-model="scope.row.project2_bq"
|
|
|
+ />
|
|
|
+ </span>
|
|
|
+ <span v-else>{{ scope.row.project2_bq }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="phase2_month" label="月累/均">
|
|
|
+ <el-table-column
|
|
|
+ prop="project2_month"
|
|
|
+ label="月累/均"
|
|
|
+ align="center"
|
|
|
+ >
|
|
|
<template #default="scope">
|
|
|
<span v-if="showInput(scope.row, arrColumn8)">
|
|
|
- <el-input-number v-model="scope.row.phase2_month" :min="1" />
|
|
|
- </span>
|
|
|
- <span v-else>{{scope.row.phase2_month}}</span>
|
|
|
+ <el-input-number
|
|
|
+ class="currentInputNumber"
|
|
|
+ size="small"
|
|
|
+ v-model="scope.row.project2_month"
|
|
|
+ />
|
|
|
+ </span>
|
|
|
+ <span v-else>{{ scope.row.project2_month }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="phase2_year" label="年累/均" >
|
|
|
- <template #default="scope">
|
|
|
+ <el-table-column
|
|
|
+ prop="project2_year"
|
|
|
+ label="年累/均"
|
|
|
+ align="center"
|
|
|
+ >
|
|
|
+ <template #default="scope">
|
|
|
<span v-if="showInput(scope.row, arrColumn9)">
|
|
|
- <el-input-number v-model="scope.row.phase2_year" :min="1" />
|
|
|
- </span>
|
|
|
- <span v-else>{{scope.row.phase2_year}}</span>
|
|
|
+ <el-input-number
|
|
|
+ class="currentInputNumber"
|
|
|
+ size="small"
|
|
|
+ v-model="scope.row.project2_year"
|
|
|
+ />
|
|
|
+ </span>
|
|
|
+ <span v-else>{{ scope.row.project2_year }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table-column>
|
|
|
</el-table-column>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
- <el-table :data="tableData1" border style="width: 100%;" class="tableH">
|
|
|
+ <el-table :data="tableData1" border style="width: 100%" class="tableH">
|
|
|
<el-table-column label="当前运行方式" align="center">
|
|
|
<el-table-column label="" prop="name" align="center" />
|
|
|
<el-table-column label="" prop="phase1" align="center" />
|
|
|
@@ -134,37 +194,81 @@
|
|
|
<el-table-column label="" prop="phase8" align="center" />
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
- <el-table :data="tableData2" border style="width: 100%;">
|
|
|
+ <el-table :data="tableData2" border style="width: 100%">
|
|
|
<el-table-column label="风功率预测" align="center">
|
|
|
- <el-table-column label="超短期功率预测准确率(%)" prop="name1" align="center" />
|
|
|
- <el-table-column label="短期功率预测准确率(%)" prop="name2" align="center" />
|
|
|
+ <el-table-column
|
|
|
+ label="超短期功率预测准确率(%)"
|
|
|
+ prop="name1"
|
|
|
+ align="center"
|
|
|
+ />
|
|
|
+ <el-table-column
|
|
|
+ label="短期功率预测准确率(%)"
|
|
|
+ prop="name2"
|
|
|
+ align="center"
|
|
|
+ />
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
- <el-table :data="tableData3" border style="width: 100%;">
|
|
|
+ <el-table :data="tableData3" border style="width: 100%">
|
|
|
<el-table-column label="两票统计" align="center">
|
|
|
<el-table-column label="" prop="name" align="center" />
|
|
|
- <el-table-column label="操作票" prop="total_current" align="center" />
|
|
|
+ <el-table-column
|
|
|
+ label="操作票"
|
|
|
+ prop="total_current"
|
|
|
+ align="center"
|
|
|
+ />
|
|
|
<el-table-column label="月累" prop="total_current" align="center" />
|
|
|
<el-table-column label="电气一种" align="center">
|
|
|
- <el-table-column label="许可" prop="total_current" align="center" />
|
|
|
- <el-table-column label="终结" prop="total_current" align="center" />
|
|
|
+ <el-table-column
|
|
|
+ label="许可"
|
|
|
+ prop="total_current"
|
|
|
+ align="center"
|
|
|
+ />
|
|
|
+ <el-table-column
|
|
|
+ label="终结"
|
|
|
+ prop="total_current"
|
|
|
+ align="center"
|
|
|
+ />
|
|
|
</el-table-column>
|
|
|
<el-table-column label="电气二种" align="center">
|
|
|
- <el-table-column label="许可" prop="total_current" align="center" />
|
|
|
- <el-table-column label="终结" prop="total_current" align="center" />
|
|
|
+ <el-table-column
|
|
|
+ label="许可"
|
|
|
+ prop="total_current"
|
|
|
+ align="center"
|
|
|
+ />
|
|
|
+ <el-table-column
|
|
|
+ label="终结"
|
|
|
+ prop="total_current"
|
|
|
+ align="center"
|
|
|
+ />
|
|
|
</el-table-column>
|
|
|
<el-table-column label="动火票" align="center">
|
|
|
- <el-table-column label="许可" prop="total_current" align="center" />
|
|
|
- <el-table-column label="终结" prop="total_current" align="center" />
|
|
|
+ <el-table-column
|
|
|
+ label="许可"
|
|
|
+ prop="total_current"
|
|
|
+ align="center"
|
|
|
+ />
|
|
|
+ <el-table-column
|
|
|
+ label="终结"
|
|
|
+ prop="total_current"
|
|
|
+ align="center"
|
|
|
+ />
|
|
|
</el-table-column>
|
|
|
<el-table-column label="风机/线路票" align="center">
|
|
|
- <el-table-column label="许可" prop="total_current" align="center" />
|
|
|
- <el-table-column label="终结" prop="total_current" align="center" />
|
|
|
+ <el-table-column
|
|
|
+ label="许可"
|
|
|
+ prop="total_current"
|
|
|
+ align="center"
|
|
|
+ />
|
|
|
+ <el-table-column
|
|
|
+ label="终结"
|
|
|
+ prop="total_current"
|
|
|
+ align="center"
|
|
|
+ />
|
|
|
</el-table-column>
|
|
|
<el-table-column label="月累" prop="total_current" />
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
- <el-table :data="tableData4" border style="width: 100%;">
|
|
|
+ <el-table :data="tableData4" border style="width: 100%">
|
|
|
<el-table-column label="缺陷情况" align="center">
|
|
|
<el-table-column label="" prop="name" align="center" />
|
|
|
<el-table-column label="当日新增" prop="phase1" align="center" />
|
|
|
@@ -174,13 +278,13 @@
|
|
|
<el-table-column label="年发生" prop="phase1" align="center" />
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
- <el-table :data="tableData5" border style="width: 100%;" class="tableH">
|
|
|
+ <el-table :data="tableData5" border style="width: 100%" class="tableH">
|
|
|
<el-table-column label="重要缺陷处理进度" align="center">
|
|
|
<el-table-column label="" prop="name1" align="center" />
|
|
|
<el-table-column label="" prop="phase1" align="center" />
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
- <el-table :data="tableData6" border style="width: 100%;" class="tableH">
|
|
|
+ <el-table :data="tableData6" border style="width: 100%" class="tableH">
|
|
|
<el-table-column label="主要工作" align="center">
|
|
|
<el-table-column label="" prop="name1" align="center" />
|
|
|
<el-table-column label="" prop="phase1" align="center" />
|
|
|
@@ -192,7 +296,9 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+import axios from "axios";
|
|
|
import dayjs from "dayjs";
|
|
|
+import fakeJsonData from "./fakeData.json";
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
@@ -204,225 +310,187 @@ export default {
|
|
|
tableData4: [],
|
|
|
tableData5: [],
|
|
|
tableData6: [],
|
|
|
- arrColumn1: ["上网电量", "网购电量", "限电量Y", "故障损失", "定检维护", "受累损失", "场用电量"],
|
|
|
+ arrColumn1: [
|
|
|
+ "上网电量",
|
|
|
+ "网购电量",
|
|
|
+ "限电量Y",
|
|
|
+ "故障损失",
|
|
|
+ "定检维护",
|
|
|
+ "受累损失",
|
|
|
+ "场用电量",
|
|
|
+ ],
|
|
|
arrColumn2: ["场用电量"],
|
|
|
arrColumn3: ["场用电量"],
|
|
|
- arrColumn4: ["发电量(万kW·h)实发", "平均风速(m/s)", "限电量Y", "故障损失", "定检维护", "受累损失", "设备可利用率(%)"],
|
|
|
+ arrColumn4: [
|
|
|
+ "发电量(万kW·h)实发",
|
|
|
+ "平均风速(m/s)",
|
|
|
+ "限电量Y",
|
|
|
+ "故障损失",
|
|
|
+ "定检维护",
|
|
|
+ "受累损失",
|
|
|
+ "设备可利用率(%)",
|
|
|
+ ],
|
|
|
arrColumn5: ["设备可利用率(%)"],
|
|
|
arrColumn6: ["设备可利用率(%)"],
|
|
|
arrColumn7: ["发电量(万kW·h)实发", "平均风速(m/s)", "设备可利用率(%)"],
|
|
|
arrColumn8: ["设备可利用率(%)"],
|
|
|
arrColumn9: ["设备可利用率(%)"],
|
|
|
- }
|
|
|
+ tdMap: [
|
|
|
+ {
|
|
|
+ key: "fdl_plan",
|
|
|
+ name: "发电量(万kW·h)计划",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ key: "fdl_actual",
|
|
|
+ name: "发电量(万kW·h)实发",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ key: "lyxss",
|
|
|
+ name: "利用小时数(h)",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ key: "pjfs",
|
|
|
+ name: "平均风速(m/s)",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ key: "swdl",
|
|
|
+ name: "上网电量(万kWh)",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ key: "wgdl",
|
|
|
+ name: "网购电量(万kWh)",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ key: "xdli",
|
|
|
+ name: "限电量Y(万kWh)",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ key: "xdlv",
|
|
|
+ name: "限电率Y(%)",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ key: "gzss",
|
|
|
+ name: "损失电量(万kWh)\n故障损失",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ key: "djss",
|
|
|
+ name: "损失电量(万kWh)\n定检维护",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ key: "slss",
|
|
|
+ name: "损失电量(万kWh)\n受累损失",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ key: "cydli",
|
|
|
+ name: "场用电量(万kWh)",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ key: "cydlv",
|
|
|
+ name: "场用电率(%)",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ key: "zhcydli",
|
|
|
+ name: "综合场用电量(万kWh)",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ key: "zhcydlv",
|
|
|
+ name: "综合场用电率(%)",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ key: "sbklyl",
|
|
|
+ name: "设备可利用率(%)",
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ sumbitMap: [
|
|
|
+ {
|
|
|
+ key: "区域集控.惠安风场.一期本期实际发电量",
|
|
|
+ tdMapKey: "fdl_actual.project1_bq",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ key: "区域集控.惠安风场.二期本期实际发电量",
|
|
|
+ tdMapKey: "fdl_actual.project2_bq",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ key: "区域集控.惠安风场.一期本期平均风速",
|
|
|
+ tdMapKey: "pjfs.project1_bq",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ key: "区域集控.惠安风场.二期本期平均风速",
|
|
|
+ tdMapKey: "pjfs.project2_bq",
|
|
|
+ },
|
|
|
+ { key: "区域集控.惠安风场.全场本期上网电量", tdMapKey: "swdl.all_bq" },
|
|
|
+ { key: "区域集控.惠安风场.全场本期购网电量", tdMapKey: "wgdl.all_bq" },
|
|
|
+ { key: "区域集控.惠安风场.全场本期限电量", tdMapKey: "xdli.all_bq" },
|
|
|
+ {
|
|
|
+ key: "区域集控.惠安风场.一期本期限电量",
|
|
|
+ tdMapKey: "xdli.project1_bq",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ key: "区域集控.惠安风场.全场本期故障损失电量",
|
|
|
+ tdMapKey: "gzss.all_bq",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ key: "区域集控.惠安风场.一期本期故障损失电量",
|
|
|
+ tdMapKey: "gzss.project1_bq",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ key: "区域集控.惠安风场.全场本期定检维护电量",
|
|
|
+ tdMapKey: "djss.all_bq",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ key: "区域集控.惠安风场.一期本期定检维护电量",
|
|
|
+ tdMapKey: "djss.project1_bq",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ key: "区域集控.惠安风场.全场本期受累损失电量",
|
|
|
+ tdMapKey: "slss.all_bq",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ key: "区域集控.惠安风场.一期本期受累损失电量",
|
|
|
+ tdMapKey: "slss.project1_bq",
|
|
|
+ },
|
|
|
+ { key: "区域集控.惠安风场.全场本期场用电量", tdMapKey: "cydli.all_bq" },
|
|
|
+ {
|
|
|
+ key: "区域集控.惠安风场.全场月累场用电量",
|
|
|
+ tdMapKey: "cydli.all_month",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ key: "区域集控.惠安风场.全场年累场用电量",
|
|
|
+ tdMapKey: "cydli.all_year",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ key: "区域集控.惠安风场.一期本期设备可利用率",
|
|
|
+ tdMapKey: "sbklyl.project1_bq",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ key: "区域集控.惠安风场.一期月累设备可利用率",
|
|
|
+ tdMapKey: "sbklyl.project1_month",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ key: "区域集控.惠安风场.一期年累设备可利用率",
|
|
|
+ tdMapKey: "sbklyl.project1_year",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ key: "区域集控.惠安风场.二期本期设备可利用率",
|
|
|
+ tdMapKey: "sbklyl.project2_bq",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ key: "区域集控.惠安风场.二期月累设备可利用率",
|
|
|
+ tdMapKey: "sbklyl.project2_month",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ key: "区域集控.惠安风场.二期年累设备可利用率",
|
|
|
+ tdMapKey: "sbklyl.project2_year",
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ };
|
|
|
},
|
|
|
+
|
|
|
mounted() {
|
|
|
- this.reportParamDate = dayjs(new Date()).format("YYYY-MM-DD")
|
|
|
- this.tableData = [
|
|
|
- {
|
|
|
- indicator: '风机发电数量(台)',
|
|
|
- total_current: 50,
|
|
|
- total_month: 50,
|
|
|
- total_year: 50,
|
|
|
- phase1_current: 25,
|
|
|
- phase1_month: 25,
|
|
|
- phase1_year: 25,
|
|
|
- phase2_current: 25,
|
|
|
- phase2_month: 25,
|
|
|
- phase2_year: 25,
|
|
|
- },
|
|
|
- {
|
|
|
- indicator: '发电量(万kW·h)计划',
|
|
|
- total_current: '',
|
|
|
- total_month: '',
|
|
|
- total_year: '',
|
|
|
- phase1_current: '',
|
|
|
- phase1_month: '',
|
|
|
- phase1_year: '',
|
|
|
- phase2_current: '',
|
|
|
- phase2_month: '',
|
|
|
- phase2_year: '',
|
|
|
- },
|
|
|
- {
|
|
|
- indicator: '发电量(万kW·h)实发',
|
|
|
- total_current: '',
|
|
|
- total_month: '',
|
|
|
- total_year: '',
|
|
|
- phase1_current: '区域集控.惠安风场.一期本期实际发电量',
|
|
|
- phase1_month: '',
|
|
|
- phase1_year: '',
|
|
|
- phase2_current: '区域集控.惠安风场.二期本期实际发电量',
|
|
|
- phase2_month: '',
|
|
|
- phase2_year: '',
|
|
|
- },
|
|
|
- {
|
|
|
- indicator: '利用小时数(h)',
|
|
|
- total_current: '',
|
|
|
- total_month: '',
|
|
|
- total_year: '',
|
|
|
- phase1_current: '',
|
|
|
- phase1_month: '',
|
|
|
- phase1_year: '',
|
|
|
- phase2_current: '',
|
|
|
- phase2_month: '',
|
|
|
- phase2_year: '',
|
|
|
- },
|
|
|
- {
|
|
|
- indicator: '平均风速(m/s)',
|
|
|
- total_current: '',
|
|
|
- total_month: '',
|
|
|
- total_year: '',
|
|
|
- phase1_current: '区域集控.惠安风场.一期本期平均风速',
|
|
|
- phase1_month: '',
|
|
|
- phase1_year: '',
|
|
|
- phase2_current: '区域集控.惠安风场.二期本期平均风速',
|
|
|
- phase2_month: '',
|
|
|
- phase2_year: '',
|
|
|
- },
|
|
|
- {
|
|
|
- indicator: '上网电量(万kWh)',
|
|
|
- total_current: '区域集控.惠安风场.全场本期上网电量',
|
|
|
- total_month: '',
|
|
|
- total_year: '',
|
|
|
- phase1_current: '',
|
|
|
- phase1_month: '',
|
|
|
- phase1_year: '',
|
|
|
- phase2_current: '',
|
|
|
- phase2_month: '',
|
|
|
- phase2_year: '',
|
|
|
- },
|
|
|
- {
|
|
|
- indicator: '网购电量(万kWh)',
|
|
|
- total_current: '区域集控.惠安风场.全场本期购网电量',
|
|
|
- total_month: '',
|
|
|
- total_year: '',
|
|
|
- phase1_current: '',
|
|
|
- phase1_month: '',
|
|
|
- phase1_year: '',
|
|
|
- phase2_current: '',
|
|
|
- phase2_month: '',
|
|
|
- phase2_year: '',
|
|
|
- },
|
|
|
- {
|
|
|
- indicator: '限电量Y(万kWh)',
|
|
|
- total_current: '区域集控.惠安风场.全场本期限电量',
|
|
|
- total_month: '',
|
|
|
- total_year: '',
|
|
|
- phase1_current: '区域集控.惠安风场.一期本期限电量',
|
|
|
- phase1_month: '',
|
|
|
- phase1_year: '',
|
|
|
- phase2_current: '',
|
|
|
- phase2_month: '',
|
|
|
- phase2_year: '',
|
|
|
- },
|
|
|
- {
|
|
|
- indicator: '限电率Y(%)',
|
|
|
- total_current: '',
|
|
|
- total_month: '',
|
|
|
- total_year: '',
|
|
|
- phase1_current: '',
|
|
|
- phase1_month: '',
|
|
|
- phase1_year: '',
|
|
|
- phase2_current: '',
|
|
|
- phase2_month: '',
|
|
|
- phase2_year: '',
|
|
|
- },
|
|
|
- {
|
|
|
- indicator: '损失电量(万kWh)\n故障损失',
|
|
|
- total_current: '区域集控.惠安风场.全场本期故障损失电量',
|
|
|
- total_month: '',
|
|
|
- total_year: '',
|
|
|
- phase1_current: '区域集控.惠安风场.一期本期故障损失电量',
|
|
|
- phase1_month: '',
|
|
|
- phase1_year: '',
|
|
|
- phase2_current: '',
|
|
|
- phase2_month: '',
|
|
|
- phase2_year: '',
|
|
|
- },
|
|
|
- {
|
|
|
- indicator: '损失电量(万kWh)\n定检维护',
|
|
|
- total_current: '区域集控.惠安风场.全场本期定检维护电量',
|
|
|
- total_month: '',
|
|
|
- total_year: '',
|
|
|
- phase1_current: '区域集控.惠安风场.一期本期定检维护电量',
|
|
|
- phase1_month: '',
|
|
|
- phase1_year: '',
|
|
|
- phase2_current: '',
|
|
|
- phase2_month: '',
|
|
|
- phase2_year: '',
|
|
|
- },
|
|
|
- {
|
|
|
- indicator: '损失电量(万kWh)\n受累损失',
|
|
|
- total_current: '区域集控.惠安风场.全场本期受累损失电量',
|
|
|
- total_month: '',
|
|
|
- total_year: '',
|
|
|
- phase1_current: '区域集控.惠安风场.一期本期受累损失电量',
|
|
|
- phase1_month: '',
|
|
|
- phase1_year: '',
|
|
|
- phase2_current: '',
|
|
|
- phase2_month: '',
|
|
|
- phase2_year: '',
|
|
|
- },
|
|
|
- {
|
|
|
- indicator: '场用电量(万kWh)',
|
|
|
- total_current: '区域集控.惠安风场.全场本期场用电量',
|
|
|
- total_month: '区域集控.惠安风场.全场月累场用电量',
|
|
|
- total_year: '区域集控.惠安风场.全场年累场用电量',
|
|
|
- phase1_current: '',
|
|
|
- phase1_month: '',
|
|
|
- phase1_year: '',
|
|
|
- phase2_current: '',
|
|
|
- phase2_month: '',
|
|
|
- phase2_year: '',
|
|
|
- },
|
|
|
- {
|
|
|
- indicator: '场用电率(%)',
|
|
|
- total_current: '',
|
|
|
- total_month: '',
|
|
|
- total_year: '',
|
|
|
- phase1_current: '',
|
|
|
- phase1_month: '',
|
|
|
- phase1_year: '',
|
|
|
- phase2_current: '',
|
|
|
- phase2_month: '',
|
|
|
- phase2_year: '',
|
|
|
- },
|
|
|
- {
|
|
|
- indicator: '综合场用电量(万kWh)',
|
|
|
- total_current: '',
|
|
|
- total_month: '',
|
|
|
- total_year: '',
|
|
|
- phase1_current: '',
|
|
|
- phase1_month: '',
|
|
|
- phase1_year: '',
|
|
|
- phase2_current: '',
|
|
|
- phase2_month: '',
|
|
|
- phase2_year: '',
|
|
|
- },
|
|
|
- {
|
|
|
- indicator: '综合场用电率(%)',
|
|
|
- total_current: '',
|
|
|
- total_month: '',
|
|
|
- total_year: '',
|
|
|
- phase1_current: '',
|
|
|
- phase1_month: '',
|
|
|
- phase1_year: '',
|
|
|
- phase2_current: '',
|
|
|
- phase2_month: '',
|
|
|
- phase2_year: '',
|
|
|
- },
|
|
|
- {
|
|
|
- indicator: '设备可利用率(%)',
|
|
|
- total_current: '',
|
|
|
- total_month: '',
|
|
|
- total_year: '',
|
|
|
- phase1_current: '区域集控.惠安风场.一期本期设备可利用率',
|
|
|
- phase1_month: '区域集控.惠安风场.一期月累设备可利用率',
|
|
|
- phase1_year: '区域集控.惠安风场.一期年累设备可利用率',
|
|
|
- phase2_current: '区域集控.惠安风场.二期本期设备可利用率',
|
|
|
- phase2_month: '区域集控.惠安风场.二期月累设备可利用率',
|
|
|
- phase2_year: '区域集控.惠安风场.二期年累设备可利用率',
|
|
|
- },
|
|
|
- ]
|
|
|
+ this.reportParamDate = dayjs(new Date()).format("YYYY-MM-DD");
|
|
|
+
|
|
|
+ this.getTableData();
|
|
|
+
|
|
|
this.tableData1 = [
|
|
|
{
|
|
|
name: "惠安风电",
|
|
|
@@ -445,59 +513,116 @@ export default {
|
|
|
phase6: "#2SVG",
|
|
|
phase7: "二期风机",
|
|
|
phase8: "运行25台,故障0台",
|
|
|
- }
|
|
|
- ]
|
|
|
+ },
|
|
|
+ ];
|
|
|
this.tableData2 = [
|
|
|
{
|
|
|
name1: "-",
|
|
|
- name2: "-"
|
|
|
- }
|
|
|
- ]
|
|
|
+ name2: "-",
|
|
|
+ },
|
|
|
+ ];
|
|
|
this.tableData3 = [
|
|
|
{
|
|
|
name: "惠安风电",
|
|
|
- total_current: "-"
|
|
|
- }
|
|
|
- ]
|
|
|
+ all_bq: "-",
|
|
|
+ },
|
|
|
+ ];
|
|
|
this.tableData4 = [
|
|
|
{
|
|
|
name: "惠安风电",
|
|
|
- phase1: "-"
|
|
|
- }
|
|
|
- ]
|
|
|
+ phase1: "-",
|
|
|
+ },
|
|
|
+ ];
|
|
|
this.tableData5 = [
|
|
|
{
|
|
|
name1: "惠安风电",
|
|
|
- phase1: "-"
|
|
|
- }
|
|
|
- ]
|
|
|
+ phase1: "-",
|
|
|
+ },
|
|
|
+ ];
|
|
|
this.tableData6 = [
|
|
|
{
|
|
|
name1: "惠安风电",
|
|
|
- phase1: "-"
|
|
|
- }
|
|
|
- ]
|
|
|
+ phase1: "-",
|
|
|
+ },
|
|
|
+ ];
|
|
|
},
|
|
|
+
|
|
|
methods: {
|
|
|
- showInput(row, arr){
|
|
|
- let show = false
|
|
|
- arr.forEach(it => {
|
|
|
- if (row.indicator.indexOf(it) > -1) {
|
|
|
- show = true
|
|
|
+ showInput(row, arr) {
|
|
|
+ let show = false;
|
|
|
+ arr.forEach((it) => {
|
|
|
+ if (row.prop.indexOf(it) > -1) {
|
|
|
+ show = true;
|
|
|
}
|
|
|
- if (row.indicator.indexOf("综合场用电量") > -1) {
|
|
|
- show = false
|
|
|
+ if (row.prop.indexOf("综合场用电量") > -1) {
|
|
|
+ show = false;
|
|
|
}
|
|
|
- })
|
|
|
- return show
|
|
|
+ });
|
|
|
+ return show;
|
|
|
// return arr.some(item => row.indicator.indexOf(item) > 0)
|
|
|
- }
|
|
|
- }
|
|
|
-}
|
|
|
+ },
|
|
|
+
|
|
|
+ getTableData() {
|
|
|
+ axios
|
|
|
+ .get(
|
|
|
+ `${process.env.VUE_APP_API}/equipmentInfoJs/queryAll?date=${this.reportParamDate}`
|
|
|
+ )
|
|
|
+ .then((res) => {
|
|
|
+ console.log(111, res);
|
|
|
+ });
|
|
|
+
|
|
|
+ let tData = [
|
|
|
+ {
|
|
|
+ prop: "风机发电数量(台)",
|
|
|
+ all_bq: 50,
|
|
|
+ all_month: 50,
|
|
|
+ all_year: 50,
|
|
|
+ project1_bq: 25,
|
|
|
+ project1_month: 25,
|
|
|
+ project1_year: 25,
|
|
|
+ project2_bq: 25,
|
|
|
+ project2_month: 25,
|
|
|
+ project2_year: 25,
|
|
|
+ },
|
|
|
+ ];
|
|
|
+ this.tdMap.forEach((ele) => {
|
|
|
+ let item = { prop: ele.name };
|
|
|
+ for (let fdKey in fakeJsonData[ele.key]) {
|
|
|
+ item[fdKey] = fakeJsonData[ele.key][fdKey];
|
|
|
+ }
|
|
|
+ item.key = ele.key;
|
|
|
+ tData.push(item);
|
|
|
+ });
|
|
|
+ this.tableData = tData;
|
|
|
+ },
|
|
|
+
|
|
|
+ save() {
|
|
|
+ let submitParms = [];
|
|
|
+
|
|
|
+ this.sumbitMap.forEach((ele) => {
|
|
|
+ const splitParam = ele.tdMapKey.split(".");
|
|
|
+ const findRes = this.tableData.find((findEle) => {
|
|
|
+ return findEle?.key === splitParam[0];
|
|
|
+ });
|
|
|
+ submitParms.push({
|
|
|
+ recordDate: this.reportParamDate,
|
|
|
+ meterName: ele.key,
|
|
|
+ stopCode: findRes[splitParam[1]],
|
|
|
+ });
|
|
|
+ });
|
|
|
+
|
|
|
+ axios
|
|
|
+ .put(`${process.env.VUE_APP_API}//equipmentInfoJs`, submitParms)
|
|
|
+ .then((res) => {
|
|
|
+ console.log(222, res);
|
|
|
+ });
|
|
|
+ },
|
|
|
+ },
|
|
|
+};
|
|
|
</script>
|
|
|
|
|
|
<style lang="less">
|
|
|
-.scrbCallback{
|
|
|
+.scrbCallback {
|
|
|
width: 100%;
|
|
|
height: 100%;
|
|
|
padding: 10px;
|
|
|
@@ -550,39 +675,47 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- .main_bot{
|
|
|
- .callbackTable{
|
|
|
+ .main_bot {
|
|
|
+ .callbackTable {
|
|
|
.el-table {
|
|
|
- .el-table__header-wrapper {
|
|
|
- .el-table__header {
|
|
|
- thead {
|
|
|
- tr {
|
|
|
- background: #e4e4e4 !important;
|
|
|
- th {
|
|
|
- background: #284071 !important;
|
|
|
- border: 1px solid #fff !important; // 确保文本垂直居中
|
|
|
- }
|
|
|
- .el-table__cell {
|
|
|
- line-height: 50px;
|
|
|
- border: 1px solid #fff !important; // 确保文本垂直居中
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
+ .el-table__header-wrapper {
|
|
|
+ .el-table__header {
|
|
|
+ thead {
|
|
|
+ tr {
|
|
|
+ background: #e4e4e4 !important;
|
|
|
+ th {
|
|
|
+ background: #284071 !important;
|
|
|
+ border: 1px solid #fff !important; // 确保文本垂直居中
|
|
|
+ }
|
|
|
+ .el-table__cell {
|
|
|
+ line-height: 50px;
|
|
|
+ border: 1px solid #fff !important; // 确保文本垂直居中
|
|
|
+ }
|
|
|
}
|
|
|
+ }
|
|
|
}
|
|
|
+ }
|
|
|
}
|
|
|
- .tableH{
|
|
|
+ .tableH {
|
|
|
.el-table__header thead tr:nth-child(2) th {
|
|
|
display: none;
|
|
|
}
|
|
|
}
|
|
|
- .el-input-number{
|
|
|
+ .el-input-number {
|
|
|
width: 100%;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
-}
|
|
|
|
|
|
+ .currentInputNumber {
|
|
|
+ .el-input-number__decrease,
|
|
|
+ .el-input-number__increase {
|
|
|
+ width: 20px;
|
|
|
+ }
|
|
|
|
|
|
+ .el-input__inner {
|
|
|
+ padding: 0 27px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
</style>
|