wanghc před 3 roky
rodič
revize
97539948fe

+ 0 - 28
ipfcst-console/src/main/frontend/router/modules/console.js

@@ -76,34 +76,6 @@ const consoleRouter = {
       sign: 'currency'
     },
     {
-      path: 'manualInterventionData',
-      component: () => import('@/views/console/manualInterventionData/index'),
-      name: 'ManualInterventionData',
-      meta: { title: '人工干预设置', noCache: true },
-      sign: 'currency'
-    },
-    {
-      path: 'manualInterventionQuery',
-      component: () => import('@/views/console/manualInterventionQuery/index'),
-      name: 'ManualInterventionQuery',
-      meta: { title: '人工干预数据查询', noCache: true },
-      sign: 'currency'
-    },
-    {
-      path: 'dataLimitation',
-      component: () => import('@/views/console/dataLimitation/index'),
-      name: 'DataLimitation',
-      meta: { title: '上报数据限制', noCache: true },
-      sign: 'currency'
-    },
-    {
-      path: 'dataLimitationLog',
-      component: () => import('@/views/console/dataLimitationLog/index'),
-      name: 'DataLimitationLog',
-      meta: { title: '上报数据操作记录', noCache: true },
-      sign: 'currency'
-    },
-    {
       path: 'fileAnalysisRecord',
       component: () => import('@/views/console/FileAnalysisRecord/index'),
       name: 'FileAnalysisRecord',

+ 0 - 361
ipfcst-console/src/main/frontend/views/console/dataLimitation/index.vue

@@ -1,361 +0,0 @@
-<template>
-  <div class="app-container">
-      <el-card class="box-carde">
-        <div slot="header" class="clearfix">
-          <span>上报数据限制设置</span>
-
-        </div>
-    <el-container>
-      <el-header style="padding: 0px;display:flex;justify-content:space-between;align-items: center">
-        <div style="display: inline">
-          <el-date-picker
-            v-model="dateTime"
-            type="date"
-            placeholder="选择日期"/>
-          <el-button type="primary" size="mini" style="margin-left: 5px" icon="el-icon-search" @click="searchEmp">搜索
-          </el-button>
-          <el-button type="primary" size="mini" style="margin-left: 5px" icon="el-icon-plus" @click="saveManual('form')">保存
-          </el-button>
-        </div>
-      </el-header>
-
-      <el-tabs v-model="activeName" type="card">
-
-        <div>
-          <el-table
-            v-loading="tableLoading"
-            :data="form.slice((currentPage-1)*pageSize,currentPage*pageSize)"
-            height="550px"
-            border
-            stripe
-            size="mini"
-            style="width: 100%">
-            <el-table-column
-              prop="time1"
-              header-align="center"
-              align="center"
-              label="时间">
-            </el-table-column>
-            <el-table-column
-              :show-overflow-tooltip="true"
-              prop="dataMin1"
-              header-align="center"
-              align="center"
-              label="下限值">
-              <template slot-scope="scope">
-                <vxe-input type="number" v-model="scope.row.dataMin1" size="small"  style="width:100%" min="0" :max="capacity" placeholder="超过装机容量默认最大值"></vxe-input>
-              </template>
-            </el-table-column>
-            <el-table-column
-              :show-overflow-tooltip="true"
-              prop="dataMax1"
-              header-align="center"
-              align="center"
-              label="上限值">
-              <template slot-scope="scope">
-                <vxe-input type="number" v-model="scope.row.dataMax1" size="small"  style="width:100%" min="0" :max="capacity" placeholder="超过装机容量默认最大值"></vxe-input>
-              </template>
-            </el-table-column>
-            <el-table-column
-              :show-overflow-tooltip="true"
-              prop="time2"
-              align="center"
-              header-align="center"
-              label="时间"/>
-            <el-table-column
-              :show-overflow-tooltip="true"
-              prop="dataMin2"
-              align="center"
-              header-align="center"
-              label="下限值">
-              <template slot-scope="scope">
-                <vxe-input type="number" v-model="scope.row.dataMin2" size="small"  style="width:100%" min="0" :max="capacity" placeholder="超过装机容量默认最大值"></vxe-input>
-              </template>
-            </el-table-column>
-            <el-table-column
-              :show-overflow-tooltip="true"
-              prop="dataMax2"
-              align="center"
-              header-align="center"
-              label="上限值">
-              <template slot-scope="scope">
-                <vxe-input type="number" v-model="scope.row.dataMax2" size="small"  style="width:100%" min="0" :max="capacity" placeholder="超过装机容量默认最大值"></vxe-input>
-              </template>
-            </el-table-column>
-            <el-table-column
-              :show-overflow-tooltip="true"
-              prop="time3"
-              align="center"
-              header-align="center"
-              label="时间"/>
-            <el-table-column
-              :show-overflow-tooltip="true"
-              prop="dataMin3"
-              align="center"
-              header-align="center"
-              label="下限值">
-              <template slot-scope="scope">
-                <vxe-input type="number" v-model="scope.row.dataMin3" size="small"  style="width:100%" min="0" :max="capacity" placeholder="超过装机容量默认最大值"></vxe-input>
-              </template>
-            </el-table-column>
-            <el-table-column
-              :show-overflow-tooltip="true"
-              prop="dataMax3"
-              align="center"
-              header-align="center"
-              label="上限值">
-              <template slot-scope="scope">
-                <vxe-input type="number" v-model="scope.row.dataMax3" size="small"  style="width:100%" min="0" :max="capacity" placeholder="超过装机容量默认最大值"></vxe-input>
-              </template>
-            </el-table-column>
-            <el-table-column
-              :show-overflow-tooltip="true"
-              prop="time4"
-              align="center"
-              header-align="center"
-              label="时间"/>
-            <el-table-column
-              :show-overflow-tooltip="true"
-              prop="dataMin4"
-              align="center"
-              header-align="center"
-              label="下限值">
-              <template slot-scope="scope">
-                <vxe-input type="number" v-model="scope.row.dataMin4" size="small"  style="width:100%" min="0" :max="capacity" placeholder="超过装机容量默认最大值"></vxe-input>
-              </template>
-            </el-table-column>
-            <el-table-column
-              :show-overflow-tooltip="true"
-              prop="dataMax4"
-              align="center"
-              header-align="center"
-              label="上限值">
-              <template slot-scope="scope">
-                <vxe-input type="number" v-model="scope.row.dataMax4" size="small"  style="width:100%" min="0" :max="capacity" placeholder="超过装机容量默认最大值"></vxe-input>
-              </template>
-            </el-table-column>
-          </el-table>
-        </div>
-      </el-tabs>
-    </el-container>
-    </el-card>
-  </div>
-</template>
-<script>
-export default {
-  data() {
-    return {
-      ef: '',
-      // 日期选择器
-      dateTime:  new Date(new Date().toLocaleDateString()),
-      // 场站信息存储对象
-      elTableData: [],
-      efiId: '',
-      emps: [],
-      dataList: [],
-      keywords: '',
-      jType: '',
-      dialogTitle: '',
-      multipleSelection: [],
-      downLoading: false,
-      depTextColor: '#c0c4cc',
-      totalCount: -1,
-      currentPage: 1,
-      pageSize:25,
-      dialogVisible: false,
-      tableLoading: false,
-      fileParsing: [],
-      activeName: 'first',
-      ultraValueData: [],
-      shortValueData: [],
-      realPowerValueData: [],
-      capacityUnit: '',
-      capacity: '',
-      shortValueDate: [],
-      form:[{
-        time1:'',
-        dataMax1:'',
-        dataMin1:'',
-        time2:'',
-        dataMax2:'',
-        dataMin2:'',
-        time3:'',
-        dataMax3:'',
-        dataMin3:'',
-        time4:'',
-        dataMax4:'',
-        dataMin4:'',
-        lastModifyTime:''
-      }],
-
-    }
-  },
-  created: function() {
-    this.getEl()
-
-  },
-
-  methods: {
-    getEl(){
-      this.$axios.get("/electricField/").then(res => {
-        this.capacity = res.data.capacity
-        this.queryManualIntervention()
-        // console.log("获取场站信息成功")
-      })
-    },
-    timestampToTimess(time) {
-      const date = new Date(time)// 时间戳为10位需*1000,时间戳为13位的话不需乘1000
-      const Y = date.getFullYear() + '-'
-      const M = (date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1) + '-'
-      const D = (date.getDate() < 10 ? '0' + (date.getDate()) : date.getDate()) + ' '
-      const H = (date.getHours() < 10 ? '0' + (date.getHours()) : date.getHours()) + ':'
-      const m = (date.getMinutes() < 10 ? '0' + (date.getMinutes()) : date.getMinutes())
-      return Y + M + D + H + m
-    },
-    timestampToTimes(time) {
-      const a = parseInt(time)
-      const date = new Date(a) // 时间戳为10位需*1000,时间戳为13位的话不需乘1000
-      const Y = date.getFullYear() + '-'
-      const M = (date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1) + '-'
-      const D = (date.getDate() < 10 ? '0' + (date.getDate()) : date.getDate()) + ' '
-      const H = (date.getHours() < 10 ? '0' + (date.getHours()) : date.getHours()) + ':'
-      const m = (date.getMinutes() < 10 ? '0' + (date.getMinutes()) : date.getMinutes())
-      return Y + M + D
-    },
-    // 根据类型获取class
-    queryManualIntervention() {
-      this.tableLoading =true
-      const a=[];
-      const b=[];
-      const c=[];
-      const d=[];
-      for(var i=0; i<=23;i++){
-        if(i<10){
-          a.push(this.timestampToTimes(Math.round(this.dateTime))+"0"+i+":00")
-          b.push(this.timestampToTimes(Math.round(this.dateTime))+"0"+i+":15")
-          c.push(this.timestampToTimes(Math.round(this.dateTime))+"0"+i+":30")
-          d.push(this.timestampToTimes(Math.round(this.dateTime))+"0"+i+":45")
-        }else{
-          a.push(this.timestampToTimes(Math.round(this.dateTime))+i+":00")
-          b.push(this.timestampToTimes(Math.round(this.dateTime))+i+":15")
-          c.push(this.timestampToTimes(Math.round(this.dateTime))+i+":30")
-          d.push(this.timestampToTimes(Math.round(this.dateTime))+i+":45")
-        }
-      }
-      for(var i=0; i<a.length;i++){
-        this.form[i]={
-          time1:a[i],
-          dataMax1:"",
-          dataMin1:"",
-          time2:b[i],
-          dataMax2:"",
-          dataMin2:"",
-          time3:c[i],
-          dataMax3:"",
-          dataMin3:"",
-          time4:d[i],
-          dataMax4:"",
-          dataMin4:"",
-        }
-      }
-      const startTime = Math.round(this.dateTime)
-      const endTime = Math.round(this.dateTime) + 60 * 60 * 24 * 1000 - 1
-      this.$axios.get('/dataLimitationController/queryDataLimitationServicea/'+startTime+'/'+endTime).then((res) => {
-        for(var i=0;i<res.data.length;i++){
-          for(var j=0;j<this.form.length;j++){
-            if(this.timestampToTimess(res.data[i].limitTime) == this.form[j].time1){
-              this.form[j].dataMax1 = res.data[i].upperLimit
-              this.form[j].dataMin1 = res.data[i].lowerLimit
-            }
-            if(this.timestampToTimess(res.data[i].limitTime) == this.form[j].time2){
-              this.form[j].dataMax2 = res.data[i].upperLimit
-              this.form[j].dataMin2 = res.data[i].lowerLimit
-            }
-            if(this.timestampToTimess(res.data[i].limitTime) == this.form[j].time3){
-              this.form[j].dataMax3 = res.data[i].upperLimit
-              this.form[j].dataMin3 = res.data[i].lowerLimit
-            }
-            if(this.timestampToTimess(res.data[i].limitTime) == this.form[j].time4){
-              this.form[j].dataMax4 = res.data[i].upperLimit
-              this.form[j].dataMin4 = res.data[i].lowerLimit
-            }
-          }
-        }
-        this.totalCount = this.form.length
-        this.tableLoading = false
-      }).catch((error) => {
-        this.$message.error('查询人工干预数据出错' + error)
-      })
-    },
-
-    saveManual(formName){
-      this.tableLoading = true
-      this.form[0].lastModifyTime = Math.round(this.dateTime)
-      this.$axios.put('/dataLimitationController/saveDataLimitation', this.form).then((res) => {
-        this.$message.success(`保存成功`)
-        this.queryManualIntervention()
-        this.tableLoading = false
-      }).catch((error) => {
-        this.$message.error('保存数据限制出错' + error)
-      })
-    },
-    // 时间格式化
-    dateFormat(row, column) {
-      const date = row[column.property]
-      if (date === undefined) {
-        return ''
-      }
-      return this.$moment(date).format('YYYY-MM-DD HH:mm:ss')// 使用moment插件进行日期格式化
-    },
-    timestampToTime(time) {
-      const a = parseInt(time)
-      const date = new Date(a) // 时间戳为10位需*1000,时间戳为13位的话不需乘1000
-      const Y = date.getFullYear() + '-'
-      const M = (date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1) + '-'
-      const D = (date.getDate() < 10 ? '0' + (date.getDate()) : date.getDate()) + ' '
-      const H = (date.getHours() < 10 ? '0' + (date.getHours()) : date.getHours()) + ':'
-      const m = (date.getMinutes() < 10 ? '0' + (date.getMinutes()) : date.getMinutes())
-      return H + m
-    },
-
-    searchEmp() {
-      this.queryManualIntervention()
-    },
-    currentChange(currentChange) {
-      this.currentPage = currentChange
-      this.queryManualIntervention()
-    },
-    handleSizeChange(handleSizeChange) {
-      this.pageSize = handleSizeChange
-      this.queryManualIntervention()
-    },
-    changeTime(row, column) {
-      return this.timestampToTime(row.time1)
-    },
-  }
-}
-</script>
-<style>
-.el-dialog__body {
-  padding-top: 0px;
-  padding-bottom: 0px;
-}
-
-.slide-fade-enter-active {
-  transition: all .8s ease;
-}
-
-.slide-fade-leave-active {
-  transition: all .8s cubic-bezier(1.0, 0.5, 0.8, 1.0);
-}
-
-.slide-fade-enter, .slide-fade-leave-to {
-  transform: translateX(10px);
-  opacity: 0;
-}
-
-#MyUltraShortTermChart {
-  width: 100%;
-  height: 400px;
-}
-</style>

