소스 검색

稽查修改

zbb 1 년 전
부모
커밋
4d7fa6d3a6
2개의 변경된 파일84개의 추가작업 그리고 39개의 파일을 삭제
  1. 81 36
      src/pages/index/components/inspection_management.vue
  2. 3 3
      src/pages/index/components/parking_outside_operation.vue

+ 81 - 36
src/pages/index/components/inspection_management.vue

@@ -1,6 +1,6 @@
1 1
 <template>
2 2
   <div class="body-wrapper">
3
-    <el-tabs  v-model="activeName">
3
+    <el-tabs v-model="activeName">
4 4
       <el-tab-pane label="稽查配置" name="稽查配置">
5 5
         <el-form class="form-wrapper" :inline="true" style="margin-bottom: 20px;">
6 6
           <el-row>
@@ -37,15 +37,12 @@
37 37
           custom-class="audit-dialog">
38 38
           <div class="form-div">
39 39
             <el-form label-position="left" label-width="85px" :model="formLabelAlign">
40
-              <el-form-item label="稽查对象">
40
+              <el-form-item label="稽查地点">
41 41
                 <el-input v-model="formLabelAlign.parkingCardName"></el-input>
42 42
               </el-form-item>
43 43
               <el-form-item label="取证类型">
44 44
                 <el-input v-model="formLabelAlign.type"></el-input>
45 45
               </el-form-item>
46
-              <el-form-item label="问题描述">
47
-                <el-input v-model="formLabelAlign.questionDescription"></el-input>
48
-              </el-form-item>
49 46
             </el-form>
50 47
           </div>
51 48
           <span slot="footer" class="dialog-footer">
@@ -54,6 +51,30 @@
54 51
         </span>
55 52
         </el-dialog>
56 53
       </el-tab-pane>
54
+      <el-tab-pane label="稽查上传" name="稽查上传">
55
+        <div class="form-div">
56
+          <el-form label-position="left" label-width="85px" :model="formLabelAlign1">
57
+            <el-form-item label="稽查地点">
58
+              <el-input v-model="formLabelAlign1.parkingCardName"></el-input>
59
+            </el-form-item>
60
+            <el-form-item label="稽查对象">
61
+              <el-input v-model="formLabelAlign1.inspectObject"></el-input>
62
+            </el-form-item>
63
+            <el-form-item label="取证类型">
64
+              <el-input v-model="formLabelAlign1.type"></el-input>
65
+            </el-form-item>
66
+            <el-form-item label="问题描述">
67
+              <el-input v-model="formLabelAlign1.questionDescription"></el-input>
68
+            </el-form-item>
69
+            <el-form-item label="稽查员">
70
+              <el-input v-model="formLabelAlign1.inspector"></el-input>
71
+            </el-form-item>
72
+          </el-form>
73
+          <span slot="footer" class="dialog-footer">
74
+            <el-button type="primary" @click="handleConfirm1">上 传</el-button>
75
+          </span>
76
+        </div>
77
+      </el-tab-pane>
57 78
       <el-tab-pane label="稽查审核" name="稽查审核">
58 79
         <div style="font-size: large;margin-bottom: 30px">稽查审核</div>
59 80
         <el-form class="form-wrapper" :inline="true" :model="formInline2" style="margin-bottom: 20px;">
@@ -77,7 +98,7 @@
77 98
             label="操作"
78 99
             width="100">
79 100
             <template slot-scope="scope" style="display: inline-block">
80
-              <el-button  @click="handleAudit(scope.row)" type="text">审核</el-button>
101
+              <el-button @click="handleAudit(scope.row)" type="text">审核</el-button>
81 102
             </template>
82 103
           </el-table-column>
83 104
         </el-table>
@@ -150,26 +171,29 @@ export default {
150 171
           label: '取证类型',
151 172
           key: 'type'
152 173
         },
153
-        {
154
-          label: '问题描述',
155
-          key: 'questionDescription'
156
-        },
157 174
         {
158 175
           label: '创建日期',
159 176
           key: 'creatTime'
160 177
         },
161 178
       ],
162
-      tableData1: [{parkingCardName:'昌建东外滩西南停车场',type:'实地考察',questionDescription:'部分车位存在一车多位的占用现象',creatTime:'2023-12-30'}],
179
+      tableData1: [{parkingCardName: '昌建东外滩西南停车场', type: '实地考察', creatTime: '2023-12-30'}],
163 180
       total1: 0,
164 181
       pageSize1: 10,
165 182
       pageNum1: 1,
166
-      title:'',
167
-      dialogVisible:false,
183
+      title: '',
184
+      dialogVisible: false,
168 185
       formLabelAlign: {
169 186
         id: '',
170 187
         parkingCardName: '',
171 188
         type: '',
189
+      },
190
+      formLabelAlign1: {
191
+        id: '',
192
+        parkingCardName: '',
193
+        inspectObject: '',
194
+        type: '',
172 195
         questionDescription: '',
196
+        inspector: '',
173 197
       },
