|
@@ -0,0 +1,268 @@
|
|
1
|
+<template>
|
|
2
|
+ <div>
|
|
3
|
+ <el-row :gutter="15">
|
|
4
|
+ <el-form ref="elForm" :model="formData" :rules="rules" size="medium" label-width="200px">
|
|
5
|
+ <el-col :span="24">
|
|
6
|
+ <el-row type="flex" justify="space-between" align="top">
|
|
7
|
+ <el-col :span="24">
|
|
8
|
+ <el-form-item label="单位" prop="field109">
|
|
9
|
+ <el-select v-model="formData.field109" placeholder="请选择单位" clearable :style="{width: '100%'}">
|
|
10
|
+ <el-option v-for="(item, index) in field109Options" :key="index" :label="item.label"
|
|
11
|
+ :value="item.value" :disabled="item.disabled"></el-option>
|
|
12
|
+ </el-select>
|
|
13
|
+ </el-form-item>
|
|
14
|
+ </el-col>
|
|
15
|
+ <el-col :span="24">
|
|
16
|
+ <el-form-item label="责任部门" prop="field114">
|
|
17
|
+ <el-select v-model="formData.field114" placeholder="请选择责任部门" clearable
|
|
18
|
+ :style="{width: '100%'}">
|
|
19
|
+ <el-option v-for="(item, index) in field114Options" :key="index" :label="item.label"
|
|
20
|
+ :value="item.value" :disabled="item.disabled"></el-option>
|
|
21
|
+ </el-select>
|
|
22
|
+ </el-form-item>
|
|
23
|
+ </el-col>
|
|
24
|
+ <el-col :span="24">
|
|
25
|
+ <el-form-item label="重大危险源名称" prop="field113">
|
|
26
|
+ <el-input v-model="formData.field113" placeholder="请输入重大危险源名称" clearable
|
|
27
|
+ :style="{width: '100%'}"></el-input>
|
|
28
|
+ </el-form-item>
|
|
29
|
+ </el-col>
|
|
30
|
+ </el-row>
|
|
31
|
+ </el-col>
|
|
32
|
+ <el-col :span="24">
|
|
33
|
+ <el-form-item label="单行文本" prop="field128">
|
|
34
|
+ <el-input v-model="formData.field128" placeholder="请输入单行文本" clearable :style="{width: '100%'}">
|
|
35
|
+ </el-input>
|
|
36
|
+ </el-form-item>
|
|
37
|
+ </el-col>
|
|
38
|
+ <el-col :span="16">
|
|
39
|
+ <el-row type="flex" justify="space-between" align="middle">
|
|
40
|
+ <el-col :span="24">
|
|
41
|
+ <el-form-item label="时间选择" prop="field116">
|
|
42
|
+ <el-time-picker v-model="formData.field116" format="HH:mm:ss" value-format="HH:mm:ss"
|
|
43
|
+ :picker-options='{"selectableRange":"00:00:00-23:59:59"}' :style="{width: '100%'}"
|
|
44
|
+ placeholder="请选择时间选择" clearable></el-time-picker>
|
|
45
|
+ </el-form-item>
|
|
46
|
+ </el-col>
|
|
47
|
+ <el-col :span="24">
|
|
48
|
+ <el-form-item label="下拉选择" prop="field122">
|
|
49
|
+ <el-select v-model="formData.field122" placeholder="请选择下拉选择" clearable
|
|
50
|
+ :style="{width: '100%'}">
|
|
51
|
+ <el-option v-for="(item, index) in field122Options" :key="index" :label="item.label"
|
|
52
|
+ :value="item.value" :disabled="item.disabled"></el-option>
|
|
53
|
+ </el-select>
|
|
54
|
+ </el-form-item>
|
|
55
|
+ </el-col>
|
|
56
|
+ </el-row>
|
|
57
|
+ </el-col>
|
|
58
|
+ <el-col :span="24">
|
|
59
|
+ <el-row type="flex" justify="space-between" align="top">
|
|
60
|
+ <el-col :span="16">
|
|
61
|
+ <el-form-item label="所在地址" prop="field134">
|
|
62
|
+ <el-input v-model="formData.field134" placeholder="请输入所在地址" clearable
|
|
63
|
+ :style="{width: '100%'}"></el-input>
|
|
64
|
+ </el-form-item>
|
|
65
|
+ </el-col>
|
|
66
|
+ <el-col :span="8">
|
|
67
|
+ <el-form-item label="单位从业人员数量" prop="field131">
|
|
68
|
+ <el-input v-model="formData.field131" placeholder="请输入单位从业人员数量" clearable
|
|
69
|
+ :style="{width: '100%'}"></el-input>
|
|
70
|
+ </el-form-item>
|
|
71
|
+ </el-col>
|
|
72
|
+ </el-row>
|
|
73
|
+ </el-col>
|
|
74
|
+ <el-col :span="16">
|
|
75
|
+ <el-row type="flex" justify="space-between" align="top">
|
|
76
|
+ <el-col :span="16">
|
|
77
|
+ <el-form-item label="R值" prop="field136">
|
|
78
|
+ <el-input v-model="formData.field136" placeholder="请输入R值" clearable :style="{width: '100%'}">
|
|
79
|
+ </el-input>
|
|
80
|
+ </el-form-item>
|
|
81
|
+ </el-col>
|
|
82
|
+ <el-col :span="16">
|
|
83
|
+ <el-form-item label="是否位于化工(工业)园区" prop="field137">
|
|
84
|
+ <el-select v-model="formData.field137" placeholder="请选择是否位于化工(工业)园区" clearable
|
|
85
|
+ :style="{width: '100%'}">
|
|
86
|
+ <el-option v-for="(item, index) in field137Options" :key="index" :label="item.label"
|
|
87
|
+ :value="item.value" :disabled="item.disabled"></el-option>
|
|
88
|
+ </el-select>
|
|
89
|
+ </el-form-item>
|
|
90
|
+ </el-col>
|
|
91
|
+ </el-row>
|
|
92
|
+ </el-col>
|
|
93
|
+ <el-col :span="16">
|
|
94
|
+ <el-row type="flex" justify="space-between" align="top">
|
|
95
|
+ <el-col :span="16">
|
|
96
|
+ <el-form-item label="辨识单位" prop="field139">
|
|
97
|
+ <el-select v-model="formData.field139" placeholder="请选择辨识单位" clearable
|
|
98
|
+ :style="{width: '100%'}">
|
|
99
|
+ <el-option v-for="(item, index) in field139Options" :key="index" :label="item.label"
|
|
100
|
+ :value="item.value" :disabled="item.disabled"></el-option>
|
|
101
|
+ </el-select>
|
|
102
|
+ </el-form-item>
|
|
103
|
+ </el-col>
|
|
104
|
+ <el-col :span="16">
|
|
105
|
+ <el-form-item label="辨识评估时间" prop="field140">
|
|
106
|
+ <el-date-picker v-model="formData.field140" format="yyyy-MM-dd" value-format="yyyy-MM-dd"
|
|
107
|
+ :style="{width: '100%'}" placeholder="请选择辨识评估时间" clearable></el-date-picker>
|
|
108
|
+ </el-form-item>
|
|
109
|
+ </el-col>
|
|
110
|
+ </el-row>
|
|
111
|
+ </el-col>
|
|
112
|
+ <el-col :span="24">
|
|
113
|
+ <el-form-item label="单元内主要装置、设施及生产(储存)规模" prop="field141">
|
|
114
|
+ <el-input v-model="formData.field141" type="textarea" placeholder="请输入单元内主要装置、设施及生产(储存)规模"
|
|
115
|
+ :autosize="{minRows: 4, maxRows: 4}" :style="{width: '100%'}"></el-input>
|
|
116
|
+ </el-form-item>
|
|
117
|
+ </el-col>
|
|
118
|
+ <el-col :span="24">
|
|
119
|
+ <el-form-item label="重大危险源与周边重点防护目标最近距离情况(m)" prop="field142">
|
|
120
|
+ <el-input v-model="formData.field142" type="textarea" placeholder="请输入重大危险源与周边重点防护目标最近距离情况(m)"
|
|
121
|
+ :autosize="{minRows: 4, maxRows: 4}" :style="{width: '100%'}"></el-input>
|
|
122
|
+ </el-form-item>
|
|
123
|
+ </el-col>
|
|
124
|
+ <el-col :span="24">
|
|
125
|
+ <el-form-item label="厂区边界外 500m 范围内人数估算值" prop="field143">
|
|
126
|
+ <el-input v-model="formData.field143" type="textarea" placeholder="请输入厂区边界外 500m 范围内人数估算值"
|
|
127
|
+ :autosize="{minRows: 4, maxRows: 4}" :style="{width: '100%'}"></el-input>
|
|
128
|
+ </el-form-item>
|
|
129
|
+ </el-col>
|
|
130
|
+ <el-col :span="24">
|
|
131
|
+ <el-form-item label="近三年内危险化学品事故情况" prop="field144">
|
|
132
|
+ <el-input v-model="formData.field144" type="textarea" placeholder="请输入近三年内危险化学品事故情况"
|
|
133
|
+ :autosize="{minRows: 4, maxRows: 4}" :style="{width: '100%'}"></el-input>
|
|
134
|
+ </el-form-item>
|
|
135
|
+ </el-col>
|
|
136
|
+ <el-col :span="24">
|
|
137
|
+ <el-form-item size="large">
|
|
138
|
+ <el-button type="primary" @click="submitForm">提交</el-button>
|
|
139
|
+ <el-button @click="resetForm">重置</el-button>
|
|
140
|
+ </el-form-item>
|
|
141
|
+ </el-col>
|
|
142
|
+ </el-form>
|
|
143
|
+ </el-row>
|
|
144
|
+ </div>
|
|
145
|
+</template>
|
|
146
|
+<script>
|
|
147
|
+export default {
|
|
148
|
+ components: {},
|
|
149
|
+ props: [],
|
|
150
|
+ data() {
|
|
151
|
+ return {
|
|
152
|
+ formData: {
|
|
153
|
+ field109: undefined,
|
|
154
|
+ field114: undefined,
|
|
155
|
+ field113: undefined,
|
|
156
|
+ field128: undefined,
|
|
157
|
+ field116: null,
|
|
158
|
+ field122: undefined,
|
|
159
|
+ field134: undefined,
|
|
160
|
+ field131: undefined,
|
|
161
|
+ field136: undefined,
|
|
162
|
+ field137: undefined,
|
|
163
|
+ field139: undefined,
|
|
164
|
+ field140: null,
|
|
165
|
+ field141: undefined,
|
|
166
|
+ field142: undefined,
|
|
167
|
+ field143: undefined,
|
|
168
|
+ field144: undefined,
|
|
169
|
+ },
|
|
170
|
+ rules: {
|
|
171
|
+ field109: [{
|
|
172
|
+ required: true,
|
|
173
|
+ message: '请选择单位',
|
|
174
|
+ trigger: 'change'
|
|
175
|
+ }],
|
|
176
|
+ field114: [{
|
|
177
|
+ required: true,
|
|
178
|
+ message: '请选择责任部门',
|
|
179
|
+ trigger: 'change'
|
|
180
|
+ }],
|
|
181
|
+ field113: [{
|
|
182
|
+ required: true,
|
|
183
|
+ message: '请输入重大危险源名称',
|
|
184
|
+ trigger: 'blur'
|
|
185
|
+ }],
|
|
186
|
+ field128: [{
|
|
187
|
+ required: true,
|
|
188
|
+ message: '请输入单行文本',
|
|
189
|
+ trigger: 'blur'
|
|
190
|
+ }],
|
|
191
|
+ field116: [{
|
|
192
|
+ required: true,
|
|
193
|
+ message: '请选择时间选择',
|
|
194
|
+ trigger: 'change'
|
|
195
|
+ }],
|
|
196
|
+ field122: [{
|
|
197
|
+ required: true,
|
|
198
|
+ message: '请选择下拉选择',
|
|
199
|
+ trigger: 'change'
|
|
200
|
+ }],
|
|
201
|
+ field134: [],
|
|
202
|
+ field131: [],
|
|
203
|
+ field136: [],
|
|
204
|
+ field137: [],
|
|
205
|
+ field139: [],
|
|
206
|
+ field140: [],
|
|
207
|
+ field141: [],
|
|
208
|
+ field142: [],
|
|
209
|
+ field143: [],
|
|
210
|
+ field144: [],
|
|
211
|
+ },
|
|
212
|
+ field109Options: [{
|
|
213
|
+ "label": "选项一",
|
|
214
|
+ "value": 1
|
|
215
|
+ }, {
|
|
216
|
+ "label": "选项二",
|
|
217
|
+ "value": 2
|
|
218
|
+ }],
|
|
219
|
+ field114Options: [{
|
|
220
|
+ "label": "选项一",
|
|
221
|
+ "value": 1
|
|
222
|
+ }, {
|
|
223
|
+ "label": "选项二",
|
|
224
|
+ "value": 2
|
|
225
|
+ }],
|
|
226
|
+ field122Options: [{
|
|
227
|
+ "label": "选项一",
|
|
228
|
+ "value": 1
|
|
229
|
+ }, {
|
|
230
|
+ "label": "选项二",
|
|
231
|
+ "value": 2
|
|
232
|
+ }],
|
|
233
|
+ field137Options: [{
|
|
234
|
+ "label": "选项一",
|
|
235
|
+ "value": 1
|
|
236
|
+ }, {
|
|
237
|
+ "label": "选项二",
|
|
238
|
+ "value": 2
|
|
239
|
+ }],
|
|
240
|
+ field139Options: [{
|
|
241
|
+ "label": "选项一",
|
|
242
|
+ "value": 1
|
|
243
|
+ }, {
|
|
244
|
+ "label": "选项二",
|
|
245
|
+ "value": 2
|
|
246
|
+ }],
|
|
247
|
+ }
|
|
248
|
+ },
|
|
249
|
+ computed: {},
|
|
250
|
+ watch: {},
|
|
251
|
+ created() {},
|
|
252
|
+ mounted() {},
|
|
253
|
+ methods: {
|
|
254
|
+ submitForm() {
|
|
255
|
+ this.$refs['elForm'].validate(valid => {
|
|
256
|
+ if (!valid) return
|
|
257
|
+ // TODO 提交表单
|
|
258
|
+ })
|
|
259
|
+ },
|
|
260
|
+ resetForm() {
|
|
261
|
+ this.$refs['elForm'].resetFields()
|
|
262
|
+ },
|
|
263
|
+ }
|
|
264
|
+}
|
|
265
|
+
|
|
266
|
+</script>
|
|
267
|
+<style>
|
|
268
|
+</style>
|