+ 0 - 274
ipfcst-console/src/main/frontend/views/console/dataLimitationLog/index.vue

@@ -1,274 +0,0 @@
-<template>
-  <div class="app-container">
-    <el-card class="box-carde">
-      <div slot="header" class="clearfix">
-        <span>上报数据限制记录</span>
-      </div>
-      <el-container>
-        <el-header style="padding: 0px;display:flex;justify-content:space-between;align-items: center">
-          <div style="display: inline">
-            <el-date-picker
-              v-model="dateTime"
-              type="daterange"
-              range-separator="至"
-              start-placeholder="开始日期"
-              end-placeholder="结束日期"/>
-            <el-button type="primary" size="mini" style="margin-left: 5px" icon="el-icon-search" @click="searchEmp">搜索
-            </el-button>
-          </div>
-        </el-header>
-            <div>
-              <el-table
-                v-loading="tableLoading"
-                :data="emps.slice((currentPage-1)*pageSize,currentPage*pageSize)"
-                height="500px"
-                border
-                stripe
-                size="mini"
-                style="width: 100%">
-                <el-table-column
-                  :show-overflow-tooltip="true"
-                  :formatter="dateFormat"
-                  prop="operationalTime"
-                  align="center"
-                  header-align="center"
-                  label="操作时间"/>
-                <el-table-column
-                  :show-overflow-tooltip="true"
-                  prop="limitTime"
-                  :formatter="dateFormats"
-                  align="center"
-                  header-align="center"
-                  label="干预数据日期"/>
-                <el-table-column
-                  :show-overflow-tooltip="true"
-                  :formatter="operationalFormat"
-                  prop="operationalStatus"
-                  align="center"
-                  header-align="center"
-                  label="操作类型"/>
-                <el-table-column
-                  header-align="center"
-                  align="center"
-                  label="操作">
-                  <template slot-scope="scope">
-                    <el-button
-                      style="padding: 3px 4px 3px 4px;margin: 2px"
-                      size="mini"
-                      icon="el-icon-document"
-                      @click="showErrorInfo(scope.row)">查看内容
-                    </el-button>
-                  </template>
-                </el-table-column>
-              </el-table>
-              <div style="display: flex;justify-content: space-between;margin: 2px;float: right">
-                <el-pagination
-                  :current-page="currentPage"
-                  :page-size="pageSize"
-                  :page-sizes="[10, 25, 50, 100]"
-                  :total="totalCount"
-                  background
-                  layout="total, sizes, prev, pager, next, jumper"
-                  @size-change="handleSizeChange"
-                  @current-change="currentChange"/>
-              </div>
-            </div>
-        <el-form
-          ref="addEmpForm"
-          :model="emp"
-          style="margin: 0px;padding: 0px;"
-          label-width="100px">
-          <el-dialog
-            :close-on-click-modal="false"
-            :visible.sync="dialogVisibleErrorInfo"
-            title="具体信息"
-            style="padding: 0px;"
-            label-width="1px"
-            width="1000px">
-            <el-input
-              v-model="emp.operationalContext"
-              :rows="20"
-              type="textarea"
-              style="width: 100%" />
-            <span
-              slot="footer"
-              class="dialog-footer">
-            <el-button
-              size="mini"
-              @click="cancelEidtEI">关 闭</el-button>
-          </span>
-          </el-dialog>
-        </el-form>
-      </el-container>
-    </el-card>
-  </div>
-</template>
-<script>
-export default {
-
-
-  data() {
-    return {
-      ef: '',
-      // 日期选择器
-      dateTime: [new Date(new Date().toLocaleDateString()).getTime() , new Date(new Date().toLocaleDateString()).getTime() + 60 * 60 * 24 * 3 * 1000],
-      // 场站信息存储对象
-      elTableData: [],
-      efiId: '',
-      emps: [],
-      keywords: '',
-      jType: '',
-      dialogTitle: '',
-      dialogVisibleErrorInfo: false,
-      multipleSelection: [],
-      depTextColor: '#c0c4cc',
-      totalCount: -1,
-      currentPage: 1,
-      pageSize: 10,
-      dialogVisible: false,
-      tableLoading: false,
-      fileParsing: [],
-      activeName: 'first',
-      forecastAndManualInterventionData: [],
-      forecastValueCorrectAfterData: [],
-      forecastTimeData: [],
-      capacityUnit: '',
-      capacity:'',
-      emp:{
-        operationalContext:''
-      }
-    }
-  },
-  mounted: function() {
-    this.fileType=0;
-    this.getAllClass()
-  },
-
-  methods: {
-    cancelEidtEI () {
-      this.dialogVisibleErrorInfo = false
-    },
-    showErrorInfo (row) {
-      this.emp.operationalContext = row.operationalContext
-      this.dialogVisibleErrorInfo = true
-    },
-    // // 获取后台所有场站信息
-    // getELData() {
-    //   this.$axios.post('/electricFieldInfo/findAllElectricFieldInfo').then((res) => {
-    //     this.elTableData = res.data
-    //     this.efiId = res.data[0].id
-    //     // this.capacityUnit=res.data[0].capacityUnit
-    //     // this.type = 'NWP'
-    //     this.getAllClass()
-    //   })
-    // },
-    // 表格所属场站,ID转换场站名称
-    formatStation(row, column) {
-      let belongTo = '未知的所属场站'
-      for (let i = 0; i < this.elTableData.length; i++) {
-        if (row.efiId === this.elTableData[i].id) {
-          belongTo = this.elTableData[i].name
-        }
-      }
-      return belongTo
-    },
-    // 根据类型获取class
-    getAllClass() {
-      if (this.dateTime == '' || this.dateTime == null) {
-        alert('请选择时间')
-        return
-      }
-      this.$axios.get('/electricField/').then((res) => {
-        this.capacityUnit = 'mw'
-        this.capacity=res.data.capacity
-      })
-      const formData = new FormData()
-      const startTime = Math.round(this.dateTime[0])
-      const endTime = Math.round(this.dateTime[1]) + 60 * 60 * 24 * 1000 - 1
-      this.$axios.get('/dataLimitationLogController/queryDataLimitationLog/'+ startTime +'/' + endTime ).then((res) => {
-        this.emps = res.data
-        this.totalCount = this.emps.length
-      })
-
-    },
-    operationalFormat(row, column) {
-      let belongTo = '未知的文件类型场站'
-      for (let i = 0; i < this.emps.length; i++) {
-        if (row.operationalStatus =="0") {
-          belongTo ="新增"
-        }
-        if (row.operationalStatus =="1") {
-          belongTo ="修改"
-        }
-        if (row.operationalStatus =="2") {
-          belongTo ="删除"
-        }
-      }
-      return belongTo
-    },
-    // 时间格式化
-    dateFormat(row, column) {
-      const date = row[column.property]
-      if (date === undefined) {
-        return ''
-      }
-      return this.$moment(date).format('YYYY-MM-DD HH:mm:ss')// 使用moment插件进行日期格式化
-    },
-    timestampToTime(time) {
-      const a = parseInt(time)
-      const date = new Date(a) // 时间戳为10位需*1000,时间戳为13位的话不需乘1000
-      const Y = date.getFullYear() + '-'
-      const M = (date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1) + '-'
-      const D = (date.getDate() < 10 ? '0' + (date.getDate()) : date.getDate()) + ' '
-      const H = (date.getHours() < 10 ? '0' + (date.getHours()) : date.getHours()) + ':'
-      const m = (date.getMinutes() < 10 ? '0' + (date.getMinutes()) : date.getMinutes()) + ':'
-      const s = (date.getSeconds() < 10 ? '0' + (date.getSeconds()) : date.getSeconds())
-      return Y + M + D + H + m + s
-    },
-    // 时间格式化
-    dateFormats(row, column) {
-      const date = row[column.property]
-      if (date === undefined) {
-        return ''
-      }
-      return this.$moment(date).format('YYYY-MM-DD')// 使用moment插件进行日期格式化
-    },
-    searchEmp() {
-      this.getAllClass()
-    },
-    currentChange(currentChange) {
-      this.currentPage = currentChange
-      this.getAllClass()
-    },
-    handleSizeChange(handleSizeChange) {
-      this.pageSize = handleSizeChange
-      this.getAllClass()
-    },
-    // 自定义排序
-  }
-}
-</script>
-<style>
-.el-dialog__body {
-  padding-top: 0px;
-  padding-bottom: 0px;
-}
-
-.slide-fade-enter-active {
-  transition: all .8s ease;
-}
-
-.slide-fade-leave-active {
-  transition: all .8s cubic-bezier(1.0, 0.5, 0.8, 1.0);
-}
-
-.slide-fade-enter, .slide-fade-leave-to {
-  transform: translateX(10px);
-  opacity: 0;
-}
-
-#MyShortTermRealCharts {
-  width: 100%;
-  height: 500px;
-}
-</style>

