派生自 wuyushui/SewerAndRainNetwork

XingChuan
2021-05-30 2d5e75bbc04d8c4c5c7dc6bb141ad16ffa2d9936
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
<template>
  <el-dialog :visible.sync="isShow" class="effect-vol-calc" title="生成报告" :modal="false" v-dialog-drag
             :before-close="handleClose">
 
  <div class="SecurityWeeklyManageItem-wrap">
    <el-scrollbar style="height:100%">
    <p class="report-title">生产1区管线A泄露事件报告</p>
<!--    <p class="report-subhead">({{reportWordObj.year}}年第{{reportWordObj.reportPeriod}}期总第{{reportWordObj.reportPeriod}}期)</p>-->
<!--    <p class="report-subhead">({{reportWordObj.startDate}}至{{reportWordObj.endDate}})</p>-->
    <el-row type="flex" justify="space-between" class="report-department">
      <el-col :span="12" class="text-style"><h3>事件基本信息</h3></el-col>
    </el-row>
    <div class="report-con-border report-con report-margin">
      <el-row type="flex" justify="space-between" class="">
        <el-col :span="4" class="text-style"><span>企业名称:</span></el-col>
        <el-col :span="18" style="text-align: left"><span>齐鲁石化</span></el-col>
      </el-row>
      <el-row type="flex" justify="space-between" class="">
        <el-col :span="4" class="text-style"><span>事业单位:</span></el-col>
        <el-col :span="18" style="text-align: left"><span>生产1区</span></el-col>
      </el-row>
      <el-row type="flex" justify="space-between" class="">
        <el-col :span="4" class="text-style"><span>位置描述:</span></el-col>
        <el-col :span="18" style="text-align: left"><span>生产1区西北方向100米</span></el-col>
      </el-row>
      <el-row type="flex" justify="space-between" class="">
        <el-col :span="4" class="text-style"><span>事发时间:</span></el-col>
        <el-col :span="18" style="text-align: left"><span>2021-6-1 17:58</span></el-col>
      </el-row>
      <el-row type="flex" justify="space-between" class="">
        <el-col :span="4" class="text-style"><span>匹配预案:</span></el-col>
        <el-col :span="18" style="text-align: left"><span>管线事件应急预案A</span></el-col>
      </el-row>
    </div>
 
    <el-row type="flex" justify="space-between" class="report-department">
      <el-col :span="12" class="text-style"><h3>事件及周边情况分析</h3></el-col>
    </el-row>
    <div class="report-con-border report-con">
 
      <div v-if="reportItemCon.popupType !== 'add'">
        <div></div>
        <div class="label-title"><span>管线信息</span></div>
        <div class="report-con">
          1.事件管线:生产1区管线A,介质为含油污水,埋设方式为直埋,材质为无缝钢管,附属设施阀门A。
        </div>
        <div class="report-con">
          2.上游管线:生产2区管线B,介质为含油污水,埋设方式为直埋,材质为无缝钢管,附属设施阀门B
        </div>
        <div class="report-con">
          3.上游管线:生产2区管线C,介质为含油污水,埋设方式为直埋,材质为无缝钢管,附属设施阀门C
        </div>
        <div class="report-con">
          4.下游管线:生产2区管线D,介质为含油污水,埋设方式为直埋,材质为无缝钢管,附属设施阀门D
        </div>
        <div class="label-title"><span>事故池信息</span></div>
        <div class="report-con">
          1.生产1区西部集水池A,介质为含油污水,尺寸为100*100*2m3,容积为2000m3,距离事件点583m
        </div>
        <div class="report-con">
          2.生产1区西部集水池B,介质为含油污水,尺寸为100*100*2m3,容积为2000m3,距离事件点483m
        </div>
        <div class="report-con">
          3.生产1区西部集水池C,介质为含油污水,尺寸为100*100*2m3,容积为2000m3,距离事件点493m
        </div>
        <div class="report-con">
          4.生产1区西部集水池D,介质为含油污水,尺寸为100*100*2m3,容积为2000m3,距离事件点374m
        </div>
        <div class="report-con">
          5.生产1区西部集水池D,介质为含油污水,尺寸为100*100*2m3,容积为2000m3,距离事件点472m
        </div>
        <div class="label-title"><span>应急物资(搜索半径1km)</span></div>
        <div class="report-con">
          1.生产1区应急物资仓库A:潜水泵16台,编织袋2000条,铁锹30把。联系人:张三 13800138000
        </div>
        <div class="report-con">
          2.生产2区应急物资仓库B:推车式干粉灭火器12具。联系人:李四 13800138001
        </div>
        <div class="label-title"><span>应急车辆(搜索半径1km)</span></div>
        <div class="report-con">
          1.消防战训科:鲁CCP119指挥车,鲁CJ1171通讯指挥车。联系人:王五 13800138002
        </div>
        <div class="report-con">
          2.一队:鲁CF8911奔驰泡沫车,鲁C60753东风泡沫车。联系人:陈六 13800138003
        </div>
        <div class="label-title"><span>应急队伍(搜索半径1km)</span></div>
        <div class="report-con">
          1.一队南队:专职消(气)防队,救援专业为抢险,负责人:赵七 13800138004
        </div>
        <div class="label-title"><span>周边环境(搜索半径1km)</span></div>
        <div class="report-con">
          1.水体:厂河,长度3552m,流向从西向东,非引用水源,距事件点243m
        </div>
        <div class="report-con">
          2.敏感目标:实验小学,常规人数700人,距事件点481m,负责人XXX 13800138005
        </div>
        <div class="report-con">
          3.敏感目标:工人电影院,常规人数200人,距事件点372m,负责人XXX 13800138006
        </div>
        <div class="report-con">
          4.自然保护区:森林公园,主要保护对象松树,距事件点672m,负责人XXX 13800138007
        </div>
        <div class="report-con">
          5.医院:中心医院,二级甲等,可容纳伤员数400人,救护车数量7辆,距事件点785m,负责人XXX 138001380
        </div>
      </div>
    </div>
      <el-row type="flex" justify="space-between" class="report-department">
        <el-col :span="12" class="text-style"><h3>建议处置措施</h3></el-col>
      </el-row>
      <div class="report-con-border report-con">
        <div class="report-con">
          1.关闭阀门B、阀门C,对上游管道进行截流;关闭阀门D,对下游管道进行截流
        </div>
      </div>
    <el-row type="flex" justify="space-between" class="report-con-border">
      <el-col :span="3" style="text-align: right"><span>报告人:</span></el-col>
      <el-col :span="3"  style="text-align: left"><span>XXX</span></el-col>
      <el-col :span="4"  style="text-align: right"><span>联系方式:</span></el-col>
      <el-col :span="6"  style="text-align: left"><span>12345678901</span></el-col>
            <el-col :span="3"  style="text-align: right"><span>日期:</span></el-col>
            <el-col :span="5"  style="text-align: left"><span>2021年6月1日</span></el-col>
    </el-row>
    </el-scrollbar>
  </div>
  </el-dialog>