174 198
       columns2: [
175 199
         {
@@ -189,18 +213,23 @@ export default {
189 213
           key: 'creatTime'
190 214
         },
191 215
       ],
192
-      tableData2: [{parkingCardName:'昌建东外滩西南停车场',type:'实地考察',questionDescription:'部分车位存在一车多位的占用现象',creatTime:'2023-12-30'}],
216
+      tableData2: [{
217
+        parkingCardName: '昌建东外滩西南停车场',
218
+        type: '实地考察',
219
+        questionDescription: '部分车位存在一车多位的占用现象',
220
+        creatTime: '2023-12-30'
221
+      }],
193 222
       total2: 0,
194 223
       radio: '2',
195 224
       pageSize2: 10,
196 225
       pageNum2: 1,
197 226
       formInline2: {
198 227
         orderCode: '',
199
-        orderStatus:'',
200
-        orderWay:''
228
+        orderStatus: '',
229
+        orderWay: ''
201 230
       },
202
-      title2:'',
203
-      dialogVisible2:false,
231
+      title2: '',
232
+      dialogVisible2: false,
204 233
       formLabelAlign2: {
205 234
         id: '',
206 235
         parkingCardName: '',
@@ -247,14 +276,13 @@ export default {
247 276
     // this.getTableData2()
248 277
     // this.getTableData3()
249 278
   },
250
-  watch: {
251
-  },
279
+  watch: {},
252 280
   methods: {
253
-    handleAdd () {
281
+    handleAdd() {
254 282
       this.title = '添加配置'
255
-      this.formLabelAlign.parkingCardName= ''
256
-      this.formLabelAlign.type= ''
257
-      this.formLabelAlign.questionDescription= ''
283
+      this.formLabelAlign.parkingCardName = ''
284
+      this.formLabelAlign.type = ''
285
+      this.formLabelAlign.questionDescription = ''
258 286
       this.dialogVisible = true
259 287
     },
260 288
     handleEdit(row) {
@@ -262,7 +290,7 @@ export default {
262 290
       this.formLabelAlign = {...row}
263 291
       this.dialogVisible = true
264 292
     },
265
-    deleteRow (record) {
293
+    deleteRow(record) {
266 294
       api.deleteWhiteIp({id: record.id}).then(res => {
267 295
         if (res.code === 200) {
268 296
           this.$message({type: 'success', message: '删除成功!'})
@@ -295,6 +323,17 @@ export default {
295 323
         })
296 324
       }
297 325
     },
326
+    handleConfirm1() {
327
+      //这个添加是审核部分的添加
328
+      api.addWhiteIp({ipAddr: this.formLabelAlign.ipAddr}).then(res => {
329
+        if (res.code === 200) {
330
+          this.$message({
331
+            message: '添加成功!',
332
+            type: 'success'
333
+          })
334
+        }
335
+      })
336
+    },
298 337
     onSubmit2() {
299 338
       this.pageNum2 = 1
300 339
       this.getTableData2()
@@ -308,7 +347,7 @@ export default {
308 347
       const {id} = this.formLabelAlign2.id
309 348
       console.log('radio', this.radio)
310 349
       api.applyResource({id, applyType: this.radio}).then(res => {
311
-        if(res.code === 200) {
350
+        if (res.code === 200) {
312 351
           this.dialogVisible2 = false
313 352
           this.$message({
314 353
             message: '审核成功!',
@@ -355,33 +394,39 @@ export default {
355 394
   }
356 395
 }
357 396
 </script>
358
-<style  lang="scss" scoped>
397
+<style lang="scss" scoped>
359 398
 .body-wrapper {
360 399
   padding: 20px;
361
-  .button-block{
400
+
401
+  .button-block {
362 402
     text-align: right;
363 403
     margin-bottom: 20px;
364 404
   }
365
-  .table-pagination{
405
+
406
+  .table-pagination {
366 407
     text-align: right;
367 408
   }
368
-  .search-card{
409
+
410
+  .search-card {
369 411
     margin-bottom: 20px;
370 412
     text-align: center;
371
-    .input-wrapper{
413
+
414
+    .input-wrapper {
372 415
       width: 36%;
373 416
     }
374 417
   }
375 418
 
376
-  .audit-dialog{
377
-    .mg-bt{
419
+  .audit-dialog {
420
+    .mg-bt {
378 421
       margin-bottom: 24px;
379 422
     }
380
-    .label{
423
+
424
+    .label {
381 425
       text-align: right;
382 426
     }
383
-    .form-div{
384
-      /deep/ .el-input__inner{
427
+
428
+    .form-div {
429
+      /deep/ .el-input__inner {
385 430
         height: 35px;
386 431
         width: 90%;
387 432
         border: 1px solid #a6a5a5;

+ 3 - 3
src/pages/index/components/parking_outside_operation.vue

@@ -78,12 +78,12 @@
78 78
           <el-row>
79 79
             <el-col :span="8">
80 80
               <el-form-item label="车场名称:">
81
-                <el-input v-model="formInline1.carParkingName" placeholder="请输入"></el-input>
81
+                <el-input v-model="formInline2.carParkingName" placeholder="请输入"></el-input>
82 82
               </el-form-item>
83 83
             </el-col>
84 84
             <el-col :span="8">
85 85
               <el-form-item label="车牌号:">
86
-                <el-input v-model="formInline1.plateNo" placeholder="请输入"></el-input>
86
+                <el-input v-model="formInline2.plateNo" placeholder="请输入"></el-input>
87 87
               </el-form-item>
88 88
             </el-col>
89 89
             <el-col :span="8">
@@ -111,7 +111,7 @@
111 111
           </el-table-column>
112 112
         </el-table>
113 113
         <div class="table-pagination">
114
-          <el-pagination layout="prev, pager, next" :total="total1" @current-change="handlePageChange2"
114
+          <el-pagination layout="prev, pager, next" :total="total2" @current-change="handlePageChange2"
115 115
                          :current-page.sync="pageNum2" :page-size.sync="pageSize2">
116 116
           </el-pagination>
117 117
         </div>