派生自 wuyushui/SewerAndRainNetwork

XingChuan
2021-05-27 93501e5ed932ff9a57a27f432736cca9f38f0cd4
增加管线报表,企业应急报表
4个文件已添加
2个文件已修改
180 ■■■■■ 已修改文件
public/assets/corporateEmergency.json 53 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
public/assets/pipeline.json 34 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/mapApi.js 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/table/components/CorporateEmergency.vue 39 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/table/components/Pipeline.vue 37 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/table/components/tabHandover.vue 11 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
public/assets/corporateEmergency.json
New file
@@ -0,0 +1,53 @@
[
  {
    "UserName": "集团名称",
    "WasteWaters": "",
    "AddOutPut": "",
    "MonthOutPut": "",
    "NH4NPut": "",
    "NH4NMonth": "",
    "normal": "",
    "overProof": "",
    "Abnormal": "",
    "StopProduction": "",
    "deficiency": ""
  },
  {
    "UserName": "天津石化",
    "WasteWaters": "116.6",
    "AddOutPut": "58",
    "MonthOutPut": "13",
    "NH4NPut": "58",
    "NH4NMonth": "13",
    "normal": "21",
    "overProof": "2",
    "Abnormal": "2",
    "StopProduction": "2",
    "deficiency": "2"
  },
  {
    "UserName": "xxxx炼化3",
    "WasteWaters": "116",
    "MonthOutPut": "13",
    "NH4NPut": "58",
    "NH4NMonth": "13",
    "normal": "21",
    "overProof": "2",
    "Abnormal": "2",
    "StopProduction": "2",
    "deficiency": "2"
  },
  {
    "UserName": "xxxx4",
    "WasteWaters": "116",
    "AddOutPut": "58",
    "MonthOutPut": "13",
    "NH4NPut": "58",
    "NH4NMonth": "13",
    "normal": "21",
    "overProof": "2",
    "Abnormal": "2",
    "StopProduction": "2",
    "deficiency": "2"
  }
]
public/assets/pipeline.json
New file
@@ -0,0 +1,34 @@
[
  {
    "date": "集团公司",
    "name": 1,
    "province": 1,
    "city": 0,
    "address": 1,
    "zip": 0
  },
  {
    "date": "天津石化",
    "name": 1,
    "province": 0,
    "city": 1,
    "address": 1,
    "zip": 2
  },
  {
    "date": "XXX炼化",
    "name": 1,
    "province": 2,
    "city": 0,
    "address": 0,
    "zip": 1
  },
  {
    "date": "XXX炼化2",
    "name": 1,
    "province": 2,
    "city": 0,
    "address": 0,
    "zip": 1
  }
]
src/api/mapApi.js
@@ -112,5 +112,11 @@
  },
  getwarnStatistics (data) {
    return axios.get('/assets/warn.json', data)
  },
  getPipelineStatistics (data) {
    return axios.get('/assets/pipeline.json', data)
  },
  getCorporateEmergencyStatistics (data) {
    return axios.get('/assets/corporateEmergency.json', data)
  }
}
src/components/table/components/CorporateEmergency.vue
New file
@@ -0,0 +1,39 @@
<template>
  <div class="Pipeline">
    <el-table class="tableBox" :data="tableData" border>
      <el-table-column width="30px" label="">
        <template>
          <i class="el-icon-caret-right"></i>
          <span style="margin-left: 10px"></span>
        </template>
      </el-table-column>
      <el-table-column label="序号" width="60px" type="index"></el-table-column>
      <el-table-column prop="UserName" label="企业名称"></el-table-column>
      <el-table-column prop="WasteWaters" label="应急预案数量(个)"></el-table-column>
      <el-table-column prop="AddOutPut" label="应急预案备案号"></el-table-column>
      <el-table-column prop="MonthOutPut" label="应急物资存放点"></el-table-column>
      <el-table-column prop="NH4NPut" label="环保事件(个)"></el-table-column>
      <el-table-column prop="NH4NMonth" label="环保处罚(个)"></el-table-column>
      <el-table-column prop="normal" label="处罚金额(万元)"></el-table-column>
    </el-table>
  </div>
</template>
<script>
import mapApi from '@/api/mapApi'
export default {
  name: 'CorporateEmergency',
  data () {
    return {
      tableData: null
    }
  },
  async mounted () {
    this.tableData = await mapApi.getCorporateEmergencyStatistics()
  }
}
</script>
<style scoped>
</style>
src/components/table/components/Pipeline.vue
New file
@@ -0,0 +1,37 @@
<template>
  <div class="Pipeline">
    <el-table class="tableBox" :data="tableData" border>
      <el-table-column width="30px" label="">
        <template>
          <i class="el-icon-caret-right"></i>
          <span style="margin-left: 10px"></span>
        </template>
      </el-table-column>
      <el-table-column label="序号" width="60px" type="index"></el-table-column>
      <el-table-column prop="date" label="企业名称"></el-table-column>
      <el-table-column prop="name" label="管线总长度(km)"></el-table-column>
      <el-table-column prop="province" label="周边环境 "></el-table-column>
      <el-table-column prop="city" label="拦截设施"></el-table-column>
      <el-table-column prop="address" label="内外排口"></el-table-column>
    </el-table>
  </div>
</template>
<script>
import mapApi from '@/api/mapApi'
export default {
  name: 'Pipeline',
  data () {
    return {
      tableData: null
    }
  },
  async mounted () {
    this.tableData = await mapApi.getPipelineStatistics()
  }
}
</script>
<style scoped>
</style>
src/components/table/components/tabHandover.vue
@@ -17,6 +17,8 @@
import SolidWaste from '@components/table/components/WasteSolid'
import PollutionSource from '@components/table/components/PollutionSource'
import EnvironmentalRisk from '@components/table/components/EnvironmentalRisk'
import Pipeline from '@components/table/components/Pipeline'
import CorporateEmergency from '@components/table/components/CorporateEmergency'
import { TopicList } from '../../../conf/Topic'
export default {
@@ -27,7 +29,9 @@
    // SoilGroundwater,
    SolidWaste,
    PollutionSource,
    EnvironmentalRisk
    EnvironmentalRisk,
    Pipeline,
    CorporateEmergency
  },
  data () {
    return {
@@ -62,7 +66,10 @@
          this.gcComp = SoilGroundwater
          break
        case '管线':
          // this.gcComp = AirQuality
          this.gcComp = Pipeline
          break
        case '企业应急':
          this.gcComp = CorporateEmergency
          break
      }
    }