</template>
<script>
// import superTablePopupMixin from '@/components/base/BaseSuperTablePopupMixin'
// import emitter from '@/utils/MixinEmitter'
export default {
  name: 'EventReportDoc',
  // mixins: [emitter, superTablePopupMixin],
  props: {
    reportItemCon: {}
  },
  data () {
    return {
      isShow: false,
      reportWordObj: {},
      lineOption: {
        backgroundColor: 'transparent',
        legend: {
          show: true,
          itemHeight: 1,
          itemWidth: 20,
          textStyle: {
            color: '#000',
            fontSize: 10
          },
          bottom: 0
        },
        xAxis: [
          {
            type: 'category',
            data: [1, 2, 3, 4, 5, 6, 7],
            gridIndex: 0,
            axisLabel: {
              color: '#000',
              interval: 0
            },
            axisLine: {
              lineStyle: {
                color: '#ececec'
              }
            },
            axisTick: {
              show: false
            }
          }
        ],
        yAxis: [
          {
            type: 'value',
            gridIndex: 0,
            splitLine: {
              show: true,
              lineStyle: {
                color: '#ececec',
                type: 'solid'
              }
            },
            axisLine: {
              show: false
            },
            axisLabel: {
              formatter: '{value}'
            },
            axisTick: {
              lineStyle: {
                color: '#e3e3e3'
              }
            }
          }
        ],
        series: [
          {
            symbol: 'pin',
            symbolSize: 6,
            data: [],
            type: 'line',
            animation: false,
            name: '承运商周百公里预警平均量',
            lineStyle: {
              color: '#3E75B7'
            },
            label: {
              normal: {
                show: true,
                position: 'top'
              }
            },
            itemStyle: {
              normal: {
                color: '#3E75B7'
              }
            }
          },
          {
            symbol: 'pin',
            animation: false,
            symbolSize: 6,
            data: [],
            type: 'line',
            name: '车辆百公里预警量超过50的车辆数/10',
            lineStyle: {
              color: '#BA403C'
            },
            label: {
              normal: {
                show: true,
                position: 'top'
              }
            },
            itemStyle: {
              normal: {
                color: '#BA403C'
              }
            }
          },
          {
            symbol: 'pin',
            symbolSize: 6,
            animation: false,
            data: [],
            type: 'line',
            name: '高风险预警数(抽烟、打电话)/100',
            lineStyle: {
              color: '#92B549'
            },
            label: {
              normal: {
                show: true,
                position: 'top'
              }
            },
            itemStyle: {
              normal: {
                color: '#92B549'
              }
            }
          },
          {
            symbol: 'pin',
            symbolSize: 6,
            animation: false,
            data: [],
            type: 'line',
            name: '资质过期总数/100',
            lineStyle: {
              color: '#745599'
            },
            label: {
              normal: {
                show: true,
                position: 'top'
              }
            },
            itemStyle: {
              normal: {
                color: '#745599'
              }
            }
          }
        ]
      },
      Reportsform: [
        {
          label: '二、存在的问题',
          prop: 'problem',
          opts: {
            type: 'textarea'
          }
        },
        {
          label: '三、上期问题反馈',
          prop: 'lastProblemFeedback',
          opts: {
            type: 'textarea'
          }
        },
        {
          label: '四、对策建议',
          prop: 'suggestions',
          opts: {
            type: 'textarea'
          }
        }
      ],
      ReportsformObj: {},
      optionPie: {
        color: ['#FF0000', '#F4B800', '#FFFF00', '#0070C0'],
        title: {
          text: '道路运输风险分级',
          left: 'center',
          bottom: '5'
        },
        legend: {
          orient: 'vertical',
          left: 'right',
          data: ['高风险', '中风险', '一般风险', '低风险'],
          color: '#000'
        },
        series: [
          {
            name: '访问来源',
            type: 'pie',
            radius: '55%',
            center: ['50%', '40%'],
            data: [],
            emphasis: {
              itemStyle: {
                shadowBlur: 0,
                shadowOffsetX: 0,
                shadowColor: 'rgba(0, 0, 0, 0.5)'
              }
            },
            label: {
              formatter: '{d}',
              color: '#000'
            },
            hoverAnimation: false
          }
        ]
      },
      showTable: false,
      tableOptsHighRisk: [],
      spotCheckTableData: [],
      caseShare: [
        {
          label: '1.近期国内外事故概况',
          prop: 'recentAccidentsOverview',
          opts: {
            type: 'textarea'
          }
        },
        {
          label: '2.典型事故案例',
          prop: 'typicalAccidentCase',
          opts: {
            type: 'textarea'
          }
        }
      ],
      caseShareObj: {},
      accessoryOne: {},
      chart: null,
      pieChart: null,
      imgPieUrl: null,
      imgLineUrl: null
    }
  },
  mounted () {
  },
  created () {
  },
  watch: {
    // reportItemCon: {
    //   immediate: true,
    //   deep: true,
    //   handler (val) {
    //     this.getLineEchatrs()
    //     if (val.popupType === 'query') {
    //       this.getReportInfo(val)
    //       const ifDisabled = val.popupType !== 'edit'
    //       this.disabledTextarea(ifDisabled)
    //     } else if (val.popupType === 'edit') {
    //       this.getReportInfo(val)
    //     } else {
    //       this.reportWordObj = this.reportItemCon
    //       this.ReportsformObj = this.reportItemCon
    //       this.caseShareObj = this.reportItemCon
    //       this.getAccessory()
    //       this.reportWordObj.year = this.reportWordObj.startDate.substring(0, 4)
    //     }
    //   }
    // }
  },
  methods: {
    // getReportInfo (val) {
    //   const url = this.$API.TMM_GET_SECURITY_WEEKLY_REPORT + '?id=' + val.securityWeeklyReportId
    //   this.$http.get(url).then(response => {
    //     this.reportWordObj = response.data
    //     this.$refs.$Reportsform.formModel = response.data
    //     this.$refs.$caseShare.formModel = response.data
    //     this.getAccessory()
    //     this.reportWordObj.year = this.reportWordObj.startDate.substring(0, 4)
    //   }).catch(() => {
    //   })
    // },
    // getAccessory () {
    //   // 获取附件一的数据
    //   const url = this.$API.TMM_GET_SECURITY_WEEK_COUNT + '?timeStart=' + this.reportWordObj.startDate + '&timeEnd=' + this.reportWordObj.endDate
    //   this.$http.get(url).then(response => {
    //     this.accessoryOne = response.data
    //     const valArr = [
    //       { value: (this.accessoryOne.highRisk / this.accessoryOne.tc * 100).toFixed(2), name: '高风险' },
    //       { value: (this.accessoryOne.midlleRisk / this.accessoryOne.tc * 100).toFixed(2), name: '中风险' },
    //       { value: (this.accessoryOne.generalRisk / this.accessoryOne.tc * 100).toFixed(2), name: '一般风险' },
    //       { value: (this.accessoryOne.lowRisk / this.accessoryOne.tc * 100).toFixed(2), name: '低风险' }
    //     ]
    //     this.optionPie.series[0].data = valArr
    //     this.showPie()
    //   }).catch(() => {
    //   })
    //   const urlHight = this.$T.joinQueryUrl(
    //     this.$API.TMM_GET_ATTACHMENT2,
    //     {
    //       startDateStr: this.reportWordObj.startDate,
    //       endDateStr: this.reportWordObj.endDate
    //     }
    //   )
    //   this.$http.get(urlHight).then(response => {
    //     this.tableOptsHighRisk = response.data
    //   }).catch(() => {
    //   })
    //   // 附件三
    //   const params = {
    //     current: 1,
    //     size: 10,
    //     atp: '0x000E,0x000F',
    //     atfStart: this.reportWordObj.startDate,
    //     atfEnd: this.reportWordObj.endDate
    //   }
    //   const urlThree = this.$T.joinQueryUrl(
    //     this.$API.TMM_GET_WARNING_INFO,
    //     params
    //   )
    //   this.$http.get(urlThree).then(response => {
    //     this.spotCheckTableData = response.data.records
    //   }).catch(() => {
    //   })
    // },
    // showPie () {
    //   this.$nextTick(() => {
    //     // 渲染饼图
    //     const myChart = this.$echarts.init(document.getElementById('highPie'))
    //     myChart.clear()
    //     myChart.setOption(this.optionPie, true)
    //   })
    // },
    // getLineEchatrs () {
    //   this.$http.get(this.$API.TMM_GET_HWS_ANALYSIS).then(res => {
    //     this.lineOption.xAxis[0].data = res.data.map((item, index) => {
    //       let str = ''
    //       if (index % 2 !== 0) {
    //         str = '\n' + item.startTime.toString().substring(4) + '-' + item.endTime.toString().substring(4)
    //       } else {
    //         str = item.startTime.toString().substring(4) + '-' + item.endTime.toString().substring(4)
    //       }
    //       return str
    //     })
    //     this.lineOption.series[0].data = res.data.map(item => {
    //       return item.carrierKilometreAlarm
    //     })
    //     this.lineOption.series[1].data = res.data.map(item => {
    //       return item.vehicleKilometreAlarm
    //     })
    //     this.lineOption.series[2].data = res.data.map(item => {
    //       return item.highRiskAlarm
    //     })
    //     this.lineOption.series[3].data = res.data.map(item => {
    //       return item.certificateOverdue
    //     })
    //     this.$nextTick(() => {
    //       // 渲染折线图
    //       const getID = document.getElementById('productLine')
    //       this.chart = this.$echarts.init(getID)
    //       this.chart.setOption(this.lineOption)
    //       setTimeout(() => {
    //         this.showImg()
    //       }, 500)
    //     })
    //   })
    // },
    // disabledTextarea (val) {
    //   this.Reportsform.map(item => {
    //     item.opts.disabled = val
    //   })
    //   this.caseShare.map(item => {
    //     item.opts.disabled = val
    //   })
    // },
    // // 转base64
    // showImg () {
    //   const basePieCanvas = document.getElementById('highPie').getElementsByTagName('canvas')[0]
    //   const baseLineCanvas = document.getElementById('productLine').getElementsByTagName('canvas')[0]
    //   this.imgPieUrl = this.getImgUrl(basePieCanvas)
    //   this.imgLineUrl = this.getImgUrl(baseLineCanvas)
    //   const params = {
    //     img1: this.imgLineUrl,
    //     img2: this.imgPieUrl
    //   }
    //   this.dispatch('SecurityWeeklyManage', 'picture-site', params)
    // },
    // getImgUrl (val) {
    //   const width = val.width
    //   const height = val.height
    //   const ctx = val.getContext('2d')
    //   ctx.drawImage(val, width, height)
    //   return val.toDataURL()
    // },
    handleClose (done) {
      this.isShow = false
    },
    setVisible (s) {
      this.isShow = s
    },
 
    getVisible () {
      return this.isShow
    }
  }
}
</script>
 
<style lang="less">
.SecurityWeeklyManageItem-wrap {
  //border: solid 1px #ececec;
  padding: 10px;
  height: 500px;
  .report-title {
    text-align: center;
    color: red;
    font-size: x-large;
    font-weight: 700;
  }
  .report-subhead {
    text-align: center;
  }
 
  .report-department {
    //border-bottom: solid 1px;
    margin-top: 10px;
  }
  .report-con-border {
    margin: 2px 0 5px 0;
    border-top: solid 1px;
    //border-bottom: solid 1px;
    line-height: 1.5;
    text-indent: 25px;
    padding: 5px;
    & h4{
      margin: 5px 0;
    }
    & div{
      margin: 2px 0;
    }
    .label-title{
      height: 25px;
      line-height: 25px;
      display: inline-block;
      border: 1px solid white;
      text-indent: 0;
     & span{
       margin: 0 5px;
     }
    }
  }
 
h4{
 margin: 5px;
}
}
</style>