Lene 4 роки тому
джерело
коміт
e982332f9b

+ 76
- 23
src/components/admin/status/editTimeShareAdminPage.vue Переглянути файл

@@ -1,19 +1,63 @@
1 1
 <template>
2
-<main id="main">
3
-  <section id="contact2">
4
-    <div class="container">
5
-      <div class="row">
6
-        <div class="col-lg-12">
7
-          <div class="section-header">
8
-            <h2>Week Information</h2>
9
-          </div>
10
-
11
-          <div align="left" class="custom-control custom-switch mb-2">
12
-            <div class="row">
13
-              <div align="center" class="col">
2
+  <main id="main">
3
+    <section id="contact2">
4
+      <div class="container">
5
+        <div class="row">
6
+          <div class="col-lg-12">
7
+            <div class="section-header">
8
+              <h2>Week Information</h2>
9
+            </div>
10
+            {{ weekParam }}
11
+            <div align="left" class="custom-control custom-switch mb-2">
12
+              <div class="row">
13
+                <div align="center" class="col">
14
+                  <!-- <label class="mr-5">Were you referred by an agent?</label> -->
15
+                  <!-- <input
16
+                  type="checkbox"
17
+                  class="custom-control-input"
18
+                  id="customSwitch1"
19
+                  :checked="refAgent"
20
+                  @change="changeRef"
21
+                /> -->
22
+                  <!-- <label class="custom-control-label" for="customSwitch1">{{
23
+                  refAgent ? "Yes" : "No"
24
+                }}</label> -->
25
+                  <!-- <div class="refbyAgent" :class="{ 'refbyAgent--clicked': refAgent }">
26
+                  <div class="col-md-6" v-if="refAgent">
27
+                    <label for="Name of Agency">Agency</label>
28
+                    <select
29
+                      class="form-control uniSelect"
30
+                      id="Agency"
31
+                      name="agency"
32
+                      v-model="sellItem.agencyId"
33
+                    >
34
+                      <option v-for="(item, i) in agencies" :key="i" :value="item.id">
35
+                        {{ item.agencyName }}
36
+                      </option>
37
+                    </select>
38
+                  </div>
39
+                  <div class="col-md-6" v-if="refAgent">
40
+                    <label for="Name of Agent">Agent</label>
41
+                    <select
42
+                      class="form-control uniSelect"
43
+                      id="agent"
44
+                      name="agent"
45
+                      v-model="sellItem.agentId"
46
+                      :disabled="!sellItem.agencyId"
47
+                    >
48
+                      <option
49
+                        v-for="(item, i) in displayNotDeletedAgents"
50
+                        :key="i"
51
+                        :value="item.id"
52
+                      >
53
+                        <div>{{ item.name + " " + item.surname }}</div>
54
+                      </option>
55
+                    </select>
56
+                  </div>
57
+                </div> -->
58
+                </div>
14 59
               </div>
15 60
             </div>
16
-          </div>
17 61
 
18 62
           <div class="form">
19 63
             <div id="sendmessage">Your details has been sent. Thank you!</div>
@@ -26,7 +70,6 @@
26 70
                     >REGION</label
27 71
                   >
28 72
                   <select
29
-                    id="weekInfoRegionSelect"
30 73
                     class="form-control uniSelect"
31 74
                     v-model="selectedRegion"
32 75
                     style="font-size: 15px"
@@ -35,6 +78,7 @@
35 78
                       region.regionName
36 79
                     }}</option>
37 80
                   </select>
81
+                  <div class="validation"></div>
38 82
                 </div>
39 83
                 <div class="validation"></div>
40 84
               </div>
@@ -45,7 +89,6 @@
45 89
                   >
46 90
 
47 91
                   <select
48
-                    id="weekInfoResortSelect"
49 92
                     class="form-control uniSelect"
50 93
                     v-model="selectedResort"
51 94
                   >
@@ -54,6 +97,7 @@
54 97
                       resort.resortName
55 98
                     }}</option>
56 99
                   </select>
100
+                  <div class="validation"></div>
57 101
                 </div>
58 102
                 <div class="validation"></div>
59 103
               </div>
