派生自 wuyushui/SewerAndRainNetwork

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<template>
 <div class="wastegas" style="width: 5rem;height: 2.07rem">
   <el-table
       :data="tableData"
       style="width: 100%;height: 100%">
     <el-table-column prop="LabMonTime" label="检测时间"></el-table-column>
     <el-table-column label="氮氧化物">
       <el-table-column prop="LabMonValue" label="监测值" width="70"></el-table-column>
       <el-table-column prop="StdValue" label="标准值" width="70"></el-table-column>
     </el-table-column>
     <el-table-column label="二氧化硫">
       <el-table-column prop="LabMonValue" label="监测值" width="70"></el-table-column>
       <el-table-column prop="StdValue" label="标准值" width="70"></el-table-column>
     </el-table-column>
     <el-table-column label="烟尘">
       <el-table-column prop="LabMonValue" label="监测值" width="70"></el-table-column>
       <el-table-column prop="StdValue" label="标准值" width="70"></el-table-column>
     </el-table-column>
     <el-table-column label="非甲烷总烃">
       <el-table-column prop="LabMonValue" label="监测值" width="70"></el-table-column>
       <el-table-column prop="StdValue" label="标准值" width="70"></el-table-column>
     </el-table-column>
   </el-table>
 </div>
</template>
 
<script>
import dayjs from 'dayjs'
import mapApi from '@/api/mapApi'
 
export default {
  name: 'Detail',
  data () {
    return {
      tableData: []
    }
  },
  props: {
    LabMonPointId: {
      type: Number
    }
  },
  mounted () {
    this.$nextTick(() => {
      this.initdetail()
    })
  },
  methods: {
    async initdetail () {
      const timeEnd = dayjs().format('YYYY-MM-DD')
      const timeStart = dayjs().subtract(1, 'year').format('YYYY-MM-DD')
      const data = {
        companyId: 3900100145,
        companyCode: '',
        poltSourceId: '',
        labMonPointId: this.LabMonPointId ? this.LabMonPointId : '',
        poltMtrlId: '',
        monItemId: '28,31',
        emissTypeId: '',
        beginTime: timeStart,
        endTime: timeEnd
      }
      this.tableData = (await mapApi.getWasteGasManualData(data)).Result.DataInfo
    }
  }
}
 
</script>
 
<style scoped>
 
</style>