isv-robot hace 2 años
padre
commit
52ceaeb33d

+ 4 - 2
src/views/dashboard-screen/index.vue

@@ -82,7 +82,7 @@
         </div>
         <div class="sop sop-3">
           <CardWrap>
-            <span slot="title">牵变、电力设备巡视兑现(本月)</span>
+            <span slot="title" @click="openDrawer('设备巡检兑现情况')">牵变、电力设备巡视兑现(本月)</span>
             <div slot="content">
               <QbDlsbxjdx/>
             </div>
@@ -122,6 +122,7 @@ import ScreenJxdxqk from '@/views/dashboard-screen/screen/screenJxdxqk.vue'
 import ScreenSyjhbydxqk from '@/views/dashboard-screen/screen/ScreenSyjhbydxqk.vue'
 import ScreenDbsx from '@/views/dashboard-screen/screen/screenDbsx/ScreenDbsx.vue'
 import ScreenDlts from '@/views/dashboard-screen/screen/screenDlts/screenDlts.vue'
+import ScreenSbxjdxqk from "@/views/dashboard-screen/screen/screenSbxjdxqk/screenSbxjdxqk.vue";
 
 require('dayjs/locale/zh-cn')
 export default {
@@ -159,7 +160,8 @@ export default {
         '变电-电力异常信息': ScreenBdDlYcxx,
         '试验计划本月兑现情况': ScreenSyjhbydxqk,
         '待办事项': ScreenDbsx,
-        '电力远动调试本月兑现情况': ScreenDlts
+        '电力远动调试本月兑现情况': ScreenDlts,
+        '设备巡检兑现情况': ScreenSbxjdxqk
       }
       this.drawer.title = title
       this.drawer.visible = true

+ 30 - 3
src/views/dashboard-screen/screen/screenDlts/screenDlts.vue

@@ -4,13 +4,13 @@
     <div class="o-item">电力受电线路</div>
     <div class="o-item">电力变配电所</div>
     <div class="o-item">
-      1
+      <v-chart autoresize :option="options[0]"/>
     </div>
     <div class="o-item">
-      2
+      <v-chart autoresize :option="options[1]"/>
     </div>
     <div class="o-item">
-      3
+      <v-chart autoresize :option="options[2]"/>
     </div>
     <div class="o-item">
       <Zydbsx :data="dataList[0]"/>
@@ -33,6 +33,22 @@ export default {
   components: {Zydbsx},
   data() {
     return {
+      color: ['rgb(96, 150, 230)', 'rgb(88, 182, 229)'],
+      basicOption: {
+        xAxis: {
+          type: 'category',
+          data: ['本月计划', '本月完成']
+        },
+        yAxis: {
+          type: 'value'
+        },
+        series: [
+          {
+            data: [120, 200, 150, 80, 70, 110, 130],
+            type: 'bar'
+          }
+        ]
+      },
       options: {
         0: {},
         1: {},
@@ -74,6 +90,17 @@ export default {
         ]
       }
     }
+  },
+  created() {
+    this.getOption()
+
+  },
+  methods: {
+    getOption() {
+      this.options[0] = Object.assign(this.basicOption)
+      this.options[1] = Object.assign(this.basicOption)
+      this.options[2] = Object.assign(this.basicOption)
+    }
   }
 }
 </script>

+ 70 - 0
src/views/dashboard-screen/screen/screenSbxjdxqk/indexColumns.js

@@ -0,0 +1,70 @@
+function columns(vm) {
+  const cols = [
+    {
+      title: '序号',
+      key: 'rowIndex',
+      width: 60,
+      align: 'center',
+      customRender: function (t, r, index) {
+        return parseInt(index) + 1
+      }
+    },
+    {
+      title: '车间',
+      align: 'center',
+      dataIndex: 'cj',
+      key: 'cj'
+    },
+    {
+      title: '线别',
+      align: 'center',
+      dataIndex: 'xb',
+      key: 'xb'
+    },
+    {
+      title: '区间(站区)',
+      align: 'center',
+      dataIndex: 'qj',
+      key: 'qj'
+    },
+    {
+      title: '所亭名称',
+      align: 'center',
+      dataIndex: 'stmc',
+      key: 'stmc'
+    },
+    {
+      title: '开关高压数量',
+      align: 'center',
+      dataIndex: 'kggy',
+      key: 'kggy'
+    },
+    {
+      title: '开关低压数量',
+      align: 'center',
+      dataIndex: 'kgdy',
+      key: 'kgdy'
+    },
+    {
+      title: '上次调试年度',
+      align: 'center',
+      dataIndex: 'dctsnd',
+      key: 'dctsnd'
+    },
+    {
+      title: '月份计划',
+      align: 'center',
+      dataIndex: 'yfjh',
+      key: 'yfjh'
+    },
+    {
+      title: '完成时间',
+      align: 'center',
+      dataIndex: 'wcsj',
+      key: 'wcsj'
+    }
+  ]
+  return cols
+}
+
+export default columns

+ 127 - 0
src/views/dashboard-screen/screen/screenSbxjdxqk/screenSbxjdxqk.vue

@@ -0,0 +1,127 @@
+<template>
+  <div>
+    <!-- 查询区域 -->
+    <div class="table-page-search-wrapper">
+      <!-- 操作按钮区域 -->
+      <div class="table-operator" style="margin: 5px 0;float: right">
+        <a-button ghost type="danger" icon="download" @click="handleExportXls()">导出</a-button>
+        <a-dropdown v-if="selectedRowKeys.length > 0">
+          <a-menu slot="overlay">
+            <a-menu-item key="1" @click="batchDel">
+              <a-icon type="delete"/>
+              删除
+            </a-menu-item>
+          </a-menu>
+          <a-button style="margin-left: 8px">
+            批量操作
+            <a-icon type="down"/>
+          </a-button>
+        </a-dropdown>
+      </div>
+      <a-form layout="inline" @keyup.enter.native="searchQuery">
+        <a-form-item>
+          <a-tree-select
+            v-model="queryParam.deptId"
+            style="width: 150px"
+            :show-search="true"
+            allow-clear
+            placeholder="选择车间"
+            :tree-data="treeData"
+            tree-node-filter-prop="label"
+            :replace-fields="{children:'children', title:'label', key:'id', value: 'id' }"
+          />
+        </a-form-item>
+        <a-form-item>
+          <j-list-select-tag
+            v-model="queryParam.stationId"
+            style="width: 150px"
+            placeholder="选择站场区间"
+            dict-code="station"
+          />
+        </a-form-item>
+        <a-form-item>
+          <a-input
+            v-model="queryParam.pillarCode"
+            style="width: 150px"
+            placeholder="输入支柱号"
+          />
+        </a-form-item>
+        <a-form-item>
+          <a-input
+            v-model="queryParam.checkUser"
+            style="width: 150px"
+            placeholder="输入检查人"
+          />
+        </a-form-item>
+        <a-form-item>
+          <a-button type="primary" @click="searchQuery">查询</a-button>
+          <a-button style="margin-left: 8px" @click="searchReset">重置</a-button>
+        </a-form-item>
+      </a-form>
+    </div>
+    <!-- table区域-begin -->
+    <div>
+      <div class="ant-alert ant-alert-info" style="margin: 16px 0;">
+        <i class="anticon anticon-info-circle ant-alert-icon"/> 已选择&nbsp;<a
+        style="font-weight: 600"
+      >{{ selectedRowKeys.length }}</a>项&nbsp;&nbsp;
+        <a style="margin-left: 24px" @click="onClearSelected">清空</a>
+      </div>
+      <a-table
+        ref="table"
+        size="middle"
+        bordered
+        row-key="id"
+        :columns="columns"
+        :data-source="dataSource"
+        :pagination="ipagination"
+        :loading="loading"
+        @change="handleTableChange"
+      />
+    </div>
+    <!-- table区域-end -->
+    <!-- 表单区域 -->
+  </div>
+</template>
+<script>
+import {listMixin} from '@/mixin/listMixin'
+import columns from './indexColumns'
+import {getAction} from '@/api/request'
+
+export default {
+  name: 'ScreenSbxjdxqk',
+  components: {},
+  mixins: [listMixin],
+  data() {
+    return {
+      // 查询条件
+      queryParam: {},
+      treeData: [],
+      // 表头
+      columns: columns(this),
+      url: {
+        list: '/business/catenary/bus/jcb/fdfxjyq/list',
+        delete: '/business/catenary/bus/jcb/fdfxjyq/',
+        tree: '/system/dept/treeSelect',
+        exportXlsUrl: '/business/catenary/bus/jcb/fdfxjyq/export'
+      }
+    }
+  },
+  created() {
+    this.loadTree()
+  },
+  methods: {
+    loadTree() {
+      this.treeData = []
+      getAction(this.url.tree).then((res) => {
+        if (res.code === 200) {
+          this.treeData = res.data
+        }
+      })
+    }
+  }
+}
+</script>
+<style scoped>
+@import '~@/assets/less/common.less'
+</style>

+ 136 - 0
src/views/dashboard-screen/screen/syjhdxqk/1.js

@@ -0,0 +1,136 @@
+// import echarts from 'echarts'
+var charts = { // 按顺序排列从大到小
+  cityList: ['38号点(1)', '38号点(2)', '15号点', '16号点', '24号点'],
+  cityData: [7500, 6200, 5700, 4200, 3500]
+}
+var top10CityList = charts.cityList
+var top10CityData = charts.cityData
+var color = ['rgba(248,195,248', 'rgba(100,255,249', 'rgba(135,183,255', 'rgba(248,195,248', 'rgba(100,255,249']
+
+let lineY = []
+for (var i = 0; i < charts.cityList.length; i++) {
+  var x = i
+  if (x > color.length - 1) {
+    x = color.length - 1
+  }
+  var data = {
+    name: charts.cityList[i],
+    color: color[x] + ')',
+    value: top10CityData[i],
+    itemStyle: {
+      normal: {
+        show: true,
+        color: new echarts.graphic.LinearGradient(0, 0, 1, 0, [{
+          offset: 0,
+          color: color[x] + ', 0.3)'
+        }, {
+          offset: 1,
+          color: color[x] + ', 1)'
+        }], false),
+        barBorderRadius: 10
+      },
+      emphasis: {
+        shadowBlur: 15,
+        shadowColor: 'rgba(0, 0, 0, 0.1)'
+      }
+    }
+  }
+  lineY.push(data)
+}
+
+option= {
+  backgroundColor:'#000',
+  title: {
+    show: false
+  },
+  tooltip: {
+    trigger: 'item'
+  },
+  grid: {
+    borderWidth: 0,
+    top: '10%',
+    left: '5%',
+    right: '15%',
+    bottom: '3%'
+  },
+  color: color,
+  yAxis: [{
+    type: 'category',
+    inverse: true,
+    axisTick: {
+      show: false
+    },
+    axisLine: {
+      show: false
+    },
+    axisLabel: {
+      show: false,
+      inside: false
+    },
+    data: top10CityList
+  }, {
+    type: 'category',
+    axisLine: {
+      show: true
+    },
+    axisTick: {
+      show: true
+    },
+    axisLabel: {
+      show: true,
+      inside: false,
+      textStyle: {
+        color: '#b3ccf8',
+        fontSize: '14',
+        fontFamily: 'PingFangSC-Regular'
+      },
+      formatter: function (val) {
+        return `${val}k`
+      }
+    },
+    splitArea: {
+      show: false
+    },
+    splitLine: {
+      show: false
+    },
+    data: top10CityData
+  }],
+  xAxis: {
+    type: 'value',
+    axisTick: {
+      show: false
+    },
+    axisLine: {
+      show: false
+    },
+    splitLine: {
+      show: false
+    },
+    axisLabel: {
+      show: false
+    }
+  },
+  series: [{
+    name: '',
+    type: 'bar',
+    zlevel: 2,
+    barWidth: '10px',
+    data: lineY,
+    animationDuration: 1500,
+    label: {
+      normal: {
+        color: '#b3ccf8',
+        show: true,
+        position: [0, '-24px'],
+        textStyle: {
+          fontSize: 16
+        },
+        formatter: function (a, b) {
+          return a.name
+        }
+      }
+    }
+  }],
+  animationEasing: 'cubicOut'
+}

+ 448 - 0
src/views/dashboard-screen/screen/syjhdxqk/index.vue

@@ -0,0 +1,448 @@
+<template>
+  <div class="wrap">
+    <div class="chart-wrap">
+      <v-chart autoresize :option="option"/>
+
+    </div>
+    <div class="tip">
+      <img src="/static/images/syjhTIP.png">
+    </div>
+  </div>
+</template>
+
+<script>
+
+import {chartDlydts, chartSyjhdxqk} from '@/api/dashboard-json'
+
+export default {
+  name: 'SyjhdxqkChart',
+  data() {
+    return {
+      option: {},
+      arrMap: {
+        '开关分合计划': [],
+        '单体计划': []
+      }
+    }
+  },
+  created() {
+    this.getOption()
+  },
+
+  methods: {
+    async getOption() {
+      const res = await chartSyjhdxqk()
+      if (res?.code === 200) {
+        const arrMap = {
+          '开关分合计划': [],
+          '单体计划': []
+        }
+        // const max =
+        res.info.xaxis.forEach((item, index) => {
+          const valItem = {
+            name: item,
+            value: res.info.series[1].data[index],
+            used: res.info.series[1].data[index],
+            total: res.info.series[0].data[index]
+          }
+          arrMap['开关分合计划'].push(valItem)
+          const valItem2 = {
+            name: item,
+            value: res.info.series[3].data[index],
+            used: res.info.series[3].data[index],
+            total: res.info.series[2].data[index]
+          }
+          arrMap['单体计划'].push(valItem2)
+        })
+        arrMap['开关分合计划'].forEach(item => {
+          if (item.used > item.total) {
+            item.used = item.total
+          }
+        })
+        arrMap['单体计划'].forEach(item => {
+          if (item.used > item.total) {
+            item.used = item.total
+          }
+        })
+        this.arrMap = arrMap
+      }
+      window['is'] = this
+      const baseWidth = this.EchartfontSize(16)
+      const offsetWidth = this.EchartfontSize(14)
+      const triangleHeight = 8
+      this.option = {
+        color: [],
+        grid: {
+          containLabel: true,
+          left: 20,
+          right: 20,
+          bottom: 10,
+          top: 40
+        },
+        xAxis: {
+
+          data: ['第一季度', '第二季度', '第三季度', '第四季度'],
+          type: 'category',
+          axisLabel: {
+            color: '#ffffff',
+            fontSize: this.EchartfontSize(14),
+            formatter: (name) => {
+              return `\n` + name
+            }
+          },
+          position: 'bottom',
+          label: {}
+          // offset: [0]
+
+        },
+        yAxis: {
+          axisLabel: {
+            color: '#ffffff',
+            fontSize: this.EchartfontSize(14)
+          },
+          axisTick: {
+            lineStyle: {
+              color: '#384267',
+              width: 0
+            },
+            show: true
+          },
+          splitLine: {
+            show: false,
+            lineStyle: {
+              color: '#384267',
+              type: 'dashed'
+            }
+          },
+          axisLine: {
+            lineStyle: {
+              color: '#ffffff',
+              width: 0,
+              type: 'dashed'
+            },
+            show: true
+          },
+          name: ''
+        },
+        series: [
+          {
+            // data: [200, 85, 112, 275],
+            data: this.arrMap['开关分合计划'].map(item => item.used),
+
+            type: 'pictorialBar',
+            symbol: 'rect',
+
+            symbolSize: ['100%', '100%'],
+            symbolOffset: [-offsetWidth, 0],
+            barMaxWidth: 'auto',
+            barWidth: baseWidth,
+
+            itemStyle: {
+              color: {
+                x: 0,
+                y: 0,
+                x2: 0,
+                y2: 1,
+                type: 'linear',
+                global: false,
+                colorStops: [
+                  {
+                    offset: 0,
+                    color: 'rgb(106, 169, 216)'
+                  },
+                  {
+                    offset: 1,
+                    color: 'rgb(54, 125, 181)'
+                  }
+                ]
+              }
+            },
+
+            zlevel: 1
+          },
+          {
+            data: [1, 1, 1, 1],
+            type: 'pictorialBar',
+            symbol: 'triangle',
+            symbolRotate: 180,
+            symbolOffset: [-offsetWidth, '96%'],
+            symbolSize: ['100%', triangleHeight],
+            barMaxWidth: 'auto',
+            barWidth: baseWidth,
+            itemStyle: {
+              color: 'rgb(54, 125, 181)'
+            },
+            zlevel: 1
+          },
+          {
+            // data: [200, 85, 112, 275],
+            data: this.arrMap['开关分合计划'].map(item => item.used),
+            type: 'pictorialBar',
+            symbolPosition: 'end',
+            symbol: 'triangle',
+            symbolRotate: 180,
+            symbolSize: [baseWidth, triangleHeight],
+            symbolOffset: [-offsetWidth, '-0%'],
+            barMaxWidth: 'auto',
+            barWidth: baseWidth,
+            itemStyle: {
+              color: 'rgb(159, 214, 253)'
+            },
+            zlevel: 2
+          },
+          {
+            // data: [600, 541, 741, 741],
+            data: this.arrMap['开关分合计划'].map(item => item.total),
+            type: 'pictorialBar',
+            symbol: 'rect',
+
+            symbolSize: [baseWidth, '100%'],
+            symbolOffset: [-offsetWidth, 0],
+            barMaxWidth: 'auto',
+            barWidth: baseWidth,
+            itemStyle: {
+              color: {
+                x: 0,
+                y: 0,
+                x2: 0,
+                y2: 1,
+                type: 'linear',
+                global: false,
+                colorStops: [
+                  {
+                    offset: 0,
+                    color: 'rgb(35, 55, 81)'
+                  },
+                  {
+                    offset: 1,
+                    color: 'rgb(30, 52, 75)'
+                  }
+                ]
+              }
+            },
+            label: {
+              show: true,
+              distance: 10,
+              color: '#fff',
+              fontSize: this.EchartfontSize(12),
+              position: [-baseWidth - offsetWidth / this.EchartfontSize(10), -this.EchartfontSize(36)],
+              formatter: (evt) => {
+                const item = this.arrMap['开关分合计划']?.[evt.dataIndex] || {}
+                return `${item.value}\n /\n${item.total}`
+              }
+            },
+            zlevel: -1
+
+          },
+
+          {
+            // data: [600, 541, 741, 741],
+            data: this.arrMap['开关分合计划'].map(item => item.total),
+            type: 'pictorialBar',
+
+            symbolPosition: 'end',
+            symbol: 'triangle',
+            symbolRotate: 180,
+
+            symbolSize: [baseWidth, triangleHeight],
+            symbolOffset: [-offsetWidth, '0%'],
+            barMaxWidth: 'auto',
+            barWidth: baseWidth,
+
+            itemStyle: {
+              color: 'rgb(49, 70, 97)'
+            },
+
+            zlevel: 1
+          },
+
+          // 2
+          {
+            // data: [160, 410, 112, 275],
+            data: this.arrMap['单体计划'].map(item => item.used),
+            type: 'pictorialBar',
+            symbol: 'rect',
+
+            symbolSize: [baseWidth, '100%'],
+            symbolOffset: [offsetWidth, '0%'],
+            barMaxWidth: 'auto',
+            barWidth: baseWidth,
+
+            itemStyle: {
+              color: {
+                x: 0,
+                y: 0,
+                x2: 0,
+                y2: 1,
+                type: 'linear',
+                global: false,
+                colorStops: [
+                  {
+                    offset: 0,
+                    color: 'rgb(107, 204, 220)'
+                  },
+                  {
+                    offset: 1,
+                    color: 'rgb(57, 154, 178)'
+                  }
+                ]
+              }
+            },
+
+            zlevel: 1
+          },
+          {
+            data: [1, 1, 1, 1],
+            type: 'pictorialBar',
+
+            symbol: 'triangle',
+            symbolRotate: 180,
+
+            symbolSize: [baseWidth, triangleHeight],
+            symbolOffset: [offsetWidth, '96%'],
+            barMaxWidth: 'auto',
+            barWidth: baseWidth,
+
+            itemStyle: {
+              color: 'rgb(57, 154, 178)'
+            },
+            zlevel: 1
+          },
+          {
+            // data: [160, 410, 112, 275],
+            data: this.arrMap['单体计划'].map(item => item.used),
+            type: 'pictorialBar',
+
+            symbolPosition: 'end',
+            symbol: 'triangle',
+            symbolRotate: 180,
+
+            symbolSize: [baseWidth, triangleHeight],
+            symbolOffset: [offsetWidth, '0%'],
+            barMaxWidth: 'auto',
+            barWidth: baseWidth,
+
+            itemStyle: {
+              color: 'rgb(159, 214, 253)'
+            },
+            zlevel: 2
+          },
+          {
+            // data: [580, 541, 741, 420],
+            data: this.arrMap['单体计划'].map(item => item.total),
+            type: 'pictorialBar',
+            symbol: 'rect',
+
+            symbolSize: [baseWidth, '100%'],
+            symbolOffset: [offsetWidth, '0%'],
+            barMaxWidth: 'auto',
+            barWidth: baseWidth,
+
+            itemStyle: {
+              color: {
+                x: 0,
+                y: 0,
+                x2: 0,
+                y2: 1,
+                type: 'linear',
+                global: false,
+                colorStops: [
+                  {
+                    offset: 0,
+                    color: 'rgb(33, 59, 72)'
+                  },
+                  {
+                    offset: 1,
+                    color: 'rgb(30, 64, 78)'
+                  }
+                ]
+              }
+            },
+            label: {
+              show: true,
+              distance: 10,
+              color: '#fff',
+              fontSize: this.EchartfontSize(12),
+              position: [baseWidth - offsetWidth / this.EchartfontSize(2), -this.EchartfontSize(36)],
+              formatter: (evt) => {
+                const item = this.arrMap['单体计划']?.[evt.dataIndex] || {}
+                return `${item.value}\n /\n${item.total}`
+              }
+            },
+            zlevel: -1
+
+          },
+          {
+            // data: [580, 541, 741, 420],
+            data: this.arrMap['单体计划'].map(item => item.total),
+            type: 'pictorialBar',
+
+            symbolPosition: 'end',
+            symbol: 'triangle',
+            symbolRotate: 180,
+
+            symbolSize: [baseWidth, triangleHeight],
+            symbolOffset: [offsetWidth, '0%'],
+            barMaxWidth: 'auto',
+            barWidth: baseWidth,
+
+            itemStyle: {
+              color: 'rgb(49, 70, 97)'
+
+            },
+
+            zlevel: 1
+          }
+        ],
+        tooltip: {
+          trigger: 'axis',
+          show: false
+        }
+      }
+    }
+  }
+
+}
+</script>
+
+<style scoped lang="scss">
+
+$xHeight: 120px;
+.wrap {
+  width: 100%;
+  height: 100%;
+  position: relative;
+
+  .tip {
+    position: absolute;
+    z-index: 1;
+    right: 1.5vw;
+    top: 0;
+
+    img {
+      height: 20px;
+      width: auto;
+      object-fit: cover;
+    }
+  }
+}
+
+.chart-wrap {
+  width: 100%;
+  height: 100%;
+
+  .left-bar {
+    width: 35px;
+    display: inline-block;
+  }
+
+  .right-conent {
+    width: calc(100% - 35px);
+    height: 100%;
+    display: grid;
+    grid-template-columns: 1fr 1fr 1fr 1fr;
+    grid-template-rows: auto $xHeight;
+  }
+
+}
+</style>

+ 70 - 0
src/views/dashboard-screen/screen/syjhdxqk/indexColumns.js

@@ -0,0 +1,70 @@
+function columns(vm) {
+  const cols = [
+    {
+      title: '序号',
+      key: 'rowIndex',
+      width: 60,
+      align: 'center',
+      customRender: function (t, r, index) {
+        return parseInt(index) + 1
+      }
+    },
+    {
+      title: '车间',
+      align: 'center',
+      dataIndex: 'cj',
+      key: 'cj'
+    },
+    {
+      title: '线别',
+      align: 'center',
+      dataIndex: 'xb',
+      key: 'xb'
+    },
+    {
+      title: '区间(站区)',
+      align: 'center',
+      dataIndex: 'qj',
+      key: 'qj'
+    },
+    {
+      title: '所亭名称',
+      align: 'center',
+      dataIndex: 'stmc',
+      key: 'stmc'
+    },
+    {
+      title: '开关高压数量',
+      align: 'center',
+      dataIndex: 'kggy',
+      key: 'kggy'
+    },
+    {
+      title: '开关低压数量',
+      align: 'center',
+      dataIndex: 'kgdy',
+      key: 'kgdy'
+    },
+    {
+      title: '上次调试年度',
+      align: 'center',
+      dataIndex: 'dctsnd',
+      key: 'dctsnd'
+    },
+    {
+      title: '月份计划',
+      align: 'center',
+      dataIndex: 'yfjh',
+      key: 'yfjh'
+    },
+    {
+      title: '完成时间',
+      align: 'center',
+      dataIndex: 'wcsj',
+      key: 'wcsj'
+    }
+  ]
+  return cols
+}
+
+export default columns

+ 70 - 0
src/views/dashboard-screen/syjhdxqk/indexColumns.js

@@ -0,0 +1,70 @@
+function columns(vm) {
+  const cols = [
+    {
+      title: '序号',
+      key: 'rowIndex',
+      width: 60,
+      align: 'center',
+      customRender: function (t, r, index) {
+        return parseInt(index) + 1
+      }
+    },
+    {
+      title: '车间',
+      align: 'center',
+      dataIndex: 'cj',
+      key: 'cj'
+    },
+    {
+      title: '线别',
+      align: 'center',
+      dataIndex: 'xb',
+      key: 'xb'
+    },
+    {
+      title: '区间(站区)',
+      align: 'center',
+      dataIndex: 'qj',
+      key: 'qj'
+    },
+    {
+      title: '所亭名称',
+      align: 'center',
+      dataIndex: 'stmc',
+      key: 'stmc'
+    },
+    {
+      title: '开关高压数量',
+      align: 'center',
+      dataIndex: 'kggy',
+      key: 'kggy'
+    },
+    {
+      title: '开关低压数量',
+      align: 'center',
+      dataIndex: 'kgdy',
+      key: 'kgdy'
+    },
+    {
+      title: '上次调试年度',
+      align: 'center',
+      dataIndex: 'dctsnd',
+      key: 'dctsnd'
+    },
+    {
+      title: '月份计划',
+      align: 'center',
+      dataIndex: 'yfjh',
+      key: 'yfjh'
+    },
+    {
+      title: '完成时间',
+      align: 'center',
+      dataIndex: 'wcsj',
+      key: 'wcsj'
+    }
+  ]
+  return cols
+}
+
+export default columns