@@ -237,13 +281,24 @@
237 281
                     >
238 282
                     <select
239 283
                       class="form-control uniSelect"
240
-                      name="spacebankOwner"
241
-                      v-if="sellItem.currentYearBanked"
242
-                      v-model="sellItem.bankedWith"
284
+                      id="howMarried"
285
+                      v-model="indiv.howMarried"
243 286
                     >
244
-                      <option v-for="(item, i) in bankedEntities" :key="i">{{ item }}</option>
287
+                      <option value="N/A">N/A</option>
288
+                      <option value="In Community Of Property">In Community Of Property</option>
289
+                      <option value="Out of Community Of Property"
290
+                        >Out of Community Of Property</option
291
+                      >
292
+                      <option value="Other">Other</option>
293
+                      <option value="Traditional Wedding">Traditional Wedding</option>
294
+                      <option value="Single">Single</option>
295
+                      <option value="Divorced">Divorced</option>
296
+                      <option value="Widow">Widow</option>
297
+                      <option value="Committed Relationship">Committed Relationship</option>
298
+                      <option value="Partner">Partner</option>
245 299
                     </select>
246 300
                   </div>
301
+                  <div class="validation"></div>
247 302
                 </div>
248 303
               </div>
249 304
             </div>
@@ -414,10 +469,8 @@
414 469
         <br />
415 470
         <br />
416 471
       </div>
417
-      <div v-if="wait" id="preloader"></div>
418
-    </div>
419
-  </section>
420
-</main>
472
+    </section>
473
+  </main>
421 474
 </template>
422 475
 
423 476
 <script>

+ 9
- 7
src/components/admin/status/timeshareAdminPage.vue Переглянути файл

@@ -10,7 +10,7 @@
10 10
           </div>
11 11
         </div>
12 12
       </div>
13
-      <div class="row">
13
+      <!-- <div class="row">
14 14
         <div class="col-md-3">
15 15
           <float-label label="REGION">
16 16
             <select
@@ -18,6 +18,7 @@
18 18
               class="form-control uniSelect"
19 19
               @change="regionChange()"
20 20
               style="font-size: 15px"
21
+              v-model="region"
21 22
             >
