zouooh 1 vuosi sitten
vanhempi
commit
ce2d8d2ed6
1 muutettua tiedostoa jossa 11 lisäystä ja 6 poistoa
  1. 11 6
      src/pages/index/components/parking_lot_situation.vue

+ 11 - 6
src/pages/index/components/parking_lot_situation.vue

@@ -55,14 +55,14 @@
55 55
               <el-option v-for="item in districtOptions"  :key="item.value" :label="item.label" :value="item.value"></el-option>
56 56
             </el-select>
57 57
           </el-form-item>
58
-          <el-form-item label="停车场">
59
-            <el-select clearable filterable v-model="formInline2.parkId" placeholder="请选择" popper-class="cur-select">
60
-              <el-option v-for="item in carOptions" :key="item.parkId" :label="item.carParkName" :value="item.parkId"></el-option>
58
+          <el-form-item label="重点区域">
59
+            <el-select clearable filterable v-model="formInline2.keyAreas" placeholder="请选择" popper-class="cur-select">
60
+              <el-option v-for="item in keyAreaOptions" :key="item.value" :label="item.label" :value="item.value"></el-option>
61 61
             </el-select>
62 62
           </el-form-item>
63 63
           <el-form-item label="停车场">
64
-            <el-select clearable filterable v-model="formInline2.keyAreas" placeholder="请选择" popper-class="cur-select">
65
-              <el-option v-for="item in keyAreaOptions" :key="item.value" :label="item.label" :value="item.value"></el-option>
64
+            <el-select clearable filterable v-model="formInline2.parkId" placeholder="请选择" popper-class="cur-select">
65
+              <el-option v-for="item in carOptions" :key="item.parkId" :label="item.carParkName" :value="item.parkId"></el-option>
66 66
             </el-select>
67 67
           </el-form-item>
68 68
           <el-form-item>
@@ -216,6 +216,7 @@ export default {
216 216
     queryAll() {
217 217
       this.pageNum = 1
218 218
       this.queryParams = {...this.formInline}
219
+      this.getParkDic()
219 220
       this.getTableData()
220 221
       this.getView()
221 222
     },
@@ -260,7 +261,11 @@ export default {
260 261
       api.tccqkView(queryParams).then(res => {
261 262
         this.viewData = res.data
262 263
       })
263
-    }
264
+    },getParkDic() {
265
+      api.parkDic().then(res => {
266
+        this.carOptions = res.data || [];
267
+      })
268
+    },
264 269
   }
265 270
 }
266 271
 </script>