+ 0 - 566
ipfcst-console/src/main/frontend/views/console/manualInterventionData/index.vue

@@ -1,566 +0,0 @@
-<template>
-  <div class="app-container">
-      <el-card class="box-carde">
-        <div slot="header" class="clearfix">
-          <span>人工干预设置</span>
-        </div>
-    <el-container>
-      <el-header style="padding: 0px;display:flex;justify-content:space-between;align-items: center">
-        <div style="display: inline">
-          <el-date-picker
-            v-model="dateTime"
-            type="date"
-            placeholder="选择日期"/>
-          <el-select v-model="fileType" :filterable="true" placeholder="请选择文件类型" prop="fileType">
-            <el-option
-              v-for="item in fileTypeData"
-              :key="item.value"
-              :label="item.label"
-              :value="item.value"/>
-          </el-select>
-          <el-button type="primary" size="mini" style="margin-left: 5px" icon="el-icon-search" @click="searchEmp">搜索
-          </el-button>
-          <el-button type="primary" size="mini" style="margin-left: 5px" icon="el-icon-plus" v-if="activeName=='first'" @click="saveManual('form')">保存
-          </el-button>
-          <el-button type="primary" size="mini" style="margin-left: 5px" icon="el-icon-refresh" v-if="activeName=='first'" @click="refresh">更新首页短期数据
-          </el-button>
-          <el-button type="primary" size="mini" v-if="activeName=='second'"  @click="insertEvent" style="margin-left: 5px"
-                     :loading="btnLonding">新增
-          </el-button>
-        </div>
-      </el-header>
-
-      <el-tabs v-model="activeName" type="card">
-        <el-tab-pane label="点位设置" name="first">
-          <div>
-          <el-table
-            v-loading="tableLoading"
-            :data="form.slice((currentPage-1)*pageSize,currentPage*pageSize)"
-            height="550px"
-            border
-            stripe
-            size="mini"
-            style="width: 100%">
-            <el-table-column
-              prop="time1"
-              header-align="center"
-              align="center"
-              label="时间">
-            </el-table-column>
-            <el-table-column
-              :show-overflow-tooltip="true"
-              prop="data1"
-              header-align="center"
-              align="center"
-              label="预测值">
-              <template slot-scope="scope">
-                <vxe-input type="number" v-model="scope.row.data1" size="small"  style="width:100%" min="0" :max="capacity" placeholder="超过装机容量默认最大值"></vxe-input>
-              </template>
-            </el-table-column>
-            <el-table-column
-              :show-overflow-tooltip="true"
-              prop="time2"
-              align="center"
-              header-align="center"
-              label="时间"/>
-            <el-table-column
-              :show-overflow-tooltip="true"
-              prop="data2"
-              align="center"
-              header-align="center"
-              label="预测值">
-              <template slot-scope="scope">
-                <vxe-input type="number" v-model="scope.row.data2" size="small"  style="width:100%" min="0" :max="capacity" placeholder="超过装机容量默认最大值"></vxe-input>
-              </template>
-            </el-table-column>
-            <el-table-column
-              :show-overflow-tooltip="true"
-              prop="time3"
-              align="center"
-              header-align="center"
-              label="时间"/>
-            <el-table-column
-              :show-overflow-tooltip="true"
-              prop="data3"
-              align="center"
-              header-align="center"
-              label="预测值">
-              <template slot-scope="scope">
-                <vxe-input type="number" v-model="scope.row.data3" size="small"  style="width:100%" min="0" :max="capacity" placeholder="超过装机容量默认最大值"></vxe-input>
-              </template>
-            </el-table-column>
-            <el-table-column
-              :show-overflow-tooltip="true"
-              prop="time4"
-              align="center"
-              header-align="center"
-              label="时间"/>
-            <el-table-column
-              :show-overflow-tooltip="true"
-              prop="data4"
-              align="center"
-              header-align="center"
-              label="预测值">
-              <template slot-scope="scope">
-                <vxe-input type="number" v-model="scope.row.data4" size="small"  style="width:100%" min="0" :max="capacity" placeholder="超过装机容量默认最大值"></vxe-input>
-              </template>
-            </el-table-column>
-          </el-table>
-          <div style="display: flex;justify-content: space-between;margin: 2px;float: right">
-            <el-pagination
-              :current-page="currentPage"
-              :page-size="pageSize"
-              :page-sizes="[25, 50, 100]"
-              :total="totalCount"
-              layout="total, sizes, prev, pager, next, jumper"
-              @size-change="handleSizeChange"
-              @current-change="currentChange"/>
-          </div>
-        </div>
-        </el-tab-pane>
-        <el-tab-pane label="系数设置" name="second">
-          <div style="padding-top: 10px">
-            <vxe-table
-              highlight-hover-row
-              :keep-source="true"
-              align="center"
-              :loading="loading"
-              v-loading="false"
-              ref="xTable"
-              auto-resize
-              highlight-current-row
-              border
-              resizable
-              show-overflow
-              :data="tableData"
-              :edit-config="{trigger: 'manual', mode: 'row',autoClear: false,icon:'none'}"
-            >
-                <vxe-table-column width="25%" field="interveneStartTime" title="开始时间"
-                                  :edit-render="{name:'$input',attrs:{type:'text'}}">
-                  <template v-slot:edit="{ row }">
-                    <el-time-select
-                      style="width: 100%"
-                      v-model="row.interveneStartTime"
-                      :picker-options="{
-                        start: '00:00',
-                        step: '00:15',
-                        end: '23:45'
-                      }"
-                      placeholder="选择开始时间"
-                      />
-                  </template>
-                  <template v-slot="{ row }">{{ timestampToTimeRatio(row.interveneStartTime) }}
-                  </template>
-                </vxe-table-column>
-                <vxe-table-column width="25%" field="interveneEndTime" title="结束时间"
-                                  :edit-render="{name:'$input',attrs:{type:'text'}}">
-                  <template v-slot:edit="{ row }">
-                    <el-time-select
-                      style="width: 100%"
-                      v-model="row.interveneEndTime"
-                      :picker-options="{
-                        start: '00:00',
-                        step: '00:15',
-                        end: '23:45'
-                      }"
-                      placeholder="选择结束时间"/>
-                  </template>
-                  <template v-slot="{ row }">{{
-                      timestampToTimeRatio(row.interveneEndTime)
-                    }}
-                  </template>
-                </vxe-table-column>
-              <vxe-table-column field="ratio" width="25%" title="系数"
-                                :edit-render="{name:'$input',attrs:{type:'text'}}"></vxe-table-column>
-              <vxe-table-column fixed="right" width="25%" title="操作">
-                <template v-slot="{ row }">
-                  <template v-if="$refs.xTable.isActiveByRow(row)">
-                    <el-button
-                      style="padding: 3px 4px 3px 4px;margin: 2px"
-                      size="mini"
-                      icon="el-icon-edit"
-                      :loading="saveLoding"
-                      @click="saveRatioData(row)">保存
-                    </el-button>
-                    <el-button
-                      style="padding: 3px 4px 3px 4px;margin: 2px"
-                      size="mini"
-                      icon="el-icon-edit"
-                      @click="cancelRowEvent(row)">取消
-                    </el-button>
-                  </template>
-                  <template v-else>
-                    <el-button
-                      style="padding: 3px 4px 3px 4px;margin: 2px"
-                      size="mini"
-                      icon="el-icon-edit"
-                      @click="editRowEvent(row)"
-                      :loading="btnLonding">编辑
-                    </el-button>
-                    <el-button
-                      type="danger"
-                      style="padding: 3px 4px 3px 4px;margin: 2px"
-                      size="mini"
-                      icon="el-icon-delete"
-                      @click="removeEvent(row)"
-                      :loading=btnLonding>删除
-                    </el-button>
-                  </template>
-                </template>
-              </vxe-table-column>
-            </vxe-table>
-          </div>
-        </el-tab-pane>
-      </el-tabs>
-    </el-container>
-    </el-card>
-  </div>
-</template>
-<script>
-export default {
-  data() {
-    return {
-      saveLoding: false,
-      showTable: true,
-      btnLonding: false,
-      ef: '',
-      // 日期选择器
-      dateTime:  new Date(new Date().toLocaleDateString()),
-      // 场站信息存储对象
-      elTableData: [],
-      efiId: '',
-      emps: [],
-      dataList: [],
-      keywords: '',
-      jType: '',
-      dialogTitle: '',
-      loading:false,
-      multipleSelection: [],
-      downLoading: false,
-      depTextColor: '#c0c4cc',
-      totalCount: -1,
-      currentPage: 1,
-      pageSize:25,
-      dialogVisible: false,
-      tableLoading: false,
-      fileParsing: [],
-      activeName: 'first',
-      ultraValueData: [],
-      shortValueData: [],
-      realPowerValueData: [],
-      capacityUnit: '',
-      capacity: '',
-      shortValueDate: [],
-      fileType:'',
-      fileTypeData:[
-        { value: 0, label: '短期' },
-        { value: 1, label: '超短期' }
-      ],
-      form:[{
-        time1:'',
-        data1:'',
-        time2:'',
-        data2:'',
-        time3:'',
-        data3:'',
-        time4:'',
-        data4:'',
-        fileType:'',
-        lastModifyTime:''
-      }],
-      radioStartTime:'',
-      radioEndTime:',',
-      tableData:[],
-      isEdit:false,
-    }
-  },
-  created: function() {
-    this.fileType=0;
-    this.getEl()
-
-  },
-
-  methods: {
-    //取消编辑或添加操作
-    cancelRowEvent(row) {
-      this.saveLoding = false
-      this.btnLonding = false
-      const xTable = this.$refs.xTable
-      xTable.clearActived().then(() => {
-        // 还原行数据
-        if (!this.isEdit) {
-          //编辑
-          xTable.revertData(row)
-        } else {
-          //新增
-          xTable.remove(row)
-        }
-        this.isEdit = false
-      })
-    },
-    //编辑框改变
-    editRowEvent(row) {
-      this.startTimeShow = false
-      if(row.interveneStartTime < new Date().getTime()){
-        this.startTimeShow = true
-      }
-      this.checkSign = true
-      this.btnLonding = true
-      row.interveneStartTime = this.timestampToTimeRatio(row.interveneStartTime)
-      row.interveneEndTime = this.timestampToTimeRatio(row.interveneEndTime)
-      this.$refs.xTable.setActiveRow(row)
-    },
-    //删除数据
-    removeEvent(row) {
-      this.$XModal.confirm('您确定要删除该数据?').then(type => {
-        if (type === 'confirm') {
-          this.$axios.delete("/manualInterventionRatioController/delete/"+row.id).then(response => {
-            this.$message.success(`删除成功`)
-            this.queryManualInterventionRatio()
-          })
-        }
-      })
-    },
-    //新增编辑框
-    insertEvent() {
-      this.isEdit = true
-      this.startTimeShow = false
-      this.showTable = true
-      this.btnLonding = true
-      this.checkSign = false
-      this.$refs.xTable.insert()
-        .then(({row}) => this.$refs.xTable.setActiveRow(row))
-    },
-    getEl(){
-      this.$axios.get("/electricField/").then(res => {
-        this.capacity = res.data.capacity
-        this.queryManualIntervention()
-        this.queryManualInterventionRatio()
-      })
-    },
-    refreshShortTermHisData(){
-      this.$XModal.confirm('您确定要更新首页短期数据?').then(type => {
-        if (type === 'confirm') {
-          this.$axios.get('/manualInterventionController/refreshSt',).then(res => {
-            if(res.code == 0 ){
-              this.$message.success("更新成功!")
-            }
-          })
-        }
-      })
-    },
-    timestampToTimess(time) {
-      const date = new Date(time)// 时间戳为10位需*1000,时间戳为13位的话不需乘1000
-      const Y = date.getFullYear() + '-'
-      const M = (date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1) + '-'
-      const D = (date.getDate() < 10 ? '0' + (date.getDate()) : date.getDate()) + ' '
-      const H = (date.getHours() < 10 ? '0' + (date.getHours()) : date.getHours()) + ':'
-      const m = (date.getMinutes() < 10 ? '0' + (date.getMinutes()) : date.getMinutes())
-      return Y + M + D + H + m
-    },
-    timestampToTimeRatio(time) {
-      const date = new Date(time)// 时间戳为10位需*1000,时间戳为13位的话不需乘1000
-      const H = (date.getHours() < 10 ? '0' + (date.getHours()) : date.getHours()) + ':'
-      const m = (date.getMinutes() < 10 ? '0' + (date.getMinutes()) : date.getMinutes())
-      return H + m
-    },
-    // 根据类型获取class
-    queryManualIntervention() {
-      this.tableLoading =true
-      const a=[];
-      const b=[];
-      const c=[];
-      const d=[];
-      for(var i=0; i<=23;i++){
-        if(i<10){
-          a.push(this.timestampToTimes(Math.round(this.dateTime))+"0"+i+":00")
-          b.push(this.timestampToTimes(Math.round(this.dateTime))+"0"+i+":15")
-          c.push(this.timestampToTimes(Math.round(this.dateTime))+"0"+i+":30")
-          d.push(this.timestampToTimes(Math.round(this.dateTime))+"0"+i+":45")
-        }else{
-          a.push(this.timestampToTimes(Math.round(this.dateTime))+i+":00")
-          b.push(this.timestampToTimes(Math.round(this.dateTime))+i+":15")
-          c.push(this.timestampToTimes(Math.round(this.dateTime))+i+":30")
-          d.push(this.timestampToTimes(Math.round(this.dateTime))+i+":45")
-        }
-      }
-      for(var i=0; i<a.length;i++){
-        this.form[i]={
-          time1:a[i],
-          data1:"",
-          time2:b[i],
-          data2:"",
-          time3:c[i],
-          data3:"",
-          time4:d[i],
-          data4:"",
-        }
-      }
-      const startTime = Math.round(this.dateTime)
-      const endTime = Math.round(this.dateTime) + 60 * 60 * 24 * 1000 - 1
-      this.$axios.get('/manualInterventionController/queryManualInterventionData/'+startTime+'/'+endTime+'/'+this.fileType).then((res) => {
-        for(var i=0;i<res.data.length;i++){
-          for(var j=0;j<this.form.length;j++){
-            if(this.timestampToTimess(res.data[i].interveneTime) == this.form[j].time1){
-              this.form[j].data1 = res.data[i].interveneData
-            }
-            if(this.timestampToTimess(res.data[i].interveneTime) == this.form[j].time2){
-              this.form[j].data2 = res.data[i].interveneData
-            }
-            if(this.timestampToTimess(res.data[i].interveneTime) == this.form[j].time3){
-              this.form[j].data3 = res.data[i].interveneData
-            }
-            if(this.timestampToTimess(res.data[i].interveneTime) == this.form[j].time4){
-              this.form[j].data4 = res.data[i].interveneData
-            }
-          }
-        }
-        this.totalCount = this.form.length
-        this.tableLoading = false
-      }).catch((error) => {
-        this.$message.error('查询人工干预数据出错' + error)
-      })
-    },
-
-    saveManual(formName){
-      this.tableLoading = true
-      this.form[0].fileType = this.fileType
-      this.form[0].lastModifyTime = Math.round(this.dateTime)
-      this.$axios.put('/manualInterventionController/saveManualIntervention', this.form).then((res) => {
-        this.$message.success(`保存成功`)
-        this.queryManualIntervention()
-        this.tableLoading = false
-      }).catch((error) => {
-        this.$message.error('保存人工干预数据出错' + error)
-      })
-    },
-    time_to_sec(time) {
-
-      if (time !== null) {
-        var s = "";
-        var hour = time.split(":")[0];
-        var min = time.split(":")[1];
-        var sec = time.split(":")[2];
-        s = Number(hour * 3600) + Number(min * 60) + Number(sec);
-        return s;
-      }
-    },
-    queryManualInterventionRatio(){
-      this.loading = true
-      this.saveLoding = false
-      const startTime = Math.round(this.dateTime)
-      const endTime = Math.round(this.dateTime) + 60 * 60 * 24 * 1000 - 1
-      this.$axios.get('/manualInterventionRatioController/queryManualInterventionRatioData/'+startTime+'/'+endTime+'/'+this.fileType).then((res) => {
-        this.tableData = res.data
-        this.loading = false
-      })
-    },
-    saveRatioData(row){
-      this.saveLoding = true
-      if(row.ratio == null || row.interveneStartTime ==null ||row.interveneEndTime == null||row.interveneStartTime >= row.interveneEndTime){
-        this.saveLoding = false
-        return this.$XModal.message({status: 'error', message: '校验不通过!'})
-      }
-      const formData = new FormData()
-      formData.append('ratio', row.ratio)
-      formData.append('interveneStartTime', this.dateTime.getTime()+this.time_to_sec(row.interveneStartTime+":00")*1000)
-      formData.append('interveneEndTime',this.dateTime.getTime()+this.time_to_sec(row.interveneEndTime+":00")*1000)
-      formData.append('interveneType', this.fileType)
-      row.interveneStartTime = this.dateTime.getTime()+this.time_to_sec(row.interveneStartTime+":00")*1000
-      row.interveneEndTime = this.dateTime.getTime()+this.time_to_sec(row.interveneEndTime+":00")*1000
-      row.interveneType = this.fileType
-      this.$refs.xTable.validate(valid => {
-        if (valid) {
-          this.$refs.xTable.clearActived().then(() => {
-            this.loading = true
-            this.$axios.post("/manualInterventionRatioController/saveManualInterventionRatio", row).then(response => {
-              this.$XModal.message({status: 'warning', message: response.message})
-              this.saveLoding = false
-
-              this.queryManualInterventionRatio()
-            })
-            this.btnLonding = false
-            this.loading = false
-          })
-
-        } else {
-          this.$XModal.message({status: 'error', message: '校验不通过!'})
-          this.saveLoding = false
-          this.loading = false
-        }
-
-      })
-    },
-    // 时间格式化
-    dateFormat(row, column) {
-      const date = row[column.property]
-      if (date === undefined) {
-        return ''
-      }
-      return this.$moment(date).format('YYYY-MM-DD HH:mm:ss')// 使用moment插件进行日期格式化
-    },
-    timestampToTime(time) {
-      const a = parseInt(time)
-      const date = new Date(a) // 时间戳为10位需*1000,时间戳为13位的话不需乘1000
-      const Y = date.getFullYear() + '-'
-      const M = (date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1) + '-'
-      const D = (date.getDate() < 10 ? '0' + (date.getDate()) : date.getDate()) + ' '
-      const H = (date.getHours() < 10 ? '0' + (date.getHours()) : date.getHours()) + ':'
-      const m = (date.getMinutes() < 10 ? '0' + (date.getMinutes()) : date.getMinutes())
-      return H + m
-    },
-    timestampToTimes(time) {
-      const a = parseInt(time)
-      const date = new Date(a) // 时间戳为10位需*1000,时间戳为13位的话不需乘1000
-      const Y = date.getFullYear() + '-'
-      const M = (date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1) + '-'
-      const D = (date.getDate() < 10 ? '0' + (date.getDate()) : date.getDate()) + ' '
-      const H = (date.getHours() < 10 ? '0' + (date.getHours()) : date.getHours()) + ':'
-      const m = (date.getMinutes() < 10 ? '0' + (date.getMinutes()) : date.getMinutes())
-      return Y + M +D
-    },
-    searchEmp() {
-      this.queryManualIntervention()
-      this.queryManualInterventionRatio()
-    },
-    refresh(){
-      this.refreshShortTermHisData()
-    },
-    currentChange(currentChange) {
-      this.currentPage = currentChange
-      this.queryManualIntervention()
-    },
-    handleSizeChange(handleSizeChange) {
-      this.pageSize = handleSizeChange
-      this.queryManualIntervention()
-    },
-    changeTime(row, column) {
-      return this.timestampToTime(row.time1)
-    },
-  }
-}
-</script>
-<style>
-.el-dialog__body {
-  padding-top: 0px;
-  padding-bottom: 0px;
-}
-
-.slide-fade-enter-active {
-  transition: all .8s ease;
-}
-
-.slide-fade-leave-active {
-  transition: all .8s cubic-bezier(1.0, 0.5, 0.8, 1.0);
-}
-
-.slide-fade-enter, .slide-fade-leave-to {
-  transform: translateX(10px);
-  opacity: 0;
-}
-
-#MyUltraShortTermChart {
-  width: 100%;
-  height: 400px;
-}
-</style>

