浏览代码

Fixed errors on Prop search

master
George Williams 5 年前
父节点
当前提交
b70ac8851d
共有 1 个文件被更改,包括 15 次插入13 次删除
  1. 15
    13
      src/components/property/propertySearchFields.vue

+ 15
- 13
src/components/property/propertySearchFields.vue 查看文件

@@ -9,11 +9,7 @@
9 9
               <b>F</b>
10 10
             </span>
11 11
           </div>
12
-          <select
13
-            class="form-control"
14
-            v-model="propertySearch.salesType"
15
-            @change="salesTypeSelected"
16
-          >
12
+          <select class="form-control" v-model="propertySearch.salesType">
17 13
             <option value="Sale">Sale</option>
18 14
             <option value="Rent">Rent</option>
19 15
           </select>
@@ -29,9 +25,11 @@
29 25
           </div>
30 26
           <select class="form-control" v-model="resType" @change="PropertyTypeSelected">
31 27
             <option>All</option>
32
-            <option v-for="(propertyType, i) in propertyTypesRes" :key="i">{{
28
+            <option v-for="(propertyType, i) in propertyTypesRes" :key="i">
29
+              {{
33 30
               propertyType.description
34
-            }}</option>
31
+              }}
32
+            </option>
35 33
           </select>
36 34
           <div class="input-group-append" @click="clearResType">
37 35
             <span class="input-group-text cursor-pointer" style="color: #60CBEB">
@@ -50,9 +48,11 @@
50 48
           </div>
51 49
           <select class="form-control" v-model="comType" @change="PropertyTypeSelected">
52 50
             <option>All</option>
53
-            <option v-for="(propertyType, i) in propertyTypesCom" :key="i">{{
51
+            <option v-for="(propertyType, i) in propertyTypesCom" :key="i">
52
+              {{
54 53
               propertyType.description
55
-            }}</option>
54
+              }}
55
+            </option>
56 56
           </select>
57 57
           <div class="input-group-append" @click="clearComType">
58 58
             <span class="input-group-text cursor-pointer" style="color: #60CBEB">
@@ -69,7 +69,7 @@
69 69
               <b>P</b>
70 70
             </span>
71 71
           </div>
72
-          <select class="form-control" @change="ProvinceSelected" v-model="propertySearch.province">
72
+          <select class="form-control" v-model="propertySearch.province">
73 73
             <option>All</option>
74 74
             <option v-for="(province, i) in provinces" :key="i">{{ province.description }}</option>
75 75
           </select>
@@ -90,7 +90,7 @@
90 90
               <b>C</b>
91 91
             </span>
92 92
           </div>
93
-          <select class="form-control" @change="CitySelected" v-model="propertySearch.city">
93
+          <select class="form-control" v-model="propertySearch.city">
94 94
             <option>All</option>
95 95
             <option v-for="(city, i) in cities" :key="i">{{ city.description }}</option>
96 96
           </select>
@@ -111,7 +111,7 @@
111 111
               <b>S</b>
112 112
             </span>
113 113
           </div>
114
-          <select class="form-control" v-model="propertySearch.suburb" @change="SuburbSeleted">
114
+          <select class="form-control" v-model="propertySearch.suburb">
115 115
             <option>All</option>
116 116
             <option v-for="(suburb, i) in suburbs" :key="i">{{ suburb.description }}</option>
117 117
           </select>
@@ -217,7 +217,9 @@ export default {
217 217
     },
218 218
     ProvinceSelected(item) {
219 219
       if (item.target.value !== 'All') {
220
-        this.getCities(Object.assign({}, { province: this.propertySearch.province }));
220
+        this.getCities(
221
+          Object.assign({}, { province: this.propertySearch.province }),
222
+        );
221 223
       }
222 224
     },
223 225
     CitySelected(item) {

正在加载...
取消
保存