浏览代码

日前调度页面增加表格

小王 1 年之前
父节点
当前提交
8b48b990c4
共有 4 个文件被更改,包括 256 次插入2 次删除
  1. 6 0
      src/router/index.js
  2. 4 2
      src/views/rqdd/rqdd.vue
  3. 188 0
      src/views/rqdd/rqddjh.vue
  4. 58 0
      src/views/tabledata.json

+ 6 - 0
src/router/index.js

@@ -13,6 +13,7 @@ import Ptfh from '@/views/sjcjjk/ptfh/index.vue'
 import Gaoznfh from '@/views/sjcjjk/gznfh/index.vue'
 import Fdjhhd from '@/views/fdjh/hd/index.vue'
 import Fdjhgf from '@/views/fdjh/gf/index.vue'
+import rqddjh from '@/views/rqdd/rqddjh.vue'
 import Fdjhcn from '@/views/fdjh/cn/index.vue'
 import Jkcx from '@/views/xtrz/jkcx/index.vue'
 import Xtpz from '../views/xtpz/xtpz.vue'
@@ -59,6 +60,11 @@ const routes = [
         component: Fdjhgf
     },
     {
+        path: '/rqddjh',
+        name: '日前调度计划',
+        component: rqddjh
+    },
+    {
         path: '/fdjhcn',
         name: '储能',
         component: Fdjhcn

+ 4 - 2
src/views/rqdd/rqdd.vue

@@ -42,6 +42,8 @@
             <div class="littleHeadWord">
                 <span>日前调度计划</span>
             </div>
+            <iframe scrolling="no" src="/#/rqddjh" style="width: 100%;height: 100%;border: 0;">
+            </iframe>
         </div>
     </div>
 </template>
@@ -146,8 +148,8 @@ export default {
 }
 
 .zx {
-    width: 100%;
-    height: calc(56vh);
+    width: 69.5%;
+    height: calc(55vh);
     position: absolute;
     top: 399px;
     left: 2px;

+ 188 - 0
src/views/rqdd/rqddjh.vue

@@ -0,0 +1,188 @@
+<template>
+    <div class="table-wrapper">
+        <div class="table-box">
+            <el-table
+                    :cell-style="{border:0,color:'#fff'}"
+                    :data="tableData"
+                    :header-cell-style="{color:'#fff'}"
+                    :row-style="{backgroundColor:'rgb(4,66,115,0.3)'}"
+                    size="mini"
+                    style="width: 1429px;font-size: 17px;background: none"
+            >
+                <el-table-column
+                        align="center"
+                        label="场站名称"
+                        prop="stationName"
+                        width="230px"
+                >
+                </el-table-column>
+                <el-table-column
+                        align="center"
+                        label="类别"
+                        prop="type"
+                >
+                </el-table-column>
+                <el-table-column
+                        align="center"
+                        label="计划值"
+                        prop="plan">
+                </el-table-column>
+                <el-table-column
+                        align="center"
+                        label="计算时刻"
+                        prop="time">
+                </el-table-column>
+                <el-table-column
+                        align="center"
+                        label="是否下发"
+                        prop="status">
+                </el-table-column>
+            </el-table>
+        </div>
+    </div>
+</template>
+
+<script>
+
+export default {
+    name: 'Article-Index',
+    data() {
+        return {
+            form: {
+                taskNumber: '',
+                date: '',
+                current: 1,
+                size: 10
+            },
+            tableData: ''
+        }
+    },
+    methods: {},
+    mounted() {
+        const tableDataList = require('../tabledata.json');
+        this.tableData = tableDataList.rqddjhList
+    }
+}
+</script>
+
+<style lang="less" scoped>
+
+
+body {
+  border: 0;
+  background-image: url(../Articles/img/bgc.png)
+}
+
+.table-wrapper {
+  width: 97%;
+  height: 100%;
+  padding-left: 2%;
+
+  .table-box {
+    min-height: 300px;
+    background-size: cover;
+    margin-top: 50px;
+  }
+
+  .title {
+    margin-bottom: 20px;
+    margin-left: 60px;
+    font-size: 18px;
+    color: #fff;
+  }
+
+  /deep/ .el-form-item__label {
+    color: #fff;
+    font-size: 17px;
+  }
+
+  /deep/ .el-input__inner {
+    background-color: rgba(14, 73, 131);
+    border: 1px solid rgb(64, 153, 255);
+    height: 34px;
+    font-size: 17px;
+  }
+
+  /deep/ .el-table__header {
+    background: url(../Articles/img/bg1.png);
+  }
+
+  /deep/ .el-table--enable-row-hover .el-table__body tr:hover > td {
+    background-color: rgb(103, 118, 49) !important
+  }
+
+  /deep/ .el-col {
+    padding: 0;
+    display: inline-block;
+    position: relative;
+  }
+
+  /deep/ .el-col:nth-child(1) {
+    width: 19%;
+  }
+
+  /deep/ .el-col:nth-child(2) {
+    width: 22%;
+  }
+
+  /deep/ .el-col:nth-child(3) {
+    width: 19%;
+  }
+
+  /deep/ .el-col:nth-child(4) {
+    width: 19%;
+  }
+
+  /deep/ .el-col:nth-child(5) {
+    width: 11%;
+  }
+
+
+  /deep/ .el-input__inner {
+    width: 100%;
+  }
+
+
+  /deep/ .el-icon-arrow-up {
+    transform: rotateZ(0deg);
+
+  }
+
+
+  /deep/ .el-icon-arrow-up:before {
+    content: url(../Articles/img/xiala2.png);
+  }
+
+  /deep/ .el-input__prefix {
+    left: 75%;
+    padding-top: 3px;
+    width: 10%;
+  }
+
+  /deep/ .el-icon-date:before {
+    content: url(../Articles/img/riqi.png);
+  }
+
+  /deep/ .el-table__header tr {
+    background: url(../Articles/img/bg1.png);
+    height: 49px;
+
+  }
+
+  /deep/ .el-table th.el-table__cell {
+    background: none;
+  }
+
+  /deep/ .el-table__body {
+    -webkit-border-vertical-spacing: 13px; // 垂直间距
+  }
+
+  /deep/ .el-form-item__content {
+    text-align: left;
+  }
+
+  /deep/ .el-table, .el-table__expanded-cell {
+    background-color: rgb(1, 40, 81);
+  }
+}
+</style>

+ 58 - 0
src/views/tabledata.json

@@ -205,6 +205,64 @@
       "logTime": "2023-11-28 01:40:00"
     }
   ],
