派生自 wuyushui/SewerAndRainNetwork

徐旺旺
2021-05-30 484bd662e2fd4461ef34dbf9d64106c12b3ef961
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
<template>
    <div class="emergency">
        <el-dialog :class="CZFX?'':'widt800'" :visible.sync="showSchedule" :title="tit" :modal="false" v-dialogDrag>
            <!-- 基础信息 -->
            <div class="basicInformation" v-if="CZFX">
                <div>
                    <h3 class="panel-title">演练信息</h3>
                    <ul>
                        <li>事件类型:</li>
                        <li>事件位置:</li>
                        <li>位置描述:</li>
                        <li>事件时间:</li>
                        <li>附件:<a href="javascript:;">附件1</a><a href="javascript:;">附件1</a></li>
                    </ul>
                    <h3 class="panel-title">预案匹配</h3>
                    <el-table :data="tableData" style="width: 100%">
                        <el-table-column prop="name" label="预案名称"></el-table-column>
                        <el-table-column prop="define" label="预案定义"></el-table-column>
                        <el-table-column prop="hierarchy" label="预案层级"></el-table-column>
                        <el-table-column prop="classification" label="预案分类"></el-table-column>
                        <el-table-column label="附件">
                            <template>
                                <a href="javascript:;">预案</a>
                            </template>
                        </el-table-column>
                    </el-table>
                    <el-button type="primary" size="mini" @click="isShowFenXi=!isShowFenXi">分析</el-button>
                </div>
                <!-- 分析界面 -->
                <div v-if="isShowFenXi">
                    <div class="panel-title">处置分析</div>
                    <div class="area-selected">
                        <el-button type="primary" class="el-icon-location" size="mini"></el-button>
                        <el-button type="primary" class="el-icon-location" size="mini"></el-button>
                        <el-select v-model="value" filterable placeholder="请选择" size="mini">
                            <el-option v-for="item in options" :key="item.value" :label="item.label"
                                       :value="item.value"></el-option>
                        </el-select>
                        <el-button type="primary" class="el-icon-search" size="mini"></el-button>
                    </div>
                    <div>
                        <div class="analysis-btn">
                            <div>
                                <el-button type="primary" size="mini">重置分析条件</el-button>
                                <el-button type="primary" size="mini" @click="CZFX=!CZFX">开始分析</el-button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <!-- 开始分析界面  -->
            <div v-else class="fenXiChuZhi">
                <div>
                    <div class="panel-title">事件基本信息</div>
                    <ul>
                        <li>
                            <p>事件管线</p>
                            <span>生产一区管线A</span>
                            <span>含油污水</span>
                            <span>直埋</span><span>无缝钢管</span><span>拦截设施:<i>a阀门</i></span>
                        </li>
                        <li>
                            <p>事件上游管线</p>
                            <span>生产一区管线A</span>
                            <span>含油污水</span>
                            <span>直埋</span><span>无缝钢管</span><span>拦截设施:<i>a阀门</i></span>
                        </li>
                    </ul>
                </div>
                <div>
                    <div class="panel-title">建议处置措施</div>
                    <div class="footer">
                        <el-button type="primary" size="mini">横纵断面</el-button>
                        <el-button type="primary" size="mini" @click="showCalculate=!showCalculate">事故水计算</el-button>
                    </div>
                    <el-table ref="multipleTable" :data="tableData" tooltip-effect="dark" style="width: 100%">
                        <el-table-column prop="define" label="建议处置措施" show-overflow-tooltip></el-table-column>
                        <el-table-column type="selection" label="预览" width="55"></el-table-column>
                        <!--  <el-table-column label="日期" width="120">
                            <template slot-scope="scope">{{ scope.row.date }}</template>
                        </el-table-column> -->
                    </el-table>
                </div>
                <div class="filteringInformation">
                    <div class="header">
                        <div>
                            <ul>
                                <li>内排口 <span>共1条</span></li>
                                <li>外排口<span>共2条</span></li>
                                <li>内排口 <span>共1条</span></li>
                                <li>外排口<span>共2条</span></li>
                                <li>内排口 <span>共1条</span></li>
                                <li>外排口<span>共2条</span></li>
                            </ul>
                        </div>
                        <div class="area-selected" style="justify-items: center">
                            <el-button type="primary" class="el-icon-location" size="mini"></el-button>
                            <el-button type="primary" class="el-icon-location" size="mini"></el-button>
                            <el-select v-model="value" filterable placeholder="请选择" size="mini">
                                <el-option v-for="item in options" :key="item.value" :label="item.label"
                                           :value="item.value"></el-option>
                            </el-select>
                            <el-button type="primary" class="el-icon-search" size="mini"></el-button>
                            <el-input placeholder="审批人" size="mini" style="width: 60px"></el-input>
                            <el-button type="primary" size="mini">查询</el-button>
                        </div>
                    </div>
                    <div class="content">
                        <ul>
                            <li>
                                <el-button type="primary" size="mini">应急基础</el-button>
                            </li>
                            <li>
                                <el-button type="primary" size="mini">应急基础</el-button>
                            </li>
                            <li>
                                <el-button type="primary" size="mini">应急基础</el-button>
                            </li>
                            <li>
                                <el-button type="primary" size="mini">应急基础</el-button>
                            </li>
                        </ul>
                        <el-table :data="tableData2" style="width: 80%">
                            <el-table-column prop="date" label="日期" width="180"></el-table-column>
                            <el-table-column prop="name" label="姓名" width="180"></el-table-column>
                            <el-table-column prop="address" label="地址"></el-table-column>
                        </el-table>
                    </div>
                    <div class="footer">
                        <el-button type="primary" size="mini">生成报告</el-button>
                        <el-button type="primary" size="mini" @click="CZFX=!CZFX">返回</el-button>
                    </div>
                </div>
            </div>
            <!--  -->
        </el-dialog>
        <el-dialog class="calculate" :visible.sync="showCalculate" title="事故水有效容积计算" :modal="false" v-dialogDrag>
            <ul>
                <li>事故水流量:
                    <el-input size="mini" style="width: 60px"></el-input>
                    m3/h
                </li>
                <li>事故时间:
                    <el-input size="mini" style="width: 60px"></el-input>
                    h
                </li>
                <li>事故物料量:
                    <el-input size="mini" style="width: 60px"></el-input>
                    m3
                </li>
                <li>转存量:
                    <el-input size="mini" style="width: 60px"></el-input>
                    m3
                </li>
                <li>消防水流量:
                    <el-input size="mini" style="width: 60px"></el-input>
                    h
                </li>
                <li>消防时间:
                    <el-input size="mini" style="width: 60px"></el-input>
                    h
                </li>
                <li>降雨量:
                    <el-input size="mini" style="width: 60px"></el-input>
                    mm
                </li>
                <li>汇水面积:
                    <el-input size="mini" style="width: 60px"></el-input>
                    m2
                </li>
                <li>生产废水量:
                    <el-input size="mini" style="width: 60px"></el-input>
                    m3
                </li>
                <li>收集池余量:
                    <el-input size="mini" style="width: 60px"></el-input>
                    m3
                </li>
            </ul>
            <ul>
                <li>事故水容积:
                    <el-input size="mini" style="width: 60px"></el-input>
                    m3
                </li>
                <li>是否大于收集池余量:
                    <el-input size="mini" style="width: 60px"></el-input>
                </li>
            </ul>
            <div class="footer">
                <el-button type="primary" size="mini">计算</el-button>
                <el-button type="primary" size="mini">确认</el-button>
                <el-button type="primary" size="mini">重置</el-button>
            </div>
        </el-dialog>
    </div>
