Browse Source

修改代码

wanghc 3 năm trước cách đây
mục cha
commit
e69ddb34b5

+ 2 - 49
ipfcst-console/src/main/frontend/router/modules/console.js

@@ -20,13 +20,6 @@ const consoleRouter = {
       sign: 'currency'
     },
     {
-      path: 'pvModuleModel',
-      component: () => import('@/views/console/pvModuleModel/index'),
-      name: 'pvModuleModel',
-      meta: { title: '光伏组件', noCache: true },
-      sign: 'photovoltaic'
-    },
-    {
       path: 'inverterInfo',
       component: () => import('@/views/console/inverterInfo/index'),
       name: 'inverterInfo',
@@ -55,20 +48,6 @@ const consoleRouter = {
       sign: 'windPower'
     },
     {
-      path: 'agc_avcInfo',
-      component: () => import('@/views/console/agc_avcInfo/index'),
-      name: 'agc_avcInfo',
-      meta: { title: 'AGC_AVC信息', noCache: true },
-      sign: 'currency'
-    },
-    {
-      path: 'boosterStationInfo',
-      component: () => import('@/views/console/boosterStationInfo/index'),
-      name: 'boosterStationInfo',
-      meta: { title: '升压站信息', noCache: true },
-      sign: 'currency'
-    },
-    {
       path: 'windTurbineidInfo',
       component: () => import('@/views/console/windTurbineInfo/index'),
       name: 'WindTurbineInfo',
@@ -82,26 +61,13 @@ const consoleRouter = {
       meta: { title: '检修计划', noCache: true },
       sign: 'currency'
     },
-    {
-      path: 'powerPlanSD',
-      component: () => import('@/views/console/powerPlanSD/index'),
-      name: 'powerPlanSD',
-      meta: { title: '山东发电计划', noCache: true },
-      sign: 'currency'
-    },
-    // {
-    //   path: 'consoleCenter',
-    //     component: () => import('@/views/console/consoleCenter/index'),
-    //   name: 'ConsoleCenter',
-    //   meta: {title: '数据控制', noCache: true}
-    // },
-    {
+    /*{
       path: 'sysParameter',
       component: () => import('@/views/console/sysParameter/index'),
       name: 'SysParameter',
       meta: { title: '系统参数', noCache: true },
       sign: 'currency'
-    },
+    },*/
     {
       path: 'sysAlarm',
       component: () => import('@/views/console/sysAlarm/index'),
@@ -138,25 +104,12 @@ const consoleRouter = {
       sign: 'currency'
     },
     {
-      path: 'communicationEquipment',
-      component: () => import('@/views/console/communicationEquipment/index'),
-      name: 'CommunicationEquipment',
-      meta: { title: '通信设备', noCache: true },
-      sign: 'currency'
-    },
-    {
       path: 'fileAnalysisRecord',
       component: () => import('@/views/console/FileAnalysisRecord/index'),
       name: 'FileAnalysisRecord',
       meta: { title: '文件解析记录', noCache: true },
       sign: 'currency'
     }
-    // {
-    //   path: 'uploadFileChannel',
-    //     component: () => import('@/views/console/UploadFileChannel/index'),
-    //   name: 'UploadFileChannel',
-    //   meta: {title: '通道配置', noCache: true}
-    // }
 
   ]
 }

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

@@ -12,33 +12,12 @@ const systemRouter = {
         icon: 'system'
     },
     children: [
-        // {
-        //     path: 'jobClass',
-        //     component: () => import('@/views/quartz/JobClass/index'),
-        //     name: 'jobClass',
-        //     meta: {title: '定时任务初始化', noCache: true},
-        //     sign: 'currency'
-        // },
         {
             path: 'quartz',
             component: () => import('@/views/quartz/index'),
             name: 'quartz',
             meta: {title: '定时任务', noCache: true},
             sign: 'currency'
-        },
-        {
-            path: 'systemfile',
-            component: () => import('@/views/systemfile/LogFile'),
-            name: 'systemfile',
-            meta: {title: '系统文件', noCache: true},
-            sign: 'currency'
-        },
-        {
-            path: 'systemuser',
-            component: () => import('@/views/console/sysUser/index'),
-            name: 'systemuser',
-            meta: {title: '用户管理', noCache: true},
-            sign: 'admin'
         }
     ]
 }

+ 0 - 343
ipfcst-console/src/main/frontend/views/console/agc_avcInfo/index.vue

@@ -1,343 +0,0 @@
-<template>
-  <div class="app-container">
-    <div>
-      <el-card>
-        <div slot="header" class="clearfix">
-          <b><span>AGC_AVC信息</span></b>
-          <el-button
-            :loading="loadButton"
-            style="float: right;padding:3px 10px 3px 3px;"
-            type="text"
-            @click="exportDataEvent"
-          >导出数据
-          </el-button>
-        </div>
-        <el-button type="primary" size="small" style="round-clip: 10px" :loading="loadButton" @click="insertEvent">添加</el-button>
-        <div style="padding-top: 10px">
-          <vxe-table
-            v-show="showTable"
-            ref="xTable"
-            export-config
-            :keep-source="true"
-            align="center"
-            :loading="loading"
-            highlight-current-row
-            auto-resize
-            border
-            resizable
-            max-height="600px"
-            :edit-rules="rules"
-            :data="tableData"
-            :edit-config="{trigger: 'manual', mode: 'row',autoClear: false,icon:'none'}"
-          >
-            <vxe-table-column title="AGC_AVC信息" align="center">
-              <vxe-table-column
-                field="name"
-                title="名称"
-                width="8%"
-                align="center"
-                :edit-render="{name: '$input', attrs: {type: 'text'}}"
-              />
-              <vxe-table-column
-                field="modelNumber"
-                title="型号"
-                width="8%"
-                align="center"
-                :edit-render="{name: '$input', attrs: {type: 'text'}}"
-              />
-              <vxe-table-column
-                field="manufacturer"
-                title="生产商"
-                width="8%"
-                align="center"
-                :edit-render="{name: '$input', attrs: {type: 'text'}}"
-              />
-              <vxe-table-column
-                width="150px"
-                field="installationTime"
-                title="安装时间"
-                align="center"
-                :edit-render="{props: {type: 'default'}}"
-              >
-                <template v-slot:edit="{ row }">
-                  <el-date-picker
-                    v-model="row.installationTime"
-                    size="mini"
-                    style="width: 100%"
-                    type="date"
-                    placeholder="选择日期:"
-                  />
-                </template>
-                <template v-slot="{ row }">{{ timestampToTime(row.installationTime) }}</template>
-              </vxe-table-column>
-              <vxe-table-column
-                field="report"
-                title="是否上报"
-                width="8%"
-                align="center"
-                :edit-render="{name: '$select', options: trueOrFalse}"
-              />
-              <vxe-table-column
-                field="interval"
-                title="入库间隔(单位s)"
-                width="8%"
-                align="center"
-                :edit-render="{name: '$select', options: intervals}"
-              />
-              <vxe-table-column title="操作" fixed="right" width="10%" align="center">
-                <template v-slot="{ row }">
-                  <template v-if="$refs.xTable.isActiveByRow(row)">
-                    <el-button
-                      type="success"
-                      style="padding: 3px 4px 3px 4px;margin: 2px;"
-                      size="medium"
-                      icon="el-icon-edit"
-                      @click="editSave(row)"
-                    >保存
-                    </el-button>
-                    <el-button
-                      class="cancel-btn"
-                      icon="el-icon-refresh"
-                      type="warning"
-                      style="padding: 3px 4px 3px 4px;margin: 2px;"
-                      size="medium"
-                      @click="cancelRowEvent(row)"
-                    >取消
-                    </el-button>
-                  </template>
-                  <template v-else>
-                    <el-button
-                      :loading="loadButton"
-                      type="primary"
-                      style="padding: 3px 4px 3px 4px;margin: 2px;"
-                      size="medium "
-                      icon="el-icon-edit"
-                      @click="editRowEvent(row)"
-                    >编辑
-                    </el-button>
-                    <el-button
-                      :loading="loadButton"
-                      type="danger"
-                      style="padding: 3px 4px 3px 4px;margin: 2px;"
-                      size="medium "
-                      icon="el-icon-delete"
-                      @click="deleteRowEvent(row)"
-                    >删除
-                    </el-button>
-                  </template>
-                </template>
-              </vxe-table-column>
-
-            </vxe-table-column>
-          </vxe-table>
-          <vxe-pager
-            v-show="!loadButton&&showTable"
-            perfect
-            :current-page.sync="currentPage"
-            :page-size.sync="pageSize"
-            :total="total"
-            :page-sizes="[10,50,100]"
-            :layouts="['PrevJump', 'PrevPage','JumpNumber', 'NextPage', 'NextJump', 'Sizes', 'FullJump', 'Total']"
-          />
-        </div>
-      </el-card>
-    </div>
-    <!-- 删除提示框 -->
-    <el-dialog :visible.sync="delVisible" title="提示" width="300px" center>
-      <div class="del-dialog-cnt">删除不可恢复,是否确定删除?</div>
-      <span slot="footer" class="dialog-footer">
-        <el-button type="primary" @click="deleteCancel()">取 消</el-button>
-        <el-button type="primary" @click="deleteInfo()">确 定</el-button>
-      </span>
-    </el-dialog>
-  </div>
-</template>
-
-<script>
-export default {
-  name: 'Index',
-  data() {
-    const checkName = (rule, value, callback) => {
-      var s6 = this.tableData
-      if (value == null || value === '') {
-        callback(new Error('请填写逆变器名称'))
-      }
-      for (let i = 0; i < s6.length; i++) {
-        if (this.mid == '' || this.mid == undefined) {
-          // 新增
-          if ((value == s6[i].name)) {
-            callback(new Error('名称不能重复'))
-          }
-        } else {
-          // 修改
-          if (this.mid != s6[i].id) {
-            if ((value == s6[i].name)) {
-              callback(new Error('名称不能重复'))
-            }
-          }
-        }
-      }
-      callback()
-    }
-    return {
-      mid: '',
-      rowId: '',
-      loadButton: false,
-      loading: false,
-      showTable: true,
-      delVisible: false,
-      currentPage: 1,
-      pageSize: 10,
-      total: 0,
-      tableData: [],
-      trueOrFalse: [{ label: '是', value: true }, { label: '否', value: false }],
-      intervals: [{ key: 0, value: 0, label: '不入库' },{ key: 60, value: 60, label: '一分钟' }, { key: 900, value: 900, label: '十五分钟' }],
-      // 是否为编辑
-      isEdit: false,
-      // 表单验证规则
-      rules: {
-        name: [
-          { required: true, validator: checkName }
-        ],
-        modelNumber: [
-          { required: true, message: 'AGC_AVC型号不能为空', trigger: 'blur' }
-        ],
-        manufacturer: [
-          { required: true, message: '制造商名称不能为空' }
-        ],
-        installationTime: [
-          { required: true, message: '请选择日期' }
-        ],
-        report: [
-          { required: true, message: '是否上报不能为空', trigger: 'change' }
-        ]
-      }
-    }
-  },
-  mounted() {
-    this.getInfo()
-  },
-  methods: {
-    getInfo() {
-      this.$axios.get('/agcAvcInfo').then(res => {
-        console.log(res.data)
-        this.tableData = res.data
-        this.total = res.data.length
-        this.loading = false
-      }).catch((error) => {
-        this.$message.error('获取AGC_AVC信息出错' + error)
-      })
-    },
-    editSave(row) {
-      this.$refs.xTable.validate(this.$refs.xTable.getCurrentRecord(),valid => {
-        if (valid) {
-          this.$refs.xTable.clearActived().then(() => {
-            if (this.isEdit) {
-              console.log(row)
-              row.equipmentType = row.equipmentType.code
-              // 编辑保存
-              this.$axios.put('/agcAvcInfo/', row).then(res => {
-                this.$message({
-                  message: '修改成功',
-                  type: 'success'
-                })
-                this.loadButton = false
-                this.getInfo()
-              }).catch((error) => {
-                this.$refs.xTable.setActiveRow(row)
-                this.$message.error('修改AGC_AVC出错' + error)
-              })
-            } else {
-              // 新增保存
-              this.$axios.post('/agcAvcInfo/', row).then(res => {
-                this.$message({
-                  message: '保存成功',
-                  type: 'success'
-                })
-                this.loadButton = false
-                this.getInfo()
-              }).catch((error) => {
-                this.$refs.xTable.setActiveRow(row)
-                this.$message.error('保存AGC_AVC出错' + error)
-              })
-            }
-          })
-        } else {
-          this.$XModal.message({status: 'error', message: '校验不通过!'})
-        }
-      })
-    },
-    editRowEvent(row) {
-      this.mid = row.id
-      this.isEdit = true
-      this.loadButton = true
-      this.$refs.xTable.setActiveRow(row)
-    },
-    insertEvent(row) {
-      this.mid = ''
-      this.showTable = true
-      this.piadd = false
-      this.isEdit = false
-      this.loadButton = true
-      this.$refs.xTable.insert({ interval: 60 }).then(({ row }) => this.$refs.xTable.setActiveRow(row))
-    },
-    exportDataEvent() {
-      this.$axios.get('/agcAvcInfo/').then(res => {
-        const data = res.data
-        this.$refs.xTable.exportData({
-          filename: 'AGC_AVC信息',
-          type: 'csv',
-          isHeader: true,
-          isFooter: true,
-          data
-        })
-      })
-    },
-    cancelRowEvent(row) {
-      const xTable = this.$refs.xTable
-      xTable.clearActived().then(() => {
-        // 还原行数据
-        if (this.isEdit) {
-          //编辑
-          xTable.revertData(row)
-        } else {
-          //新增
-          xTable.remove(row)
-        }
-        this.loadButton = false;
-      })
-    },
-    // 删除场站信息
-    deleteRowEvent(row) {
-      this.rowId = row.id
-      this.delVisible = true
-    },
-    deleteCancel() {
-      this.delVisible = false
-    },
-    deleteInfo() {
-      this.$axios.delete('/agcAvcInfo/' + this.rowId).then(res => {
-        this.$message({
-          message: '删除成功',
-          type: 'success'
-        })
-        this.delVisible = false
-        this.getInfo()
-      }).catch((error) => {
-        this.$message.error('删除AGC_AVC信息出错' + error)
-      })
-    },
-    timestampToTime(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()
-      return Y + M + D
-    }
-  }
-}
-</script>
-
-<style scoped>
-
-</style>

+ 0 - 332
ipfcst-console/src/main/frontend/views/console/boosterStationInfo/index.vue

@@ -1,332 +0,0 @@
-<template>
-  <div class="app-container">
-    <el-card class="box-carde">
-      <div slot="header" class="clearfix">
-        <span>升压站信息</span>
-        <el-button
-          style="float: right;padding:3px 10px 3px 3px;"
-          type="text"
-          :loading="btnLonding"
-          @click="exportDataEvent"
-        >导出数据
-        </el-button>
-      </div>
-      <el-button
-        type="primary"
-        size="small"
-        style="round-clip: 10px"
-        :loading="btnLonding"
-        @click="insertEvent"
-      >新增</el-button>
-      <div style="padding-top: 10px">
-        <vxe-table
-          ref="xTable"
-          v-show="showTable"
-          :keep-source="true"
-          align="center"
-          :loading="loading"
-          highlight-current-row
-          auto-resize
-          border
-          resizable
-          show-overflow
-          :edit-rules="rules"
-          :data="tableData"
-          :edit-config="{trigger: 'manual', mode: 'row',autoClear: false,icon:'none'}"
-        >
-          <vxe-table-column title="升压站信息">
-            <vxe-table-column
-              field="name"
-              title="名称"
-              width="13%"
-              :edit-render="{name: '$input', attrs: {type: 'text'}}"
-            />
-            <vxe-table-column
-              field="manufacturer"
-              title="生产商"
-              width="13%"
-              :edit-render="{name: '$input', attrs: {type: 'text'}}"
-            />
-            <vxe-table-column
-              field="modelNumber"
-              title="型号"
-              width="13%"
-              :edit-render="{name: '$input', attrs: {type: 'text'}}"
-            />
-            <vxe-table-column
-              min-width="60px"
-              width="15%"
-              field="installationTime"
-              title="安装时间"
-              :edit-render="{props: {type: 'default'}}"
-            >
-              <template v-slot:edit="{ row }">
-                <el-date-picker
-                  v-model="row.installationTime"
-                  size="mini"
-                  style="width: 100%"
-                  type="date"
-                  placeholder="选择日期:"
-                />
-              </template>
-              <template v-slot="{ row }">{{ timestampToTime(row.installationTime) }}</template>
-            </vxe-table-column>
-            <vxe-table-column
-              field="report"
-              title="是否上报"
-              width="8%"
-              :edit-render="{name: '$select', options: options}"
-            />
-            <vxe-table-column
-              field="interval"
-              title="入库间隔(单位s)"
-              width="10%"
-              align="center"
-              :edit-render="{name: '$select', options: intervals}"
-            />
-            <vxe-table-column min-width="30px" width="15%" 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"
-                    @click="saveRowEvent(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"
-                    :loading="btnLonding"
-                    @click="editRowEvent(row)"
-                  >编辑
-                  </el-button>
-                  <el-button
-                    type="danger"
-                    style="padding: 3px 4px 3px 4px;margin: 2px"
-                    size="mini"
-                    icon="el-icon-delete"
-                    :loading="btnLonding"
-                    @click="deleteRowEvent(row)"
-                  >删除
-                  </el-button>
-                </template>
-              </template>
-            </vxe-table-column>
-          </vxe-table-column>
-        </vxe-table>
-        <vxe-pager
-          v-show="!btnLonding&&showTable"
-          perfect
-          :current-page.sync="currentPage"
-          :page-size.sync="pageSize"
-          :total="total"
-          :page-sizes="[10,50,100]"
-          :layouts="['PrevJump', 'PrevPage','JumpNumber', 'NextPage', 'NextJump', 'Sizes', 'FullJump', 'Total']"
-        />
-      </div>
-      <!-- 删除提示框 -->
-      <el-dialog :visible.sync="delVisible" title="提示" width="300px" center>
-        <div class="del-dialog-cnt">删除不可恢复,是否确定删除?</div>
-        <span slot="footer" class="dialog-footer">
-        <el-button type="primary" @click="deleteCancel()">取 消</el-button>
-        <el-button type="primary" @click="deleteInfo()">确 定</el-button>
-      </span>
-      </el-dialog>
-    </el-card>
-  </div>
-</template>
-
-<script>
-export default {
-  name: 'Index',
-  data() {
-    const checkName = (rule, value, callback) => {
-      var s6 = this.tableData
-      if (value == null || value === '') {
-        callback(new Error('请填写逆变器名称'))
-      }
-      for (let i = 0; i < s6.length; i++) {
-        if (this.mid == '' || this.mid == undefined) {
-          // 新增
-          if ((value == s6[i].name)) {
-            callback(new Error('名称不能重复'))
-          }
-        } else {
-          // 修改
-          if (this.mid != s6[i].id) {
-            if ((value == s6[i].name)) {
-              callback(new Error('名称不能重复'))
-            }
-          }
-        }
-      }
-      callback()
-    }
-    return {
-      mid: '',
-      rowId: '',
-      btnLonding: false,
-      loading: false,
-      showTable: true,
-      delVisible: false,
-      currentPage: 1,
-      pageSize: 10,
-      total: 0,
-      tableData: [],
-      options: [{ label: '是', value: true }, { label: '否', value: false }],
-      intervals: [{ key: 0, value: 0, label: '不入库' },{ key: 60, value: 60, label: '一分钟' }, { key: 900, value: 900, label: '十五分钟' }],
-      // 是否为编辑
-      isEdit: false,
-      // 表单验证规则
-      rules: {
-        name: [
-          { required: true, validator: checkName }
-        ],
-        modelNumber: [
-          { required: true, message: '升压站型号不能为空', trigger: 'blur' }
-        ],
-        manufacturer: [
-          { required: true, message: '制造商名称不能为空' }
-        ],
-        installationTime: [
-          { required: true, message: '请选择日期' }
-        ],
-        report: [
-          { required: true, message: '是否上报不能为空', trigger: 'change' }
-        ]
-      }
-    }
-  },
-  mounted() {
-    this.getInfo()
-  },
-  methods: {
-    getInfo() {
-      this.$axios.get('/boosterStationInfo/').then(res => {
-        this.tableData = res.data
-      })
-    },
-    saveRowEvent(row) {
-      this.$refs.xTable.validate(this.$refs.xTable.getCurrentRecord(),valid => {
-        if (valid) {
-          this.$refs.xTable.clearActived().then(() => {
-            if (this.isEdit) {
-              console.log(row)
-              row.equipmentType = row.equipmentType.code
-              // 编辑保存
-              this.$axios.put('/boosterStationInfo/', row).then(res => {
-                this.$message({
-                  message: '修改成功',
-                  type: 'success'
-                })
-                this.btnLonding = false
-                this.getInfo()
-              }).catch((error) => {
-                this.$refs.xTable.setActiveRow(row)
-                this.$message.error('修改升压站出错' + error)
-              })
-            } else {
-              // 新增保存
-              this.$axios.post('/boosterStationInfo/', row).then(res => {
-                this.$message({
-                  message: '保存成功',
-                  type: 'success'
-                })
-                this.btnLonding = false
-                this.getInfo()
-              }).catch((error) => {
-                this.$refs.xTable.setActiveRow(row)
-                this.$message.error('保存升压站出错' + error)
-              })
-            }
-          })
-        } else {
-          this.$XModal.message({status: 'error', message: '校验不通过!'})
-        }
-      })
-    },
-    editRowEvent(row) {
-      this.mid = row.id
-      this.isEdit = true
-      this.btnLonding = true
-      this.$refs.xTable.setActiveRow(row)
-    },
-    insertEvent(row) {
-      this.mid = ''
-      this.showTable = true
-      this.piadd = false
-      this.isEdit = false
-      this.btnLonding = true
-      this.$refs.xTable.insert({ interval: 60 }).then(({ row }) => this.$refs.xTable.setActiveRow(row))
-    },
-    exportDataEvent() {
-      this.$axios.get('/boosterStationInfo/').then(res => {
-        const data = res.data
-        this.$refs.xTable.exportData({
-          filename: '升压站信息',
-          type: 'csv',
-          isHeader: true,
-          isFooter: true,
-          data
-        })
-      })
-    },
-    cancelRowEvent(row) {
-      const xTable = this.$refs.xTable
-      xTable.clearActived().then(() => {
-        // 还原行数据
-        if (this.isEdit) {
-          //编辑
-          xTable.revertData(row)
-        } else {
-          //新增
-          xTable.remove(row)
-        }
-        this.loadButton = false;
-      })
-    },
-    // 删除场站信息
-    deleteRowEvent(row) {
-      this.rowId = row.id
-      this.delVisible = true
-    },
-    deleteCancel() {
-      this.delVisible = false
-    },
-    deleteInfo() {
-      this.$axios.delete('/boosterStationInfo/' + this.rowId).then(res => {
-        this.$message({
-          message: '删除成功',
-          type: 'success'
-        })
-        this.delVisible = false
-        this.getInfo()
-      }).catch((error) => {
-        this.$message.error('删除升压站信息出错' + error)
-      })
-    },
-    timestampToTime(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()
-      return Y + M + D
-    }
-  }
-}
-</script>
-
-<style scoped>
-
-</style>

+ 0 - 309
ipfcst-console/src/main/frontend/views/console/communicationEquipment/index.vue

@@ -1,309 +0,0 @@
-<template>
-  <div class="app-container">
-    <el-card>
-      <div slot="header" class="clearfix">
-        <b><span>通信设备</span></b>
-      </div>
-      <div style="padding-bottom: 1%">
-        <el-button type="primary" size="small" @click="insertCommEq">添加</el-button>
-        <el-button type="primary" size="small" @click="exportDataEvent">导出</el-button>
-      </div>
-      <vxe-table
-        ref="xTable"
-        :loading="loading"
-        border
-        highlight-current-row
-        keep-source
-        auto-resize
-        resizable
-        :data="tableData"
-      >
-        <vxe-table-column title="通信设备基本信息" align="center">
-          <vxe-table-column field="name" title="通信设备" align="center" width="12%" />
-          <vxe-table-column field="netCardName" title="网卡名称" align="center" />
-          <vxe-table-column field="netCardIp" title="网卡IP地址" align="center" />
-          <vxe-table-column field="netmask" title="子网掩码" align="center" />
-          <vxe-table-column field="gateway" title="网关" align="center" />
-          <vxe-table-column field="port" title="端口" align="center" />
-          <vxe-table-column field="systemName" title="功率预测系统" align="center" width="12%"/>
-          <vxe-table-column field="systemNetCardName" title="系统网卡名称" align="center" />
-          <vxe-table-column field="systemNetCardIp" title="系统网卡IP地址" align="center" />
-          <vxe-table-column field="systemNetmask" title="系统子网掩码" align="center" />
-          <vxe-table-column field="systemGateway" title="系统网关" align="center" />
-          <vxe-table-column field="systemPort" title="系统端口" align="center" />
-          <vxe-table-column title="操作" width="10%" align="center">
-            <template v-slot="{ row }">
-              <el-button
-                type="primary"
-                style="padding: 3px 4px 3px 4px;margin: 2px;"
-                size="medium "
-                icon="el-icon-edit"
-                @click="editRowEvent(row)"
-              >编辑
-              </el-button>
-              <el-button
-                type="danger"
-                style="padding: 3px 4px 3px 4px;margin: 2px;"
-                size="medium "
-                icon="el-icon-edit"
-                @click="deleteCommEq(row)"
-              >删除
-              </el-button>
-            </template>
-          </vxe-table-column>
-        </vxe-table-column>
-      </vxe-table>
-      <vxe-modal v-model="showEdit" :title="selectRow ? '编辑&保存' : '新增&保存'" width="800" min-width="600" min-height="400" resize @close="closeModel">
-        <vxe-form
-          ref="form"
-          class="my-form2"
-          title-align="right"
-          title-width="35%"
-          :data="formData"
-          :rules="formRules"
-          @submit="saveForm"
-        >
-          <vxe-form-item title="通信设备" field="name" span="12" >
-            <vxe-select v-model="formData.name" placeholder="请输入名称" @change="fanChange">
-              <vxe-option v-for="list in nameList" :value="list.value" :label="list.label" />
-            </vxe-select>
-          </vxe-form-item>
-          <vxe-form-item title="网卡名称" field="netCardName" span="12">
-            <vxe-input v-model="formData.netCardName" placeholder="请输入网卡名称" clearable />
-          </vxe-form-item>
-          <vxe-form-item title="网卡IP地址" field="netCardIp" span="12">
-            <vxe-input v-model="formData.netCardIp" placeholder="请输入网卡IP地址" clearable />
-          </vxe-form-item>
-          <vxe-form-item title="子网掩码" field="netmask" span="12">
-            <vxe-input v-model="formData.netmask" placeholder="请输入子网掩码" clearable />
-          </vxe-form-item>
-          <vxe-form-item title="网关" field="gateway" span="12">
-            <vxe-input v-model="formData.gateway" placeholder="请输入网关" clearable />
-          </vxe-form-item>
-          <vxe-form-item title="端口" field="port" span="12">
-            <vxe-input v-model="formData.port" placeholder="请输入端口" clearable />
-          </vxe-form-item>
-
-          <vxe-form-item title="通信设备" field="systemName" span="12" v-show="fanShow">
-            <vxe-select v-model="formData.systemName" placeholder="请输入名称">
-              <vxe-option v-for="list in systemNameList" :value="list.value" :label="list.label" />
-            </vxe-select>
-          </vxe-form-item>
-          <vxe-form-item title="通信设备Ip" field="systemNetCardIp" span="12" v-show="fanShow">
-            <vxe-input v-model="formData.systemNetCardIp" placeholder="请输入网卡IP地址" clearable />
-          </vxe-form-item>
-          <vxe-form-item title="功率预测系统" field="systemName" span="12" title-width="40%" v-show="sysShow">
-            <vxe-select v-model="formData.systemName" placeholder="请输入名称">
-              <vxe-option v-for="list in systemNameList" :value="list.value" :label="list.label" />
-            </vxe-select>
-          </vxe-form-item>
-          <vxe-form-item title="预测系统网卡名称" field="systemNetCardName" span="12" v-show="sysShow">
-            <vxe-input v-model="formData.systemNetCardName" placeholder="请输入网卡名称" clearable />
-          </vxe-form-item>
-          <vxe-form-item title="预测系统网卡IP地址" field="systemNetCardIp" span="12" title-width="40%" v-show="sysShow">
-            <vxe-input v-model="formData.systemNetCardIp" placeholder="请输入网卡IP地址" clearable />
-          </vxe-form-item>
-          <vxe-form-item title="预测系统子网掩码" field="systemNetmask" span="12" v-show="sysShow">
-            <vxe-input v-model="formData.systemNetmask" placeholder="请输入子网掩码" clearable />
-          </vxe-form-item>
-          <vxe-form-item title="预测系统网关" field="systemGateway" span="12" title-width="40%" v-show="sysShow">
-            <vxe-input v-model="formData.systemGateway" placeholder="请输入网关" clearable />
-          </vxe-form-item>
-          <vxe-form-item title="预测系统端口" field="systemPort" span="12" v-show="sysShow">
-            <vxe-input v-model="formData.systemPort" placeholder="请输入端口" clearable />
-          </vxe-form-item>
-          <vxe-form-item align="center" span="24">
-            <vxe-button status="primary" type="submit">保存</vxe-button>
-            <vxe-button type="reset">重置</vxe-button>
-          </vxe-form-item>
-
-        </vxe-form>
-      </vxe-modal>
-
-    </el-card>
-  </div>
-</template>
-
-<script>
-export default {
-  name: 'Index',
-  data() {
-    return {
-      loading: false,
-      showEdit: false,
-      selectRow: false,
-      fanShow: false,
-      sysShow: true,
-      saveFlag: 1, // 保存 1, 修改 2
-      modelId: '',
-      tableData: [],
-      nameList: [
-        { value: '前台PC机', label: '前台PC机' },
-        { value: '势态感知', label: '势态感知' },
-        { value: '对时系统', label: '对时系统' },
-        { value: '反向隔离内网真实IP', label: '反向隔离内网真实IP' },
-        { value: '反向隔离外网真实IP', label: '反向隔离外网真实IP' },
-        { value: '网络安全监测', label: '网络安全监测' },
-        { value: '入侵系统监测', label: '入侵系统监测' },
-        { value: '环境监测仪串口接入', label: '环境监测仪串口接入' },
-        { value: '测风塔串口接入', label: '测风塔串口接入' },
-        { value: '测风塔网口接入', label: '测风塔网口接入' },
-        { value: '外网Internet IP', label: '外网Internet IP' }
-      ],
-      systemNameList: [
-        { value: '外网服务器', label: '外网服务器' },
-        { value: '内网服务器', label: '内网服务器' }
-      ],
-      formData: {
-        name: '',
-        netCardName: '',
-        netCardIp: '',
-        netmask: '',
-        gateway: '',
-        port: '',
-        systemName: '',
-        systemNetCardName: '',
-        systemNetCardIp: '',
-        systemNetmask: '',
-        systemGateway: '',
-        systemPort: ''
-      },
-      formRules: {
-        name: [{ required: true, message: '不能为空' }],
-        netCardIp: [{
-          pattern: /^(?=(\b|\D))(((\d{1,2})|(1\d{1,2})|(2[0-4]\d)|(25[0-5]))\.){3}((\d{1,2})|(1\d{1,2})|(2[0-4]\d)|(25[0-5]))(?=(\b|\D))/,
-          message: '请填写正确的ip'
-        }],
-        netmask: [{
-          pattern: /^(?=(\b|\D))(((\d{1,2})|(1\d{1,2})|(2[0-4]\d)|(25[0-5]))\.){3}((\d{1,2})|(1\d{1,2})|(2[0-4]\d)|(25[0-5]))(?=(\b|\D))/,
-          message: '请填写正确的子网掩码'
-        }],
-        gateway: [{
-          pattern: /^(?=(\b|\D))(((\d{1,2})|(1\d{1,2})|(2[0-4]\d)|(25[0-5]))\.){3}((\d{1,2})|(1\d{1,2})|(2[0-4]\d)|(25[0-5]))(?=(\b|\D))/,
-          message: '请填写正确的网关'
-        }],
-        port: [{
-          pattern: /^[0-9]*$/,
-          message: '请填写正确的端口'
-        }],
-        systemName: [{ required: true, message: '不能为空' }],
-        systemNetCardIp: [{
-          pattern: /^(?=(\b|\D))(((\d{1,2})|(1\d{1,2})|(2[0-4]\d)|(25[0-5]))\.){3}((\d{1,2})|(1\d{1,2})|(2[0-4]\d)|(25[0-5]))(?=(\b|\D))/,
-          message: '请填写正确的ip'
-        }],
-        systemNetmask: [{
-          pattern: /^(?=(\b|\D))(((\d{1,2})|(1\d{1,2})|(2[0-4]\d)|(25[0-5]))\.){3}((\d{1,2})|(1\d{1,2})|(2[0-4]\d)|(25[0-5]))(?=(\b|\D))/,
-          message: '请填写正确的子网掩码'
-        }],
-        systemGateway: [{
-          pattern: /^(?=(\b|\D))(((\d{1,2})|(1\d{1,2})|(2[0-4]\d)|(25[0-5]))\.){3}((\d{1,2})|(1\d{1,2})|(2[0-4]\d)|(25[0-5]))(?=(\b|\D))/,
-          message: '请填写正确的网关'
-        }],
-        systemPort: [{
-          pattern: /^[0-9]*$/,
-          message: '请填写正确的端口'
-        }]
-      }
-    }
-  },
-  mounted() {
-    this.getCommEq()
-  },
-  created() {
-
-  },
-  methods: {
-    getCommEq() {
-      this.$axios.get('/communicationEquipment/').then((res) => {
-        this.tableData = res.data
-      })
-    },
-    editRowEvent(row) {
-      // console.log(row)
-      this.saveFlag = 2
-      this.selectRow = true
-      this.showEdit = true
-      this.modelId = row.id
-      this.formData = {
-        id: '',
-        name: row.name,
-        netCardName: row.netCardName,
-        netCardIp: row.netCardIp,
-        netmask: row.netmask,
-        gateway: row.gateway,
-        port: row.port,
-        systemName: row.systemName,
-        systemNetCardName: row.systemNetCardName,
-        systemNetCardIp: row.systemNetCardIp,
-        systemNetmask: row.systemNetmask,
-        systemGateway: row.systemGateway,
-        systemPort: row.systemPort
-      }
-    },
-    insertCommEq() {
-      this.saveFlag = 1
-      this.showEdit = true
-      this.sysShow = true
-      this.fanShow = false
-    },
-    saveForm() {
-      if (this.saveFlag === 1) {
-        this.$axios.post('/communicationEquipment/', this.formData).then((res) => {
-          this.closeModel()
-          this.getCommEq()
-        })
-      } else {
-        this.formData.id = this.modelId
-        this.$axios.put('/communicationEquipment/', this.formData).then((res) => {
-          this.closeModel()
-          this.getCommEq()
-        })
-      }
-    },
-    deleteCommEq(row) {
-      this.$XModal.confirm('您确定要删除该数据?').then(type => {
-        if (type === 'confirm') {
-          this.$axios.delete('/communicationEquipment/' + row.id).then((res) => {
-            this.getCommEq()
-          })
-        }
-      })
-    },
-    closeModel() {
-      this.$refs.form.reset()
-      this.selectRow = false
-      this.showEdit = false
-    },
-    fanChange(val) {
-      this.sysShow = false
-      this.fanShow = true
-      if(val.value == '反向隔离内网真实IP'){
-        this.systemNameList = [{value:'反向隔离内网虚拟IP',label:'反向隔离内网虚拟IP'}]
-        this.formData.systemName = this.systemNameList[0].value
-      }else if(val.value == '反向隔离外网真实IP') {
-        this.systemNameList = [{value:'反向隔离虚拟真实IP',label:'反向隔离外网虚拟IP'}]
-        this.formData.systemName = this.systemNameList[0].value
-      }else{
-        this.sysShow = true
-        this.fanShow = false
-        this.systemNameList = [
-          { value: '外网服务器', label: '外网服务器' },
-          { value: '内网服务器', label: '内网服务器' }
-        ]
-        this.formData.systemName = ''
-      }
-    },
-    exportDataEvent() {
-      this.$axios.post('/communicationEquipment/export', {}, {
-        fileName: '',
-        responseType: 'blob'// 用于解决中文乱码
-      }).then((response) => {
-      })
-    }
-  }
-}
-</script>
-
-<style scoped>
-
-</style>

+ 0 - 479
ipfcst-console/src/main/frontend/views/console/pvModuleModel/index.vue

@@ -1,479 +0,0 @@
-<template xmlns:v-slot="http://www.w3.org/1999/XSL/Transform">
-
-  <div class="app-container">
-    <div>
-      <el-card>
-        <div slot="header" class="clearfix">
-          <b><span>光伏组件信息</span></b>
-
-          <el-button :loading="loadButton" style="float: right;padding:3px 10px 3px 3px;" type="text" @click="exportDataEvent">导出数据</el-button>
-          <!--  <el-upload
-                            :http-request="importDataEvent"
-                            style="float: right;padding:3px 3px 3px 16px;"
-                            action="/console/importPvModuleModelCsv/"
-                            accept=".xls">
-                        <el-button :loading="loadButton"   type="text">导入数据</el-button>
-                    </el-upload>-->
-        </div>
-        <span style="font-weight: bold;font-size: 14px">场站名称:</span>
-        <el-select style="width:250px" clearable v-model="stationCode" size="small" >
-          <el-option
-            v-for="item in stationList"
-            :key="item.stationCode"
-            :label="item.name"
-            :value="item.stationCode">
-            <span style="float: left">{{ item.name }}</span>
-            <span style="float: right; color: #8492a6;font-size: 13px">{{ item.stationCode }}</span>
-          </el-option>
-        </el-select>
-        <el-button type="primary" icon="el-icon-search" size="small" @click="getData">查询</el-button>
-<!--        <div class="filter-container">-->
-          <el-button type="primary" size="small" style="round-clip: 10px" @click="insertEvent" :loading="loadButton">添加</el-button>
-<!--        </div>-->
-        <div style="padding-top: 10px">
-          <vxe-table
-            ref="xTable"
-            border
-            export-config
-            keep-source
-            auto-resize
-            resizable
-            :edit-rules="rules"
-            :loading="loading"
-            :data="tableData"
-            v-show="showTable"
-            show-overflow
-            highlight-current-row
-            :edit-config="{trigger: 'manual', mode: 'row',autoClear:false,showStatus: true,icon:'none'}"
-          >
-            <vxe-table-column title="光伏组件信息" align="center">
-              <vxe-table-column field="stationCode" title="场站编号" width="6%"
-                                :edit-render="{name: '$input', attrs: {type: 'text'}}"></vxe-table-column>
-              <vxe-table-column
-                field="model"
-                title="组件型号"
-                width="7%"
-                align="center"
-                :edit-render="{name: '$input', attrs: {type: 'text'}}"
-              />
-              <vxe-table-column
-                field="singleCap"
-                title="组件容量"
-                width="7%"
-                align="center"
-                :edit-render="{name: '$input', attrs: {type: 'text'}}"
-              />
-              <vxe-table-column
-                field="maximumExcitationVoltage"
-                title="最大工作电压(V)"
-                width="7%"
-                align="center"
-                :edit-render="{name: '$input', attrs: {type: 'text'}}"
-              />
-              <vxe-table-column
-                field="maximumPowerCurrent"
-                title="最大工作电流(A)"
-                width="7%"
-                align="center"
-                :edit-render="{name: '$input', attrs: {type: 'text'}}"
-              />
-              <vxe-table-column
-                field="openCircuitVoltage"
-                title="开路电压(V)"
-                width="7%"
-                align="center"
-                :edit-render="{name: '$input', attrs: {type: 'text'}}"
-              />
-              <vxe-table-column
-                field="shortCircuitCurrent"
-                title="短路电流(A)"
-                width="7%"
-                align="center"
-                :edit-render="{name: '$input', attrs: {type: 'text'}}"
-              />
-              <vxe-table-column
-                field="efficiencyOfWork"
-                title="工作效率"
-                width="7%"
-                align="center"
-                :edit-render="{name: '$input', attrs: {type: 'text'}}"
-              />
-              <vxe-table-column
-                field="rotationMode"
-                title="旋转方式"
-                width="8%"
-                align="center"
-                :edit-render="{name: '$select', options: pvRotationMode}"
-              />
-              <vxe-table-column
-                field="gradient"
-                title="安装倾斜度"
-                width="7%"
-                align="center"
-                :edit-render="{name: '$input', attrs: {type: 'text'}}"
-              />
-              <vxe-table-column
-                field="singleArea"
-                title="组件面积(㎡)"
-                width="7%"
-                align="center"
-                :edit-render="{name: '$input', attrs: {type: 'text'}}"
-              />
-              <vxe-table-column
-                      field="backupC"
-                      title="电池板个数"
-                      width="7%"
-                      align="center"
-                      :edit-render="{name: '$input', attrs: {type: 'text'}}"
-              />
-
-              <vxe-table-column title="操作" width="15%" align="center">
-                <template v-slot="{ row }">
-                  <template v-if="$refs.xTable.isActiveByRow(row)">
-                    <el-button
-                      type="success"
-                      style="padding: 3px 4px 3px 4px;margin: 2px;"
-                      size="mini"
-                      icon="el-icon-edit"
-                      @click="editSave(row)"
-                    >保存
-                    </el-button>
-                    <el-button
-                      class="cancel-btn"
-                      icon="el-icon-refresh"
-                      type="warning"
-                      style="padding: 3px 4px 3px 4px;margin: 2px;"
-                      size="mini"
-                      @click="cancelRowEvent(row)"
-                    >取消
-                    </el-button>
-                  </template>
-                  <template v-else>
-                    <el-button
-                      :loading="loadButton"
-                      type="primary"
-                      style="padding: 3px 4px 3px 4px;margin: 2px;"
-                      size="mini "
-                      icon="el-icon-edit"
-                      @click="editRowEvent(row)"
-                    >编辑
-                    </el-button>
-                    <el-button
-                      :loading="loadButton"
-                      type="danger"
-                      style="padding: 3px 4px 3px 4px;margin: 2px;"
-                      size="mini "
-                      icon="el-icon-delete"
-                      @click="deleteRowEvent(row)"
-                    >删除
-                    </el-button>
-                  </template>
-                </template>
-              </vxe-table-column>
-            </vxe-table-column>
-          </vxe-table>
-
-          <vxe-pager
-            perfect
-            :current-page.sync="currentPage"
-            :page-size.sync="pageSize"
-            :total="total"
-            :page-sizes=[10,50,100]
-            :layouts="['PrevJump', 'PrevPage','JumpNumber', 'NextPage', 'NextJump', 'Sizes', 'FullJump', 'Total']"
-            @page-change="handlePageChange"
-            v-show="!loadButton&&showTable"
-          />
-        </div>
-      </el-card>
-    </div>
-
-    <!-- 删除提示框 -->
-    <el-dialog :visible.sync="delVisible" title="提示" width="300px" center>
-      <div class="del-dialog-cnt">删除不可恢复,是否确定删除?</div>
-      <span slot="footer" class="dialog-footer">
-        <el-button type="primary" @click="deleteCancel()">取 消</el-button>
-        <el-button type="primary" @click="deleteInfo()">确 定</el-button>
-      </span>
-    </el-dialog>
-
-  </div>
-
-</template>
-
-<script>
-
-  export default {
-
-    data() {
-      const checkName = (rule, value, callback) => {
-        var s6 = this.tableData
-        if (value == null || value === '') {
-          callback(new Error('请填写光伏组件型号'))
-        }
-        for (let i = 0; i < s6.length; i++) {
-          if (this.id == '' || this.id == undefined) {
-            // 新增
-            if ((value == s6[i].model)) {
-              callback(new Error('型号不能重复'))
-            }
-          } else {
-            // 修改
-            if (this.id != s6[i].id) {
-              if ((value == s6[i].model)) {
-                callback(new Error('型号不能重复'))
-              }
-            }
-          }
-        }
-        callback()
-      }
-      return {
-        stationCode: '',
-        stationList: [],
-        id:'',
-        total:0,
-        pageSize: 10,
-        currentPage: 1,
-        loadButton: false,
-        rowId: '',
-        showTable: true,
-        tableData: [],
-        delVisible: false,
-        loading: false,
-        // 是否为编辑
-        isEdit: false,
-        pvRotationMode: [],
-        // 表单验证规则
-        rules: {
-          model: [
-            { required: true, validator:checkName},
-            { message: '输入过长', max: 15 }
-          ],
-          singleCap: [
-            { required: true, message: '请填写组件容量' },
-            {pattern: /^\d+(\.\d+)?$/, message: '只能输入正数数字或带小数点的数字'},
-            { message: '输入过长', max: 10 }
-          ],
-          maximumExcitationVoltage: [
-            { required: true, message: '请填写最大工作电压' },
-            {pattern: /^\d+(\.\d+)?$/, message: '只能输入正数数字或带小数点的数字'},
-            { message: '输入过长', max: 10 }
-          ],
-          maximumPowerCurrent: [
-            { required: true, message: '请填写最大工作电流' },
-            {pattern: /^\d+(\.\d+)?$/, message: '只能输入正数数字或带小数点的数字'},
-            { message: '输入过长', max: 10 }
-          ],
-          openCircuitVoltage: [
-            { required: true, message: '请填写开路电压' },
-            {pattern: /^\d+(\.\d+)?$/, message: '只能输入正数数字或带小数点的数字'},
-            { message: '输入过长', max: 10 }
-          ],
-          shortCircuitCurrent: [
-            { required: true, message: '请填写短路电流' },
-            {pattern: /^\d+(\.\d+)?$/, message: '只能输入正数数字或带小数点的数字'},
-            { message: '输入过长', max: 10 }
-          ],
-          efficiencyOfWork: [
-            { required: true, message: '请填写工作效率' },
-            {pattern: /^\d+(\.\d+)?$/, message: '只能输入正数数字或带小数点的数字'},
-            { message: '输入过长', max: 10 }
-          ],
-          gradient: [
-            { required: true, message: '请填写倾斜角度' },
-            {pattern: /^\d+(\.\d+)?$/, message: '只能输入正数数字或带小数点的数字'},
-            { message: '输入过长', max: 10 }
-          ],
-          rotationMode: [
-            { required: true, message: '请填写旋转模式' }
-          ],
-          singleArea: [
-            { required: true, message: '请填写单片面积' },
-            {pattern: /^\d+(\.\d+)?$/, message: '只能输入正数数字或带小数点的数字'},
-            { message: '输入过长', max: 15 }
-          ]
-
-
-        }
-      }
-    },
-    created() {
-      this.getStationList()
-      this.getData()
-    },
-
-    methods: {
-      getStationList() {
-        this.$axios.get('/electricField/getElectricField').then((res) => {
-          this.stationList = res.data
-        }).catch((error) => {
-          this.$message.error('获取场站下拉框出错' + error)
-        })
-      },
-      getData() {
-        this.loading = true
-        let queryParam = this.stationCode;
-        if (queryParam==''){
-          queryParam="ALL"
-        }
-        this.$axios.get('/pvModuleModel/' + this.currentPage + '/' + this.pageSize + '/' + queryParam).then((res) => {
-          this.tableData = res.data.content
-          this.total = res.data.totalElements
-          // console.log('获取光伏组件信息成功')
-          this.getPvRotationMode()
-          this.loading = false
-        }).catch((error) => {
-          this.$message.error('获取光伏组件信息出错' + error)
-        })
-      },
-      getPvRotationMode() {
-        this.$axios.get('/getPvRotationMode/').then((res) => {
-          this.pvRotationMode = res.data
-          // console.log('获取光伏组件旋转枚举信息成功')
-        }).catch((error) => {
-          this.$message.error('获取光伏组件旋转枚举信息出错' + error)
-        })
-      },
-      handlePageChange({ currentPage, pageSize }) {
-        this.currentPage = currentPage
-        this.pageSize = pageSize
-        this.getData(this.currentPage, this.pageSize)
-      },
-      insertEvent(row) {
-        this.id = ''
-        this.showTable = true
-        this.isEdit = false
-        this.loadButton = true
-        this.$refs.xTable.insert()
-          .then(({ row }) => this.$refs.xTable.setActiveRow(row))
-      },
-      editRowEvent(row) {
-        this.id = row.id
-        this.isEdit = true
-        this.loadButton = true
-        this.$refs.xTable.setActiveRow(row)
-      },
-      editSave(row) {
-        this.$refs.xTable.validate(this.$refs.xTable.getCurrentRecord(),valid => {
-          if (valid) {
-            this.$refs.xTable.clearActived().then(() => {
-              if (this.isEdit) {
-                // 编辑保存
-                this.$axios.put('/pvModuleModel/',row).then(res => {
-                  this.$message({
-                    message: '修改成功',
-                    type: 'success'
-                  })
-                  this.loadButton = false
-                  this.getData(this.currentPage, this.pageSize)
-                }).catch((error) => {
-                  this.$refs.xTable.setActiveRow(row)
-                  this.$message.error('修改光伏组件出错' + error)
-                })
-              } else {
-                // 新增保存
-
-                this.$axios.post('/pvModuleModel/',row).then(res => {
-                  this.$message({
-                    message: '保存成功',
-                    type: 'success'
-                  })
-                  this.loadButton = false
-                  this.getData(this.currentPage, this.pageSize)
-                }).catch((error) => {
-                  this.$refs.xTable.setActiveRow(row)
-                  this.$message.error('保存光伏组件出错' + error)
-                })
-              }
-            })
-          } else {
-            this.$XModal.message({ status: 'error', message: '校验不通过!' })
-          }
-        })
-      },
-      cancelRowEvent(row) {
-        const xTable = this.$refs.xTable
-        xTable.clearActived().then(() => {
-          // 还原行数据
-          if (this.isEdit) {
-            // 编辑
-            xTable.revertData(row)
-          } else {
-            // 新增
-            xTable.remove(row)
-          }
-          this.loadButton = false
-        })
-      },
-      // 删除场站信息
-      deleteRowEvent(row) {
-        this.rowId = row.id
-        this.delVisible = true
-      },
-      deleteCancel() {
-        this.delVisible = false
-      },
-      deleteInfo() {
-        this.$axios.delete('/pvModuleModel/'+this.rowId).then(res => {
-          this.$message({
-            message: '删除成功',
-            type: 'success'
-          })
-          this.delVisible = false
-          this.getData(this.currentPage, this.pageSize)
-        }).catch((error) => {
-          this.$message.error('删除光伏组件信息出错' + error)
-        })
-      },
-
-      exportDataEvent() {
-        this.loading = true
-        this.$axios.get('/pvModuleModel/').then(res => {
-          const data = res.data.content
-          this.$refs.xTable.exportData({
-            filename: '光伏组件信息',
-            type: 'csv',
-            isHeader: true,
-            isFooter: true,
-            data
-          })
-          this.loading = false
-        }).catch(e => {
-          this.loading = false
-        })
-      },
-      dataUpload(item) {
-
-      },
-      importDataEvent(item) {
-        this.loadButton = true
-        const formData = new FormData()
-        formData.append('file', item.file)
-        console.log('上传文件', item.file)
-        this.$axios.post('/pvModuleModel/').then(res => {
-          this.$message({
-            message: '导入光伏组件信息成功',
-            type: 'success'
-          })
-        }).catch((error) => {
-          this.$message({
-            message: '导入光伏组件信息成功',
-            type: 'success'
-          })
-        })
-
-        this.loadButton = false
-
-        /*  this.$refs.xTable.importData({ types: ['csv'] })*/
-      }
-
-    }
-  }
-</script>
-
-<style scoped>
-
-  .my_table_insert .vxe-body--row.is--new {
-    background-color: #f1fdf1;
-  }
-</style>

+ 0 - 290
ipfcst-console/src/main/frontend/views/console/sysUser/index.vue

@@ -1,290 +0,0 @@
-<template xmlns:v-slot="http://www.w3.org/1999/XSL/Transform">
-
-    <div class="app-container">
-        <div>
-            <el-card>
-                <div slot="header" class="clearfix">
-                    <b><span>用户管理</span></b>
-                </div>
-
-                <div class="filter-container">
-                    <el-button type="primary" size="small" style="round-clip: 10px" @click="insertEvent"
-                               :loading="loadButton">添加
-                    </el-button>
-                </div>
-                <div style="padding-top: 10px">
-                    <vxe-table
-                            ref="xTable"
-                            border
-                            export-config
-                            keep-source
-                            auto-resize
-                            resizable
-                            :edit-rules="rules"
-                            :loading="loading"
-                            :data="tableData"
-                            v-show="showTable"
-                            show-overflow
-                            highlight-current-row
-                            :edit-config="{trigger: 'manual', mode: 'row',autoClear:false,showStatus: true,icon:'none'}"
-                    >
-                        <vxe-table-column title="用户基本信息" align="center">
-                            <vxe-table-column
-                                    field="userName"
-                                    title="用户名"
-                                    width="7%"
-                                    align="center"
-                                    :edit-render="{name: '$input', attrs: {type: 'text'}}"
-                            />
-                            <vxe-table-column
-                                    field="passWord"
-                                    title="密码"
-                                    width="7%"
-                                    align="center"
-                                    :edit-render="{name: '$input', attrs: {type: 'text'}}"
-                            />
-                            <vxe-table-column
-                                    field="name"
-                                    title="姓名"
-                                    width="7%"
-                                    align="center"
-                                    :edit-render="{name: '$input', attrs: {type: 'text'}}"
-                            />
-                            <vxe-table-column
-                                    field="status"
-                                    title="状态"
-                                    width="8%"
-                                    align="center"
-                                    :edit-render="{name: '$select', options: userStatus}"
-                            />
-                            <vxe-table-column title="操作" width="15%" align="center">
-                                <template v-slot="{ row }">
-                                    <template v-if="$refs.xTable.isActiveByRow(row)">
-                                        <el-button
-                                                type="success"
-                                                style="padding: 3px 4px 3px 4px;margin: 2px;"
-                                                size="mini"
-                                                icon="el-icon-edit"
-                                                @click="editSave(row)"
-                                        >保存
-                                        </el-button>
-                                        <el-button
-                                                class="cancel-btn"
-                                                icon="el-icon-refresh"
-                                                type="warning"
-                                                style="padding: 3px 4px 3px 4px;margin: 2px;"
-                                                size="mini"
-                                                @click="cancelRowEvent(row)"
-                                        >取消
-                                        </el-button>
-                                    </template>
-                                    <template v-else>
-                                        <el-button
-                                                :loading="loadButton"
-                                                type="primary"
-                                                style="padding: 3px 4px 3px 4px;margin: 2px;"
-                                                size="mini "
-                                                icon="el-icon-edit"
-                                                @click="editRowEvent(row)"
-                                        >编辑
-                                        </el-button>
-                                        <el-button
-                                                :loading="loadButton"
-                                                type="danger"
-                                                style="padding: 3px 4px 3px 4px;margin: 2px;"
-                                                size="mini "
-                                                icon="el-icon-delete"
-                                                @click="deleteRowEvent(row)"
-                                        >删除
-                                        </el-button>
-                                    </template>
-                                </template>
-                            </vxe-table-column>
-                        </vxe-table-column>
-                    </vxe-table>
-                </div>
-            </el-card>
-        </div>
-
-        <!-- 删除提示框 -->
-        <el-dialog :visible.sync="delVisible" title="提示" width="300px" center>
-            <div class="del-dialog-cnt">删除不可恢复,是否确定删除?</div>
-            <span slot="footer" class="dialog-footer">
-        <el-button type="primary" @click="deleteCancel()">取 消</el-button>
-        <el-button type="primary" @click="deleteInfo()">确 定</el-button>
-      </span>
-        </el-dialog>
-
-    </div>
-
-</template>
-
-<script>
-
-    export default {
-        data() {
-            const checkName = (rule, value, callback) => {
-                var s6 = this.tableDatas
-                if (value == null || value === '') {
-                    callback(new Error('请填写用户名'))
-                }
-                for (let i = 0; i < s6.length; i++) {
-                    if (this.id == '' || this.id == undefined) {
-                        // 新增
-                        if ((value == s6[i].userName)) {
-                            callback(new Error('用户名不能重复'))
-                        }
-                    } else {
-                        // 修改
-                        if (this.id != s6[i].id) {
-                            if ((value == s6[i].userName)) {
-                                callback(new Error('用户名不能重复'))
-                            }
-                        }
-                    }
-                }
-                callback()
-            }
-            return {
-                id: '',
-                tableDatas: [],
-                elStations: [],
-                elStation: '',
-                total: 0,
-                pageSize: 5,
-                currentPage: 1,
-                loadButton: false,
-                rowId: '',
-                showTable: true,
-                tableData: [],
-                delVisible: false,
-                loading: false,
-                // 是否为编辑
-                isEdit: false,
-                pvRotationMode: [],
-                userStatus: [{value: "0", label: "正常"}, {value: "2", label: "禁用"}],
-                // 表单验证规则
-                rules: {
-                    userName: [
-                        {required: true, validator: checkName},
-                        {message: '输入过长', max: 15}
-                    ]
-                }
-            }
-        },
-        created() {
-            this.getAll()
-        },
-
-        methods: {
-            getAll() {
-                this.loading = true
-                this.$axios.get('/sysUser/').then((res) => {
-                    this.tableData = res.data
-                    if (res.data == null) {
-                        this.showTable = false
-                    } else {
-                        this.showTable = true
-                    }
-                    this.loading = false
-                }).catch((error) => {
-                    this.$message.error('获取用户信息出错' + error)
-                })
-            },
-            insertEvent(row) {
-                this.id = ''
-                this.showTable = true
-                this.isEdit = false
-                this.loadButton = true
-                this.$refs.xTable.insert()
-                    .then(({row}) => this.$refs.xTable.setActiveRow(row))
-            },
-            editRowEvent(row) {
-                this.id = row.id
-                this.isEdit = true
-                this.loadButton = true
-                this.$refs.xTable.setActiveRow(row)
-            },
-            editSave(row) {
-                this.$refs.xTable.validate(this.$refs.xTable.getCurrentRecord(), valid => {
-                    if (valid) {
-                        this.$refs.xTable.clearActived().then(() => {
-                            if (this.isEdit) {
-                                // 编辑保存
-                                this.$axios.put('/sysUser/', row).then(res => {
-                                    this.$message({
-                                        message: '修改成功',
-                                        type: 'success'
-                                    })
-                                    this.loadButton = false
-                                    this.getAll()
-                                }).catch((error) => {
-                                    this.$refs.xTable.setActiveRow(row)
-                                    this.$message.error('修改用户出错' + error)
-                                })
-                            } else {
-                                // 新增保存
-                                row.stationCode = this.elStation
-                                this.$axios.post('/sysUser/', row).then(res => {
-                                    this.$message({
-                                        message: '保存成功',
-                                        type: 'success'
-                                    })
-                                    this.loadButton = false
-                                    this.getAll()
-                                }).catch((error) => {
-                                    this.$refs.xTable.setActiveRow(row)
-                                    this.$message.error('修改用户出错' + error)
-                                })
-                            }
-                        })
-                    } else {
-                        this.$XModal.message({status: 'error', message: '校验不通过!'})
-                    }
-                })
-            },
-            cancelRowEvent(row) {
-                const xTable = this.$refs.xTable
-                xTable.clearActived().then(() => {
-                    // 还原行数据
-                    if (this.isEdit) {
-                        // 编辑
-                        xTable.revertData(row)
-                    } else {
-                        // 新增
-                        xTable.remove(row)
-                    }
-                    this.loadButton = false
-                })
-            },
-            // 删除场站信息
-            deleteRowEvent(row) {
-                this.rowId = row.cloudId
-                this.delVisible = true
-            },
-            deleteCancel() {
-                this.delVisible = false
-            },
-            deleteInfo() {
-                this.$axios.delete('/sysUser/' + this.rowId).then(res => {
-                    this.$message({
-                        message: '删除成功',
-                        type: 'success'
-                    })
-                    this.delVisible = false
-                    this.getAll()
-                }).catch((error) => {
-                    this.$message.error('删除用户出错' + error)
-                })
-            }
-
-        }
-    }
-</script>
-
-<style scoped>
-
-    .my_table_insert .vxe-body--row.is--new {
-        background-color: #f1fdf1;
-    }
-</style>

+ 0 - 412
ipfcst-console/src/main/frontend/views/systemfile/LogFile.vue

@@ -1,412 +0,0 @@
-<template>
-  <div>
-    <el-container>
-      <el-header style="padding: 0px;display:flex;justify-content:space-between;align-items: center">
-        <div style="display: inline">
-          <el-button
-            v-show="level>0"
-            :loading="tableLoading"
-            type="primary"
-            style="margin-left: 5px;display: inline"
-            size="mini"
-            icon="el-icon-arrow-left"
-            @click="back"
-          >
-            返回
-          </el-button>
-          <el-upload
-            v-show="level>0"
-            :http-request="dataUpload"
-            :before-upload="beforeUpload"
-            class="el-upload-button"
-            show-file-list="false"
-            action="/sysFile/upload"
-            ref="upload"
-          >
-            <el-button v-loading.fullscreen.lock="fullscreenLoading" slot="trigger" size="mini" type="primary" >
-              上传文件
-            </el-button>
-          </el-upload>
-        </div>
-      </el-header>
-      <el-main style="padding-left: 0px;padding-top: 0px">
-        <div>
-          <el-table
-            v-loading="tableLoading"
-            :data="emps"
-            height="550"
-            border
-            stripe
-            size="mini"
-            style="width: 100%;"
-            @selection-change="handleSelectionChange">
-            <el-table-column
-              type="selection"
-              header-align="center"/>
-            <el-table-column
-              :show-overflow-tooltip="true"
-              header-align="center"
-              width="250"
-              label="文件名">
-              <template slot-scope="scope" >
-                <el-button
-                  v-if="scope.row.fileType === '文件夹'"
-                  icon="el-icon-arrow-right"
-                  type="warning"
-                  style="padding: 3px 4px 3px 4px;margin: 2px"
-                  size="mini"
-                  @click="open(scope.row)">{{ scope.row.fileName }}
-                </el-button>
-                <span v-else-if="scope.row.fileType === '文件'">{{ scope.row.fileName }}</span>
-              </template>
-            </el-table-column>
-            <el-table-column
-              :show-overflow-tooltip="true"
-              prop="filePath"
-              header-align="center"
-              label="文件路径"/>
-            <el-table-column
-              sortable
-              prop="fileType"
-              header-align="center"
-              width="180"
-              label="文件类型"/>
-            <el-table-column
-              sortable
-              prop="fileTime"
-              header-align="center"
-              width="180"
-              label="文件修改时间"/>
-            <el-table-column
-              fixed="right"
-              header-align="center"
-              width="210"
-              label="操作">
-              <template slot-scope="scope">
-                <el-button
-                  v-show="scope.row.fileType === '文件'||scope.row.filePath.indexOf('logs')>-1 && scope.row.fileName != '日志文件'"
-                  type="success"
-                  style="padding: 3px 4px 3px 4px;margin: 2px"
-                  size="mini"
-                  icon="el-icon-download"
-                  @click="downFile(scope.row)">下载
-                </el-button>
-                <el-button
-                  type="danger"
-                  style="padding: 3px 4px 3px 4px;margin: 2px"
-                  size="mini"
-                  icon="el-icon-delete"
-                  @click="deleteEmp(scope.row)">删除
-                </el-button>
-                <el-button
-                  v-show="scope.row.fileType === '文件'"
-                  type="primary"
-                  style="padding: 3px 4px 3px 4px;margin: 2px"
-                  size="mini"
-                  icon="el-icon-view"
-                  @click="showFileContent(scope.row)">预览
-                </el-button>
-              </template>
-            </el-table-column>
-          </el-table>
-          <div style="display: flex;justify-content: space-between;margin: 2px">
-            <el-button
-              v-if="false"
-              :disabled="multipleSelection.length==0"
-              type="danger"
-              size="mini"
-              @click="deleteManyEmps">批量删除
-            </el-button>
-            <el-button
-              :disabled="multipleSelection.length==0"
-              type="success"
-              size="mini"
-              @click="downloadManyEmps">批量下载
-            </el-button>
-          </div>
-        </div>
-      </el-main>
-    </el-container>
-    <el-form :model="emp" style="margin: 0px;padding: 0px;" label-width="100px" >
-      <div style="text-align: left">
-        <el-dialog
-          :close-on-click-modal="false"
-          :visible.sync="dialogVisibleInfo"
-          :title="emp.dailogTitleName+'文件内容'"
-          style="padding: 0px;"
-          label-width="1px"
-          width="1000px">
-          <el-input v-model="emp.fileContent" :rows="20" :readonly="true" type="textarea" style="width: 100%"/>
-          <span slot="footer" class="dialog-footer">
-            <el-button size="mini" @click="cancelShowFileContent">关 闭</el-button>
-          </span>
-        </el-dialog>
-      </div>
-    </el-form>
-  </div>
-</template>
-<script>
-export default {
-  data() {
-    return {
-      emps: [],
-      emp: {
-        fileContent: '',
-        dailogTitleName: ''
-      },
-      multipleSelection: [],
-      depTextColor: '#c0c4cc',
-      tableLoading: false,
-      totalCount: -1,
-      nowpath: '',
-      fullscreenLoading: false,
-      level: 0,
-      dialogVisibleInfo: false
-    }
-  },
-  mounted: function() {
-    this.loadEmps()
-  },
-  methods: {
-    beforeUpload(file) {
-      const isLt2M = file.size / 1024 / 1024 < 1024 // 这里做文件大小限制
-      if (!isLt2M) {
-        this.$message({
-          message: '上传文件大小不能超过1020M!',
-          type: 'warning'
-        })
-      }
-      return isLt2M
-    },
-    dataUpload(item) {
-      this.fullscreenLoading = true
-      const formData = new FormData()
-      formData.append('path', this.nowpath)
-      formData.append('file', item.file)
-      this.$axios.post('/sysFile/upload', formData).then((response) => {
-        this.$refs.upload.clearFiles()
-        this.fullscreenLoading = false
-        if (response && response.code === 0) {
-          this.loadEmps()
-          this.$message.success(response.data.msg)
-        } else {
-          this.$message.error(response.data.msg)
-        }
-      })
-    },
-    back() {
-      var path = this.$fpath
-      var _this = this
-      // this.level为1,二级目录返回一级目录,path为空
-      if (_this.level === 1) {
-        _this.nowpath = ''
-      } else {
-        _this.nowpath = _this.nowpath.substring(0, _this.nowpath.lastIndexOf(path.sep))
-      }
-      _this.tableLoading = true
-      this.$axios.get('/sysFile/getFileList',{params:{"path":_this.nowpath}}).then((resp) => {
-        _this.tableLoading = false
-        if (resp && resp.code === 0) {
-          _this.level = _this.level - 1
-          var data = resp.data
-          _this.emps = data
-        }
-      })
-    },
-    downFile(row) {
-      var _this = this
-      var fn = row.fileName
-      if (_this.level === 0) {
-        fn = ''
-      }
-
-        _this.tableLoading = true
-        const formData = new FormData()
-        formData.append('path', row.filePath)
-        formData.append('name', fn)
-        formData.append('type', row.fileType)
-
-        if(row.fileType === '文件夹'){
-          this.$axios({ // 用axios发送post请求
-            method: 'post',
-            url: '/sysFile/downLoadFolder', // 请求地址
-            data: formData, // 参数
-            responseType: 'blob', // 表明返回服务器返回的数据类型
-            headers: {
-              'Content-Type': 'application/json'
-            }
-          }).then(res => { // 处理返回的文件流
-            _this.tableLoading = false
-            if (resp && resp.code === 0) {
-              _this.$message.error('下载失败!')
-            }
-          })
-        }else{
-          this.$axios({ // 用axios发送post请求
-            method: 'post',
-            url: '/sysFile/downLoadFile', // 请求地址
-            data: formData, // 参数
-            responseType: 'blob', // 表明返回服务器返回的数据类型
-            headers: {
-              'Content-Type': 'application/json'
-            }
-          }).then(res => { // 处理返回的文件流
-            _this.tableLoading = false
-            if (resp && resp.code === 0) {
-              _this.$message.error('下载失败!')
-            }
-          })
-        }
-    },
-    open(row) {
-
-      var path = this.$fpath
-      var _this = this
-
-      // this.level为0,一级目录跳转2级目录,不要拼接row.filePath+row.fileName
-      if (_this.level === 0) {
-        _this.nowpath = decodeURI(row.filePath)
-      } else {
-        _this.nowpath = path.join(row.filePath, row.fileName)
-      }
-      _this.tableLoading = true
-      this.$axios.get('/sysFile/getFileList',{params:{"path":_this.nowpath}}).then((resp) => {
-        _this.tableLoading = false
-        if (resp && resp.code === 0) {
-          _this.level = _this.level + 1
-          var data = resp.data
-          _this.emps = data
-        }
-      })
-    },
-    loadEmps() {
-      var _this = this
-      _this.tableLoading = true
-      // _this.nowpath = 'D:/F_data/new'
-      // const formData = new FormData()
-      // formData.append('path', _this.nowpath)
-      this.$axios.get('/sysFile/getFileList',{params:{"path":_this.nowpath}}).then((resp) => {
-        _this.tableLoading = false
-        if (resp && resp.code === 0) {
-          var data = resp.data
-          _this.emps = data
-        }
-      })
-    },
-    handleSelectionChange(val) {
-      this.multipleSelection = val
-    },
-    deleteManyEmps() {
-      this.$confirm('此操作将删除[' + this.multipleSelection.length + ']条数据, 是否继续?', '提示', {
-        confirmButtonText: '确定',
-        cancelButtonText: '取消',
-        type: 'warning'
-      }).then(() => {
-        var names = ''
-        var pathfile = ''
-        for (var i = 0; i < this.multipleSelection.length; i++) {
-          names += this.multipleSelection[i].fileName + ','
-        }
-        if (names.length > 0) {
-          pathfile = this.multipleSelection[0].filePath
-          this.doDelete(names, pathfile)
-        }
-      }).catch(() => {
-      })
-    },
-    downloadManyEmps() {
-      var wjj = 0
-      var wj = 0
-      for (var i = 0; i < this.multipleSelection.length; i++) {
-        if (this.multipleSelection[i].fileType === '文件') {
-          wj++
-        } else {
-          wjj++
-        }
-      }
-      this.$confirm('此操作选择[' + this.multipleSelection.length + ']条数据,其中包含[' + wjj + ']个文件夹,暂不支持下载文件夹,将下载[' + wj + ']条数据, 是否继续?', '提示', {
-        confirmButtonText: '确定',
-        cancelButtonText: '取消',
-        type: 'success'
-      }).then(() => {
-        for (var i = 0; i < this.multipleSelection.length; i++) {
-          this.downFile(this.multipleSelection[i])
-        }
-      }).catch(() => {
-      })
-    },
-    deleteEmp(row) {
-      this.$confirm('此操作将永久删除[' + row.fileName + '], 是否继续?', '提示', {
-        confirmButtonText: '确定',
-        cancelButtonText: '取消',
-        type: 'warning'
-      }).then(() => {
-        this.doDelete(row.fileName, row.filePath)
-      }).catch(() => {
-      })
-    },
-    doDelete(name, path) {
-      var _this = this
-      _this.tableLoading = true
-      const formData = new FormData()
-      formData.append('path', path)
-      formData.append('name', name)
-      this.$axios.post('/sysFile/deleteFile',formData).then((resp) => {
-        _this.tableLoading = false
-        if (resp && resp.code === 0) {
-          var data = resp.data
-          _this.emps = data
-        }
-      })
-    },
-    showFileContent(row) {
-      // 获取后台流文件内容
-      var _this = this
-      _this.tableLoading = true
-      const path = row.filePath
-      const name = row.fileName
-      this.$axios.get('/sysFile/getFileContent',{params:{"path":path,"name":name}}).then(resp => {
-        _this.tableLoading = false
-        if (resp && resp.code === 0) {
-          this.emp.fileContent = resp.data.fileContent
-        }
-      })
-
-      // 将文件内容显示到弹出框中
-      this.emp.dailogTitleName = row.fileName
-      this.dialogVisibleInfo = true
-    },
-    cancelShowFileContent() {
-      this.dialogVisibleInfo = false
-      this.emptyEmpData()
-    },
-    emptyEmpData() {
-      this.emp = {
-        fileContent: ''
-      }
-    }
-  }
-}
-</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;
-    }
-    .el-upload-button {
-      display: inline-block;
-    }
-</style>

+ 1 - 1
ipfcst-console/src/main/java/com/jiayue/ipfcst/console/service/ReceiveDataService.java

@@ -282,7 +282,7 @@ public class ReceiveDataService {
       PowerStationStatusData p = powerStationDataPackerContainer.getDataPacker(electricField.getStationCode()).packageData(pssd);
       powerStationStatusDataRepository.save(p);
       //对象转map
-      Map<String, String> map = JSON.parseObject(JSON.toJSONString(p), new TypeReference<Map<String, String>>() {
+      Map<String, String> map    = JSON.parseObject(JSON.toJSONString(p), new TypeReference<Map<String, String>>() {
       });
       redisUtils.hmset("power-" + electricField.getStationCode(), map);
       log.info("实际功率结束");