+  "rqddjhList": [
+    {
+      "stationName": "国电龙源官村风电场",
+      "type": "风机",
+      "plan": "50",
+      "time": "00:00:00",
+      "status": "是"
+    },
+    {
+      "stationName": "国电龙源官村风电场",
+      "type": "风机",
+      "plan": "50",
+      "time": "00:00:00",
+      "status": "是"
+    },
+    {
+      "stationName": "国电龙源官村风电场",
+      "type": "风机",
+      "plan": "50",
+      "time": "00:00:00",
+      "status": "是"
+    },
+    {
+      "stationName": "国电龙源官村风电场",
+      "type": "风机",
+      "plan": "50",
+      "time": "00:00:00",
+      "status": "是"
+    },
+    {
+      "stationName": "国电龙源官村风电场",
+      "type": "风机",
+      "plan": "50",
+      "time": "00:00:00",
+      "status": "是"
+    },
+    {
+      "stationName": "国电龙源官村风电场",
+      "type": "风机",
+      "plan": "50",
+      "time": "00:00:00",
+      "status": "是"
+    },
+    {
+      "stationName": "国电龙源官村风电场",
+      "type": "风机",
+      "plan": "50",
+      "time": "00:00:00",
+      "status": "是"
+    },
+    {
+      "stationName": "国电龙源官村风电场",
+      "type": "风机",
+      "plan": "50",
+      "time": "00:00:00",
+      "status": "是"
+    }
+  ],
   "xAxisData": {
     "data": [
       "00:00",