+ 0 - 492
ipfcst-console/src/main/frontend/views/console/manualInterventionQuery/index.vue

@@ -1,492 +0,0 @@
-<template>
-  <div class="app-container">
-    <el-card class="box-carde">
-      <div slot="header" class="clearfix">
-        <span>人工干预记录</span>
-      </div>
-    <el-container>
-      <el-header style="padding: 0px;display:flex;justify-content:space-between;align-items: center">
-        <div style="display: inline">
-          <el-date-picker
-            v-model="dateTime"
-            type="daterange"
-            range-separator="至"
-            start-placeholder="开始日期"
-            end-placeholder="结束日期"/>
-
-          <el-select v-model="fileType" :filterable="true" placeholder="请选择文件类型" prop="fileType">
-            <el-option
-              v-for="item in fileTypeData"
-              :key="item.value"
-              :label="item.label"
-              :value="item.value"/>
-          </el-select>
-          <el-button type="primary" size="mini" style="margin-left: 5px" icon="el-icon-search" @click="searchEmp">搜索
-          </el-button>
-        </div>
-      </el-header>
-
-      <el-tabs v-model="activeName" type="card">
-        <el-tab-pane label="人工干预数据图表对比" name="first">
-          <el-main style="padding-left: 0px;padding-top: 0px">
-            <div class="container">
-              <div id="MyShortTermRealCharts"/>
-            </div>
-          </el-main>
-        </el-tab-pane>
-
-        <el-tab-pane label="人工干预记录列表" name="second">
-          <div>
-            <el-table
-              v-loading="tableLoading"
-              :data="emps.slice((currentPage-1)*pageSize,currentPage*pageSize)"
-              height="500px"
-              border
-              stripe
-              size="mini"
-              style="width: 100%">
-              <el-table-column
-                sortable="custom"
-                :formatter="fileTypeFormat"
-                prop="fileType"
-                align="center"
-                header-align="center"
-                label="文件类型"/>
-              <el-table-column
-                :show-overflow-tooltip="true"
-                :formatter="dateFormat"
-                prop="operationalTime"
-                align="center"
-                header-align="center"
-                label="操作时间"/>
-              <el-table-column
-                :show-overflow-tooltip="true"
-                prop="interveneTime"
-                :formatter="dateFormats"
-                align="center"
-                header-align="center"
-                label="干预数据日期"/>
-              <el-table-column
-                :show-overflow-tooltip="true"
-                :formatter="operationalFormat"
-                prop="operationalStatus"
-                align="center"
-                header-align="center"
-                label="操作类型"/>
-              <el-table-column
-                header-align="center"
-                align="center"
-                label="操作">
-                <template slot-scope="scope">
-                  <el-button
-                    style="padding: 3px 4px 3px 4px;margin: 2px"
-                    size="mini"
-                    icon="el-icon-document"
-                    @click="showErrorInfo(scope.row)">查看内容
-                  </el-button>
-                </template>
-              </el-table-column>
-            </el-table>
-            <div style="display: flex;justify-content: space-between;margin: 2px;float: right">
-              <el-pagination
-                :current-page="currentPage"
-                :page-size="pageSize"
-                :page-sizes="[10, 25, 50, 100]"
-                :total="totalCount"
-                background
-                layout="total, sizes, prev, pager, next, jumper"
-                @size-change="handleSizeChange"
-                @current-change="currentChange"/>
-            </div>
-          </div>
-        </el-tab-pane>
-      </el-tabs>
-      <el-form
-        ref="addEmpForm"
-        :model="emp"
-        style="margin: 0px;padding: 0px;"
-        label-width="100px">
-        <el-dialog
-          :close-on-click-modal="false"
-          :visible.sync="dialogVisibleErrorInfo"
-          title="具体信息"
-          style="padding: 0px;"
-          label-width="1px"
-          width="1000px">
-          <el-input
-            v-model="emp.operationalContext"
-            :rows="20"
-            type="textarea"
-            style="width: 100%" />
-          <span
-            slot="footer"
-            class="dialog-footer">
-            <el-button
-              size="mini"
-              @click="cancelEidtEI">关 闭</el-button>
-          </span>
-        </el-dialog>
-      </el-form>
-    </el-container>
-    </el-card>
-  </div>
-</template>
-<script>
-export default {
-
-
-  data() {
-    return {
-      ef: '',
-      // 日期选择器
-      dateTime: [new Date(new Date().toLocaleDateString()).getTime() , new Date(new Date().toLocaleDateString()).getTime() + 60 * 60 * 24 * 3 * 1000],
-      // 场站信息存储对象
-      elTableData: [],
-      efiId: '',
-      emps: [],
-      fileType:'',
-      fileTypeData:[
-        { value: 0, label: '短期' },
-        { value: 1, label: '超短期' }
-      ],
-      keywords: '',
-      jType: '',
-      dialogTitle: '',
-      dialogVisibleErrorInfo: false,
-      multipleSelection: [],
-      depTextColor: '#c0c4cc',
-      totalCount: -1,
-      currentPage: 1,
-      pageSize: 10,
-      dialogVisible: false,
-      tableLoading: false,
-      fileParsing: [],
-      activeName: 'first',
-      forecastAndManualInterventionData: [],
-      forecastValueCorrectAfterData: [],
-      forecastTimeData: [],
-      capacityUnit: '',
-      capacity:'',
-      emp:{
-        operationalContext:''
-      }
-    }
-  },
-  mounted: function() {
-    this.fileType=0;
-    this.getAllClass()
-  },
-
-  methods: {
-    cancelEidtEI () {
-      this.dialogVisibleErrorInfo = false
-    },
-    showErrorInfo (row) {
-      this.emp.operationalContext = row.operationalContext
-      this.dialogVisibleErrorInfo = true
-    },
-    // // 获取后台所有场站信息
-    // getELData() {
-    //   this.$axios.post('/electricFieldInfo/findAllElectricFieldInfo').then((res) => {
-    //     this.elTableData = res.data
-    //     this.efiId = res.data[0].id
-    //     // this.capacityUnit=res.data[0].capacityUnit
-    //     // this.type = 'NWP'
-    //     this.getAllClass()
-    //   })
-    // },
-    // 表格所属场站,ID转换场站名称
-    formatStation(row, column) {
-      let belongTo = '未知的所属场站'
-      for (let i = 0; i < this.elTableData.length; i++) {
-        if (row.efiId === this.elTableData[i].id) {
-          belongTo = this.elTableData[i].name
-        }
-      }
-      return belongTo
-    },
-    // 根据类型获取class
-    getAllClass() {
-      if (this.dateTime == '' || this.dateTime == null) {
-        alert('请选择时间')
-        return
-      }
-      this.$axios.get('/electricField/').then((res) => {
-        this.capacityUnit = 'mw'
-        this.capacity=res.data.capacity
-      })
-      const formData = new FormData()
-      const startTime = Math.round(this.dateTime[0])
-      const endTime = Math.round(this.dateTime[1]) + 60 * 60 * 24 * 1000 - 1
-      this.$axios.get('/manualInterventionLogController/queryManualInterventionLogData/'+ startTime +'/' + endTime +'/'+ this.fileType ).then((res) => {
-        this.emps = res.data
-        this.totalCount = this.emps.length
-      })
-      const s = Math.round(this.dateTime[1])+ 60 * 60 * 24  * 1000 -1000
-      this.$axios.get('/manualInterventionLogController/getForecastPowerShortTermDrawing/' + Math.round(this.dateTime[0]) + '/' + s).then(resp => {
-        var data = resp.data
-        // 可用预测功率(修正后)
-        for (let k = 0; k < data.list.length; k++) {
-          this.forecastValueCorrectAfterData.push(data.list[k].fpValue)
-        }
-        for (let i = 0; i < data.list.length; i++) {
-          this.forecastTimeData.push(this.timestampToTime(data.list[i].forecastTime))
-        }
-        const startTime1 = Math.round(this.dateTime[0])
-        const endTime1 = Math.round(this.dateTime[1]) + 60 * 60 * 24 * 1000 - 1
-        this.$axios.get('/manualInterventionLogController/queryForecastAndManualInterventionData/'+startTime1+'/'+endTime1+'/'+this.fileType).then(resp => {
-          for (let i = 0; i < resp.data.length; i++) {
-            if(resp.data[i].intervention!=null){
-              this.forecastAndManualInterventionData.push(resp.data[i].intervention)
-            }
-
-          }
-          this.drawLine(this.forecastValueCorrectAfterData, this.forecastAndManualInterventionData, this.forecastTimeData, this.capacityUnit,this.capacity)
-          this.forecastValueCorrectAfterData = []
-          this.forecastAndManualInterventionData=[]
-          this.forecastTimeData = []
-          this.capacity=''
-        })
-
-
-
-      })
-    },
-    drawLine(forecastValueCorrectAfterData, forecastAndManualInterventionData, forecastTimeData, capacityUnit,capacity) {
-      var echarts = require('echarts')
-      // 基于准备好的dom,初始化echarts实例
-      const MyShortTermRealCharts = echarts.init(document.getElementById('MyShortTermRealCharts'))
-      // 绘制图表
-      MyShortTermRealCharts.setOption({
-        // 标题
-        title: {
-          text: '人工干预数据对比',
-          left: '3%', // left 的值可以是像 20 这样的具体像素值,可以是像 '20%' 这样相对于容器高宽的百分比,也可以是 'left', 'center', 'right',如果 left 的值为'left', 'center', 'right',组件会根据相应的位置自动对齐。
-          top: '10px', // left 的值可以是像 20 这样的具体像素值,可以是像 '20%' 这样相对于容器高宽的百分比,也可以是 'left', 'center', 'right',如果 left 的值为'left', 'center', 'right',组件会根据相应的位置自动对齐。
-          right: 'auto', // right 的值可以是像 20 这样的具体像素值,可以是像 '20%' 这样相对于容器高宽的百分比。
-          bottom: 'auto'// bottom 的值可以是像 20 这样的具体像素值,可以是像 '20%' 这样相对于容器高宽的百分比。
-        },
-        tooltip: {
-          trigger: 'axis',
-          axisPointer: { // 会出现横竖2个方向的指示器
-            type: 'cross'
-          }
-        },
-        // 图例名
-        legend: {
-          top: '2%',
-          data: ['预测数据', '干预后预测数据']
-        },
-        grid: {
-          top: '70px',
-          left: '5%', // 图表距边框的距离
-          right: '5%',
-          bottom: '20%',
-          containLabel: true
-        },
-        // 工具框,可以选择
-        toolbox: {
-          show: true,
-          feature: {
-            mark: { show: true },
-            dataView: { show: true, readOnly: false },
-            magicType: { show: true, type: ['line', 'bar'] },
-            restore: { show: true },
-            saveAsImage: { show: true }
-          }
-        },
-        dataZoom: [{
-          show: true,
-          realtime: true,
-          start: 0,
-          end: 100,
-        },{
-          type: 'inside'
-        }],
-        // x轴信息样式
-
-        xAxis: {
-          type: 'category',
-          boundaryGap: false,
-          axisLine: { onZero: false },
-          data: forecastTimeData,
-          // 坐标轴颜色
-          axisLine: {
-            lineStyle: {
-              color: 'gray'
-            }
-          },
-          // x轴文字旋转
-          axisLabel: {
-            rotate: 0,
-            // interval: 'auto',
-            show: true, // true为显示字体 false则不显示
-            textStyle: {// 字体颜色
-              color: 'gray'
-            }
-          }
-        },
-        yAxis: [
-          {
-            type: 'value',
-            min:0,
-            max:capacity,
-            axisPointer: {
-              type: 'line'
-            },
-            position: 'left',
-            splitLine: {// 网格线
-              show: true
-            },
-            axisTick: {// y轴刻度线
-              show: false
-            },
-            axisLabel: {// y轴线
-              formatter: '{value} ' + capacityUnit
-            },
-            axisLine: {// y轴线
-              show: false
-            }
-          }
-        ],
-        series: [
-          {
-            name: '预测数据',
-            type: 'line',
-            symbol: 'circle',
-            showSymbol: false,
-            symbolSize: 4,
-            data: forecastValueCorrectAfterData,
-            color: ['orange'],
-            smooth: true,
-            itemStyle: {
-              normal: {
-                lineStyle: {
-                  width: 2,
-                  type: 'solid' // 'dotted'虚线 'solid'实线
-                }
-              }
-            }
-          },
-          {
-            name: '干预后预测数据',
-            type: 'line',
-            color: ['red'],
-            symbol: 'circle',
-            showSymbol: false,
-            smooth: true,
-            symbolSize: 4,
-            data: forecastAndManualInterventionData,
-            itemStyle: {
-              normal: {
-                lineStyle: {
-                  width: 2,
-                  type: 'solid' // 'dotted'虚线 'solid'实线
-                }
-              }
-            }
-          }
-        ]
-      })
-      window.onresize = MyShortTermRealCharts.resize// 图表自适应浏览器大小
-    },
-    // 时间格式化
-    fileTypeFormat(row, column) {
-      let belongTo = '未知的文件类型场站'
-      for (let i = 0; i < this.emps.length; i++) {
-        if (row.fileType =="0") {
-          belongTo ="短期"
-        }
-        if (row.fileType =="1") {
-          belongTo ="超短期"
-        }
-      }
-      return belongTo
-    },
-    operationalFormat(row, column) {
-      let belongTo = '未知的文件类型场站'
-      for (let i = 0; i < this.emps.length; i++) {
-        if (row.operationalStatus =="0") {
-          belongTo ="点位新增"
-        }
-        if (row.operationalStatus =="1") {
-          belongTo ="点位修改"
-        }
-        if (row.operationalStatus =="2") {
-          belongTo ="点位删除"
-        }
-        if (row.operationalStatus =="3") {
-          belongTo ="系数"
-        }
-        if (row.operationalStatus =="4") {
-          belongTo ="系数删除"
-        }
-      }
-      return belongTo
-    },
-    // 时间格式化
-    dateFormat(row, column) {
-      const date = row[column.property]
-      if (date === undefined) {
-        return ''
-      }
-      return this.$moment(date).format('YYYY-MM-DD HH:mm:ss')// 使用moment插件进行日期格式化
-    },
-    timestampToTime(time) {
-      const a = parseInt(time)
-      const date = new Date(a) // 时间戳为10位需*1000,时间戳为13位的话不需乘1000
-      const Y = date.getFullYear() + '-'
-      const M = (date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1) + '-'
-      const D = (date.getDate() < 10 ? '0' + (date.getDate()) : date.getDate()) + ' '
-      const H = (date.getHours() < 10 ? '0' + (date.getHours()) : date.getHours()) + ':'
-      const m = (date.getMinutes() < 10 ? '0' + (date.getMinutes()) : date.getMinutes()) + ':'
-      const s = (date.getSeconds() < 10 ? '0' + (date.getSeconds()) : date.getSeconds())
-      return Y + M + D + H + m + s
-    },
-    // 时间格式化
-    dateFormats(row, column) {
-      const date = row[column.property]
-      if (date === undefined) {
-        return ''
-      }
-      return this.$moment(date).format('YYYY-MM-DD')// 使用moment插件进行日期格式化
-    },
-    searchEmp() {
-      this.getAllClass()
-    },
-    currentChange(currentChange) {
-      this.currentPage = currentChange
-      this.getAllClass()
-    },
-    handleSizeChange(handleSizeChange) {
-      this.pageSize = handleSizeChange
-      this.getAllClass()
-    },
-    // 自定义排序
-  }
-}
-</script>
-<style>
-.el-dialog__body {
-  padding-top: 0px;
-  padding-bottom: 0px;
-}
-
-.slide-fade-enter-active {
-  transition: all .8s ease;
-}
-
-.slide-fade-leave-active {
-  transition: all .8s cubic-bezier(1.0, 0.5, 0.8, 1.0);
-}
-
-.slide-fade-enter, .slide-fade-leave-to {
-  transform: translateX(10px);
-  opacity: 0;
-}
-
-#MyShortTermRealCharts {
-  width: 100%;
-  height: 500px;
-}
-</style>