</template>
 
<script>
import eventBus from '../../eventBus'
const cityOptions = ['上海', '北京', '广州', '深圳']
 
export default {
  name: 'index',
  data () {
    return {
      tit: '事件处置',
      showSchedule: false,
      tableData: [
        {
          name: '预案A',
          define: '综合预案',
          hierarchy: '二级单位',
          classification: '环保'
        },
        {
          name: '预案B',
          define: '专项预案',
          hierarchy: '直属企业',
          classification: '环保'
        },
        {
          name: '预案C',
          define: '现场处置预案',
          hierarchy: '基层单位',
          classification: '生产'
        },
        {
          name: '预案D',
          define: '现场处置预案',
          hierarchy: '基层单位',
          classification: '生产'
        },
        {
          name: '预案E',
          define: '现场处置预案',
          hierarchy: '基层单位',
          classification: '生产'
        }
      ],
      checkAll: false,
      checkedCities: ['上海', '北京'],
      cities: cityOptions,
      isIndeterminate: true,
      value: '',
      options: [{
        value: '500',
        label: '500m'
      }, {
        value: '1000',
        label: '1km'
      }, {
        value: '2000',
        label: '2km'
      }, {
        value: '5000',
        label: '5km'
      }, {
        value: '10000',
        label: '10km'
      }],
      isShowFenXi: false,
      CZFX: true,
      tableData2: [{
        date: '2016-05-02',
        name: '王小虎',
        address: '上海市普陀区金沙江路 1518 弄'
      }, {
        date: '2016-05-04',
        name: '王小虎',
        address: '上海市普陀区金沙江路 1517 弄'
      }, {
        date: '2016-05-01',
        name: '王小虎',
        address: '上海市普陀区金沙江路 1519 弄'
      }, {
        date: '2016-05-03',
        name: '王小虎',
        address: '上海市普陀区金沙江路 1516 弄'
      }],
      showCalculate: false
    }
  },
  methods: {},
  mounted () {
    eventBus.$on('disposal-analysis', (obj) => {
      // console.log(obj)
      this.showSchedule = obj
    })
  }
}
</script>
 
<style scoped lang="less">
    .emergency {
        /deep/ .el-dialog {
            width: 450px;
        }
 
        .panel-title {
            text-align: left;
            padding: 5px 0 0 0;
        }
 
        .basicInformation {
            .area-selected {
                display: flex;
                justify-content: flex-end;
                align-items: center;
            }
 
            .analysis-btn {
                display: flex;
                justify-content: space-between;
                align-items: center;
            }
        }
 
        .fenXiChuZhi {
            display: flex;
            flex-wrap: wrap;
 
            > div {
                width: 50%
            }
 
            .filteringInformation {
                width: 100%;
 
                .header {
                    display: flex;
                    justify-content: space-between;
 
                    ul {
                        display: flex;
 
                        li {
                            span {
                                display: block;
                            }
                        }
                    }
                }
 
                .content {
                    display: flex;
                }
            }
        }
 
        .footer {
            display: flex;
            justify-content: flex-end
        }
 
        .calculate {
            ul {
                display: flex;
                flex-wrap: wrap;
 
                li {
                    width: 50%;
                }
            }
 
            /deep/ .el-dialog {
                left: 810px;
            }
        }
    }
 
    .emergency .widt800 {
        /deep/ .el-dialog {
            width: 800px;
        }
    }
</style>