22 23
               <option v-for="(region, r) in regions" :key="r" :value="region">{{
23 24
                 region.regionName
@@ -33,7 +34,7 @@
33 34
               @change="resortChange()"
34 35
             >
35 36
               <option value="Other">Other</option>
36
-              <option v-for="(resort, r) in resorts" :key="r" :value="resort">{{
37
+              <option v-for="(resort, r) in filteredResort" :key="r" :value="resort">{{
37 38
                 resort.resortName
38 39
               }}</option>
39 40
             </select>
@@ -56,7 +57,7 @@
56 57
         <div class="col">
57 58
           <button style="float:right" class="btn-solid-blue" type="button">Filter</button>
58 59
         </div>
59
-      </div>
60
+      </div> -->
60 61
       <div class="row">
61 62
         <div class="col-md-12">
62 63
           <ListView
@@ -104,7 +105,8 @@ export default {
104 105
     return {
105 106
       user: Log.getUser(),
106 107
       selectedItems: [],
107
-      showMessage: false
108
+      showMessage: false,
109
+      region: ""
108 110
     };
109 111
   },
110 112
   mounted() {
@@ -112,13 +114,13 @@ export default {
112 114
     this.initTimeshare(0);
113 115
   },
114 116
   computed: {
115
-    ...mapState("timeshare", ["resorts", "regions", "seasons"]),
117
+    ...mapState("timeshare", ["resorts", "regions", "seasons", "detailedRegion"]),
116 118
     ...mapState("individual", ["indiv"]),
117 119
     filteredResort() {
118 120
       let list = [];
119
-      if (this.sellItem && this.sellItem.region && this.sellItem.region.regionCode) {
121
+      if (this.region) {
120 122
         const item = this.detailedRegion.find(
121
-          region => region.region.regionCode === this.sellItem.region.regionCode
123
+          region => region.region.regionCode === this.region.regionCode
122 124
         );
123 125
         if (item) {
124 126
           list = item.children;

+ 33
- 18
src/components/processFlow/makeOffer.vue Переглянути файл

@@ -10,7 +10,9 @@
10 10
         class="btn btn-b-n"
11 11
         style="width: 150px; height:40px;"
12 12
         data-dismiss="modal"
13
-      >OK</button>
13
+      >
14
+        OK
15
+      </button>
14 16
     </div>
15 17
     <div v-else>
16 18
       <div v-if="!isSaved">
@@ -78,30 +80,39 @@
78 80
             ></textarea>
79 81
           </div>
80 82
         </div>
83
+        <div class="form-group row">
84
+          <div class="col-md-12">
85
+            <p>
86
+              *Occupation for the current year is not guaranteed, Uni-Vate Properties will confirm
87
+              upon reply.
88
+            </p>
89
+          </div>
90
+        </div>
81 91
       </div>
82 92
       <div v-if="!isSaved" class="container">
83 93
         <div class="row">
84 94
           <div algin="center" class="col">
85
-            <button
86
-              v-if="isMakeOffer"
87
-              type="button"
88
-              @click="SendOffer()"
89
-              class="btn-solid-blue"
90
-            >Send Offer</button>
95
+            <button v-if="isMakeOffer" type="button" @click="SendOffer()" class="btn-solid-blue">
96
+              Send Offer
97
+            </button>
91 98
             <button
92 99
               v-if="!isMakeOffer && !isDecline && canEdit"
93 100
               type="submit"
94 101
               @click="Accept()"
95 102
               class="btn btn-b-n"
96 103
               style="width: 150px; height:40px;"
97
-            >Accept</button>
104
+            >
105
+              Accept
106
+            </button>
98 107
             <button
99 108
               v-if="!isMakeOffer && !isDecline && canEdit"
100 109
               type="button"
101 110
               @click="Decline()"
102 111
               class="btn btn-b-n"
103 112
               style="width: 150px; height:40px;"
104
-            >Decline</button>
113
+            >
114
+              Decline
115
+            </button>
105 116
           </div>
106 117
         </div>
107 118
       </div>
@@ -123,7 +134,9 @@
123 134
         @click="Complete()"
124 135
         class="btn btn-b-n"
125 136
         style="width: 150px; height:40px;"
126
-      >Complete</button>
137
+      >
138
+        Complete
139
+      </button>
127 140
       <div v-if="isSaved">
128 141
         <div class="form-group row">
129 142
           <br />
@@ -137,7 +150,9 @@
137 150
           class="btn btn-b-n"
138 151
           style="width: 150px; height:40px;"
139 152
           data-dismiss="modal"
140
-        >OK</button>
153
+        >
154
+          OK
155
+        </button>
141 156
       </div>
142 157
     </div>
143 158
   </div>
@@ -156,7 +171,7 @@ export default {
156 171
     canEdit: Boolean,
157 172
     item: Object,
158 173
     bidId: Number,
159
-    updateItem: Function,
174
+    updateItem: Function
160 175
   },
161 176
   data() {
162 177
     return {
@@ -164,7 +179,7 @@ export default {
164 179
       isSaved: false,
165 180
       message: "",
166 181
       isInfo: true,
167
-      isLoggedIn: Log.isLoggedIn(),
182
+      isLoggedIn: Log.isLoggedIn()
168 183
     };
169 184
   },
170 185
   methods: {
@@ -203,17 +218,17 @@ export default {
203 218
 
204 219
       const decline = {
205 220
         id: this.item.id,
206
-        comment: this.item.declineReason,
221
+        comment: this.item.declineReason
207 222
       };
208 223
 
209 224
       this.declineBid(decline);
210 225
       this.isSaved = true;
211 226
       this.message = "Offer Declined.";
212 227
       this.isInfo = false;
213
-    },
228
+    }
214 229
   },
215 230
   computed: {
216
-    ...mapState("bid", ["bidItem"]),
231
+    ...mapState("bid", ["bidItem"])
217 232
   },
218 233
   mounted() {
219 234
     this.getTemplate();
@@ -222,8 +237,8 @@ export default {
222 237
     item() {
223 238
       this.isSaved = false;
224 239
       this.canEdit = this.item.statusCode === "E1";
225
-    },
226
-  },
240
+    }
241
+  }
227 242
 };
228 243
 </script>
229 244
 

+ 1
- 1
src/components/property/commercial/singleView/carouselSection.vue Переглянути файл

@@ -16,7 +16,7 @@
16 16
           class="item"
17 17
           style="object-fit:cover"
18 18
           v-for="(image, i) in propertyImages"
19
-          :src="image"
19
+          :src="image.image"
20 20
           :key="i"
21 21
         />
22 22
       </carousel>

+ 15
- 6
src/components/property/commercial/singleView/contentSection.vue Переглянути файл

@@ -18,20 +18,20 @@
18 18
                 <img
19 19
                   v-if="i === 0"
20 20
                   style="width:100%; height:201px;object-fit: cover"
21
-                  :src="image"
21
+                  :src="image.image"
22 22
                 />
23 23
                 <div v-else-if="i !== 0">
24 24
                   <img
25 25
                     v-if="i % 2 === 0"
26 26
                     style="width:50%; height:140px; float:right;"
27
-                    :src="image"
27
+                    :src="image.image"
28 28
                   />
29
-                  <img v-else style="width:50%; height:140px; float:left" :src="image" />
29
+                  <img v-else style="width:50%; height:140px; float:left" :src="image.image" />
30 30
                 </div>
31 31
               </div>
32 32
             </div>
33 33
 
34
-            <gallery :images="propertyImages" :index="index" @close="index = null"></gallery>
34
+            <gallery :images="Images" :index="index" @close="index = null"></gallery>
35 35
           </div>
36 36
 
37 37
           <div class="panel-left p-5" style="margin-top:140px;">
@@ -41,7 +41,7 @@
41 41
             <div v-if="property.displayData.length > 0">
42 42
               <div v-for="(data, i) in property.displayData" :key="i">
43 43
                 <div v-for="field in data.values" :key="field.id">
44
-                  <p v-if="field.name === 'Floor Size'">{{ field.value }}M<sup>2</sup></p>
44
+                  <p v-if="field.name === 'Floor Size'">{{ field.value }}</p>
45 45
                 </div>
46 46
               </div>
47 47
             </div>
@@ -88,7 +88,7 @@
88 88
           <div v-if="property.displayData.length > 0">
89 89
             <div v-for="(data, i) in property.displayData" :key="i" class="row my-3">
90 90
               <div v-for="(field, j) in data.values" :key="j" class="col-md-6">
91
-                <div v-if="field.value.toUpperCase() != 'YES'">
91
+                <div v-if="field.value.toUpperCase() != 'TRUE'">
92 92
                   <i class="fa fa-check-circle"></i> {{ field.value }} {{ field.name }}
93 93
                 </div>
94 94
                 <div v-else><i class="fa fa-check-circle"></i> {{ field.name }}</div>
@@ -185,6 +185,15 @@ export default {
185 185
       index: null,
186 186
       date: new Date()
187 187
     };
188
+  },
189
+  computed: {
190
+    Images() {
191
+      const list = [];
192
+      for (let i = 0; i < this.propertyImages.length; i++) {
193
+        list.push(this.propertyImages[i].image);
194
+      }
195
+      return list;
196
+    }
188 197
   }
189 198
 };
190 199
 </script>

+ 12
- 8
src/components/property/commercial/singleView/singleCommercialPage.vue Переглянути файл

@@ -25,25 +25,29 @@ export default {
25 25
   components: {
26 26
     makeOffer,
27 27
     carouselSection,
28
-    contentSection
28
+    contentSection,
29 29
   },
30 30
   data() {
31 31
     return {
32 32
       index: null,
33
-      date: new Date()
33
+      date: new Date(),
34 34
     };
35 35
   },
36 36
   async mounted() {
37 37
     await this.getProperty(this.$route.params.id);
38
-    await this.getPropertyImages(this.$route.params.id);
39
-    this.mayEditProperty(this.$route.params.id);
38
+    // await this.getPropertyImages(this.$route.params.id);
39
+    // this.mayEditProperty(this.$route.params.id);
40 40
   },
41 41
   computed: {
42 42
     ...mapState("property", ["property", "propertyImages"]),
43
-    ...mapState("propertyEdit", ["mayEdit"])
43
+    ...mapState("propertyEdit", ["mayEdit"]),
44 44
   },
45 45
   methods: {
46
-    ...mapActions("property", ["getProperty", "getPropertyImages", "clearPropertyImages"]),
46
+    ...mapActions("property", [
47
+      "getProperty",
48
+      "getPropertyImages",
49
+      "clearPropertyImages",
50
+    ]),
47 51
     ...mapActions("propertyEdit", ["mayEditProperty"]),
48 52
     formatPrice(value) {
49 53
       const val = (value / 1).toFixed(2);
@@ -54,11 +58,11 @@ export default {
54 58
         return `${value}<br/>`;
55 59
       }
56 60
       return "";
57
-    }
61
+    },
58 62
   },
59 63
   beforeDestroy() {
60 64
     this.clearPropertyImages();
61
-  }
65
+  },
62 66
 };
63 67
 </script>
64 68
 

+ 32
- 21
src/components/property/editProperty/editProperty.vue Переглянути файл

@@ -66,11 +66,11 @@
66 66
                     :disabled="!canEdit"
67 67
                   >
68 68
                     <option value="0">Please select type *</option>
69
-                    <option
70
-                      v-for="item in propertyTypes"
71
-                      :value="item.id"
72
-                      :key="item.id"
73
-                    >{{ item.description }}</option>
69
+                    <option v-for="item in propertyTypes" :value="item.id" :key="item.id">
70
+                      {{
71
+                      item.description
72
+                      }}
73
+                    </option>
74 74
                   </select>
75 75
                 </div>
76 76
                 <div v-if="property.propertyUsageType === 'Commercial'" class="col-md-2">
@@ -268,16 +268,8 @@
268 268
               <div class="row">
269 269
                 <div class="col-md-12">
270 270
                   <label for="Property Description" style="font-family:'muli'">Description:</label>
271
-                  <vue-editor
272
-                    v-model="property.description"
273
-                    :editor-toolbar="customToolbar"
274
-                    :disabled="!canEdit"
275
-                  />
271
+                  <vue-editor v-model="property.description" :editor-toolbar="customToolbar" />
276 272
                   <br />
277
-                  <p>
278
-                    * A listing fee of R380 including VAT is payable to list your Property on the
279
-                    Uni-Vate website
280
-                  </p>
281 273
                 </div>
282 274
               </div>
283 275
               <div class="row">
@@ -295,8 +287,16 @@
295 287
                         :disabled="!canEdit"
296 288
                       />
297 289
                     </div>
298
-                    <div v-else class="display:none"></div>
299
-                    <div v-if="field.type === 'yesno'">
290
+                    <div v-else-if="field.type === 'text'">
291
+                      {{ field.name }}
292
+                      <input
293
+                        type="text"
294
+                        class="form-control uniInput"
295
+                        v-model="field.value"
296
+                        :disabled="!canEdit"
297
+                      />
298
+                    </div>
299
+                    <div v-else-if="field.type === 'yesno'">
300 300
                       {{ field.name }}
301 301
                       <input
302 302
                         type="checkbox"
@@ -304,6 +304,7 @@
304 304
                         :disabled="!canEdit"
305 305
                       />
306 306
                     </div>
307
+                    <div v-else class="display:none"></div>
307 308
                   </div>
308 309
                 </div>
309 310
               </div>
@@ -362,11 +363,6 @@
362 363
               />
363 364
               <button v-if="!wait" type="button" @click="SubmitData()" class="btn-solid-blue">Save</button>
364 365
               <button v-if="!wait" type="button" @click="Close()" class="btn-solid-blue">Close</button>
365
-              <div v-if="showPropertyTypeError">
366
-                <p
367
-                  class="alert myError"
368
-                >Missing fields. Please fill in all required fields. Marked with *</p>
369
-              </div>
370 366
               <div v-if="!addressSet">
371 367
                 <p class="alert myError">Please enter an address.</p>
372 368
               </div>
@@ -381,6 +377,7 @@
381 377
 
382 378
 <script>
383 379
 /* eslint-disable */
380
+import { VueEditor } from "vue2-editor";
384 381
 import { mapState, mapActions } from "vuex";
385 382
 import mapSection from "../mapSection";
386 383
 import ImageLoad from "../propertyImage";
@@ -391,6 +388,7 @@ export default {
391 388
   components: {
392 389
     mapSection,
393 390
     ImageLoad,
391
+    VueEditor,
394 392
   },
395 393
   data() {
396 394
     return {
@@ -399,6 +397,19 @@ export default {
399 397
       images: [],
400 398
       wait: false,
401 399
       canEdit: true,
400
+      customToolbar: [
401
+        [{ header: [false, 1, 2, 3, 4, 5, 6] }],
402
+        ["bold", "italic", "underline", "strike"],
403
+        [
404
+          { align: "" },
405
+          { align: "center" },
406
+          { align: "right" },
407
+          { align: "justify" },
408
+        ],
409
+        [{ list: "ordered" }, { list: "bullet" }, { list: "check" }],
410
+        [{ script: "sub" }, { script: "super" }],
411
+        [{ indent: "-1" }, { indent: "+1" }],
412
+      ],
402 413
     };
403 414
   },
404 415
   methods: {

+ 1
- 1
src/components/property/residential/singleView/carouselSection.vue Переглянути файл

@@ -16,7 +16,7 @@
16 16
           class="item"
17 17
           style="object-fit:cover"
18 18
           v-for="(image, i) in propertyImages"
19
-          :src="image"
19
+          :src="image.image"
20 20
           :key="i"
21 21
         />
22 22
       </carousel>

+ 13
- 6
src/components/property/residential/singleView/contentSection.vue Переглянути файл

@@ -15,19 +15,19 @@
15 15
             ></iframe>
16 16
             <div v-for="(image, i) in propertyImages" @click="index = i" :key="i">
17 17
               <div v-if="i < 3">
18
-                <img v-if="i === 0" style="width:100%" :src="image" />
18
+                <img v-if="i === 0" style="width:100%" :src="image.image" />
19 19
                 <div v-else-if="i !== 0">
20 20
                   <img
21 21
                     v-if="i % 2 === 0"
22 22
                     style="width:50%; height:140px; float:right;"
23
-                    :src="image"
23
+                    :src="image.image"
24 24
                   />
25
-                  <img v-else style="width:50%; height:140px; float:left" :src="image" />
25
+                  <img v-else style="width:50%; height:140px; float:left" :src="image.image" />
26 26
                 </div>
27 27
               </div>
28 28
             </div>
29 29
 
30
-            <gallery :images="propertyImages" :index="index" @close="index = null"></gallery>
30
+            <gallery :images="Images" :index="index" @close="index = null"></gallery>
31 31
           </div>
32 32
           <div class="panel-left p-5" style="margin-top:130px">
33 33
             <h2>Property Detial</h2>
@@ -39,7 +39,7 @@
39 39
             <p>{{ property.city }}, {{ property.suburb }}</p>
40 40
             <div v-for="(data, i) in property.displayData" :key="i">
41 41
               <div v-for="field in data.values" :key="field.id">
42
-                <p v-if="field.name === 'Floor Size'">{{ field.value }}M<sup>2</sup></p>
42
+                <p v-if="field.name === 'Floor Size'">{{ field.value }}</p>
43 43
                 <p v-if="field.name === 'Bedrooms'">Bedrooms {{ field.value }}</p>
44 44
                 <p v-if="field.name === 'Bathrooms'">Bathrooms {{ field.value }}</p>
45 45
               </div>
@@ -102,7 +102,7 @@
102 102
 
103 103
             <div v-for="(data, i) in property.displayData" :key="i" class="row my-3">
104 104
               <div v-for="(field, j) in data.values" :key="j" class="col-md-6">
105
-                <div v-if="field.value.toUpperCase() != 'YES'">
105
+                <div v-if="field.value.toUpperCase() != 'TRUE'">
106 106
                   <i class="fa fa-check-circle"></i> {{ field.value }} {{ field.name }}
107 107
                 </div>
108 108
                 <div v-else><i class="fa fa-check-circle"></i> {{ field.name }}</div>
@@ -185,6 +185,13 @@ export default {
185 185
         return url;
186 186
       }
187 187
       return "";
188
+    },
189
+    Images() {
190
+      const list = [];
191
+      for (let i = 0; i < this.propertyImages.length; i++) {
192
+        list.push(this.propertyImages[i].image);
193
+      }
194
+      return list;
188 195
     }
189 196
   }
190 197
 };

+ 18
- 15
src/components/property/residential/singleView/singleResidentialPage.vue Переглянути файл

@@ -24,34 +24,37 @@ export default {
24 24
   components: {
25 25
     makeOffer,
26 26
     carouselSection,
27
-    contentSection
27
+    contentSection,
28 28
   },
29 29
   data() {
30 30
     return {
31 31
       index: null,
32 32
       date: new Date(),
33
-      boolLoaded: false
33
+      boolLoaded: false,
34 34
     };
35 35
   },
36 36
   async mounted() {
37
-    console.log(this.$route.params.id);
38
-
39 37
     await this.getProperty(this.$route.params.id);
40
-    await this.getPropertyImages(this.$route.params.id);
41
-    setTimeout(() => {
42
-      if (this.propertyImages.length > 0) {
43
-        this.boolLoaded = true;
44
-      }
45
-    }, 100);
46 38
 
47
-    this.mayEditProperty(this.$route.params.id);
39
+    // await this.getPropertyImages(this.$route.params.id);
40
+    // setTimeout(() => {
41
+    //   if (this.propertyImages.length > 0) {
42
+    //     this.boolLoaded = true;
43
+    //   }
44
+    // }, 100);
45
+
46
+    //this.mayEditProperty(this.$route.params.id);
48 47
   },
49 48
   computed: {
50 49
     ...mapState("property", ["property", "propertyImages"]),
51
-    ...mapState("propertyEdit", ["mayEdit"])
50
+    ...mapState("propertyEdit", ["mayEdit"]),
52 51
   },
53 52
   methods: {
54
-    ...mapActions("property", ["getProperty", "getPropertyImages", "clearPropertyImages"]),
53
+    ...mapActions("property", [
54
+      "getProperty",
55
+      "getPropertyImages",
56
+      "clearPropertyImages",
57
+    ]),
55 58
     ...mapActions("propertyEdit", ["mayEditProperty"]),
56 59
 
57 60
     formatPrice(value) {
@@ -63,11 +66,11 @@ export default {
63 66
         return `${value}<br/>`;
64 67
       }
65 68
       return "";
66
-    }
69
+    },
67 70
   },
68 71
   beforeDestroy() {
69 72
     this.clearPropertyImages();
70
-  }
73
+  },
71 74
 };
72 75
 </script>
73 76
 

+ 4
- 2
src/components/shared/listView.vue Переглянути файл

@@ -4,8 +4,8 @@
4 4
     <div style="height:5px"></div>
5 5
     <div class="d-flex justify-content-between ">
6 6
       <div class="p-2" v-if="!hideSearch">
7
-        <float-label>
8
-          <input v-model="searchItem" class="form-control uniInput mt-3" placeholder="Search...." />
7
+        <float-label label="SEARCH">
8
+          <input v-model="searchItem" class="form-control uniInput mt-3" placeholder="Search..." />
9 9
         </float-label>
10 10
       </div>
11 11
       <div class="p-2" v-if="title">
@@ -168,6 +168,7 @@
168 168
 </template>
169 169
 
170 170
 <script>
171
+/* eslint-disable */
171 172
 import _ from "lodash";
172 173
 import ItemsPerPageList from "../../assets/staticData/itemsPerPage";
173 174
 import BasePagination from "./basePagination.vue";
@@ -467,6 +468,7 @@ export default {
467 468
       }
468 469
       return list.slice(startSlice, endSlice);
469 470
     },
471
+
470 472
     GetAllColumn() {}
471 473
   }
472 474
 };

Завантаження…
Відмінити
Зберегти