Lene 4 yıl önce
ebeveyn
işleme
e982332f9b

+ 76
- 23
src/components/admin/status/editTimeShareAdminPage.vue Dosyayı Görüntüle

1
 <template>
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
               </div>
59
               </div>
15
             </div>
60
             </div>
16
-          </div>
17
 
61
 
18
           <div class="form">
62
           <div class="form">
19
             <div id="sendmessage">Your details has been sent. Thank you!</div>
63
             <div id="sendmessage">Your details has been sent. Thank you!</div>
26
                     >REGION</label
70
                     >REGION</label
27
                   >
71
                   >
28
                   <select
72
                   <select
29
-                    id="weekInfoRegionSelect"
30
                     class="form-control uniSelect"
73
                     class="form-control uniSelect"
31
                     v-model="selectedRegion"
74
                     v-model="selectedRegion"
32
                     style="font-size: 15px"
75
                     style="font-size: 15px"
35
                       region.regionName
78
                       region.regionName
36
                     }}</option>
79
                     }}</option>
37
                   </select>
80
                   </select>
81
+                  <div class="validation"></div>
38
                 </div>
82
                 </div>
39
                 <div class="validation"></div>
83
                 <div class="validation"></div>
40
               </div>
84
               </div>
45
                   >
89
                   >
46
 
90
 
47
                   <select
91
                   <select
48
-                    id="weekInfoResortSelect"
49
                     class="form-control uniSelect"
92
                     class="form-control uniSelect"
50
                     v-model="selectedResort"
93
                     v-model="selectedResort"
51
                   >
94
                   >
54
                       resort.resortName
97
                       resort.resortName
55
                     }}</option>
98
                     }}</option>
56
                   </select>
99
                   </select>
100
+                  <div class="validation"></div>
57
                 </div>
101
                 </div>
58
                 <div class="validation"></div>
102
                 <div class="validation"></div>
59
               </div>
103
               </div>
237
                     >
281
                     >
238
                     <select
282
                     <select
239
                       class="form-control uniSelect"
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
                     </select>
299
                     </select>
246
                   </div>
300
                   </div>
301
+                  <div class="validation"></div>
247
                 </div>
302
                 </div>
248
               </div>
303
               </div>
249
             </div>
304
             </div>
414
         <br />
469
         <br />
415
         <br />
470
         <br />
416
       </div>
471
       </div>
417
-      <div v-if="wait" id="preloader"></div>
418
-    </div>
419
-  </section>
420
-</main>
472
+    </section>
473
+  </main>
421
 </template>
474
 </template>
422
 
475
 
423
 <script>
476
 <script>

+ 9
- 7
src/components/admin/status/timeshareAdminPage.vue Dosyayı Görüntüle

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

+ 33
- 18
src/components/processFlow/makeOffer.vue Dosyayı Görüntüle

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

+ 1
- 1
src/components/property/commercial/singleView/carouselSection.vue Dosyayı Görüntüle

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

+ 15
- 6
src/components/property/commercial/singleView/contentSection.vue Dosyayı Görüntüle

18
                 <img
18
                 <img
19
                   v-if="i === 0"
19
                   v-if="i === 0"
20
                   style="width:100%; height:201px;object-fit: cover"
20
                   style="width:100%; height:201px;object-fit: cover"
21
-                  :src="image"
21
+                  :src="image.image"
22
                 />
22
                 />
23
                 <div v-else-if="i !== 0">
23
                 <div v-else-if="i !== 0">
24
                   <img
24
                   <img
25
                     v-if="i % 2 === 0"
25
                     v-if="i % 2 === 0"
26
                     style="width:50%; height:140px; float:right;"
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
                 </div>
30
                 </div>
31
               </div>
31
               </div>
32
             </div>
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
           </div>
35
           </div>
36
 
36
 
37
           <div class="panel-left p-5" style="margin-top:140px;">
37
           <div class="panel-left p-5" style="margin-top:140px;">
41
             <div v-if="property.displayData.length > 0">
41
             <div v-if="property.displayData.length > 0">
42
               <div v-for="(data, i) in property.displayData" :key="i">
42
               <div v-for="(data, i) in property.displayData" :key="i">
43
                 <div v-for="field in data.values" :key="field.id">
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
                 </div>
45
                 </div>
46
               </div>
46
               </div>
47
             </div>
47
             </div>
88
           <div v-if="property.displayData.length > 0">
88
           <div v-if="property.displayData.length > 0">
89
             <div v-for="(data, i) in property.displayData" :key="i" class="row my-3">
89
             <div v-for="(data, i) in property.displayData" :key="i" class="row my-3">
90
               <div v-for="(field, j) in data.values" :key="j" class="col-md-6">
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
                   <i class="fa fa-check-circle"></i> {{ field.value }} {{ field.name }}
92
                   <i class="fa fa-check-circle"></i> {{ field.value }} {{ field.name }}
93
                 </div>
93
                 </div>
94
                 <div v-else><i class="fa fa-check-circle"></i> {{ field.name }}</div>
94
                 <div v-else><i class="fa fa-check-circle"></i> {{ field.name }}</div>
185
       index: null,
185
       index: null,
186
       date: new Date()
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
 </script>
199
 </script>

+ 12
- 8
src/components/property/commercial/singleView/singleCommercialPage.vue Dosyayı Görüntüle

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

+ 32
- 21
src/components/property/editProperty/editProperty.vue Dosyayı Görüntüle

66
                     :disabled="!canEdit"
66
                     :disabled="!canEdit"
67
                   >
67
                   >
68
                     <option value="0">Please select type *</option>
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
                   </select>
74
                   </select>
75
                 </div>
75
                 </div>
76
                 <div v-if="property.propertyUsageType === 'Commercial'" class="col-md-2">
76
                 <div v-if="property.propertyUsageType === 'Commercial'" class="col-md-2">
268
               <div class="row">
268
               <div class="row">
269
                 <div class="col-md-12">
269
                 <div class="col-md-12">
270
                   <label for="Property Description" style="font-family:'muli'">Description:</label>
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
                   <br />
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
                 </div>
273
                 </div>
282
               </div>
274
               </div>
283
               <div class="row">
275
               <div class="row">
295
                         :disabled="!canEdit"
287
                         :disabled="!canEdit"
296
                       />
288
                       />
297
                     </div>
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
                       {{ field.name }}
300
                       {{ field.name }}
301
                       <input
301
                       <input
302
                         type="checkbox"
302
                         type="checkbox"
304
                         :disabled="!canEdit"
304
                         :disabled="!canEdit"
305
                       />
305
                       />
306
                     </div>
306
                     </div>
307
+                    <div v-else class="display:none"></div>
307
                   </div>
308
                   </div>
308
                 </div>
309
                 </div>
309
               </div>
310
               </div>
362
               />
363
               />
363
               <button v-if="!wait" type="button" @click="SubmitData()" class="btn-solid-blue">Save</button>
364
               <button v-if="!wait" type="button" @click="SubmitData()" class="btn-solid-blue">Save</button>
364
               <button v-if="!wait" type="button" @click="Close()" class="btn-solid-blue">Close</button>
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
               <div v-if="!addressSet">
366
               <div v-if="!addressSet">
371
                 <p class="alert myError">Please enter an address.</p>
367
                 <p class="alert myError">Please enter an address.</p>
372
               </div>
368
               </div>
381
 
377
 
382
 <script>
378
 <script>
383
 /* eslint-disable */
379
 /* eslint-disable */
380
+import { VueEditor } from "vue2-editor";
384
 import { mapState, mapActions } from "vuex";
381
 import { mapState, mapActions } from "vuex";
385
 import mapSection from "../mapSection";
382
 import mapSection from "../mapSection";
386
 import ImageLoad from "../propertyImage";
383
 import ImageLoad from "../propertyImage";
391
   components: {
388
   components: {
392
     mapSection,
389
     mapSection,
393
     ImageLoad,
390
     ImageLoad,
391
+    VueEditor,
394
   },
392
   },
395
   data() {
393
   data() {
396
     return {
394
     return {
399
       images: [],
397
       images: [],
400
       wait: false,
398
       wait: false,
401
       canEdit: true,
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
   methods: {
415
   methods: {

+ 1
- 1
src/components/property/residential/singleView/carouselSection.vue Dosyayı Görüntüle

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

+ 13
- 6
src/components/property/residential/singleView/contentSection.vue Dosyayı Görüntüle

15
             ></iframe>
15
             ></iframe>
16
             <div v-for="(image, i) in propertyImages" @click="index = i" :key="i">
16
             <div v-for="(image, i) in propertyImages" @click="index = i" :key="i">
17
               <div v-if="i < 3">
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
                 <div v-else-if="i !== 0">
19
                 <div v-else-if="i !== 0">
20
                   <img
20
                   <img
21
                     v-if="i % 2 === 0"
21
                     v-if="i % 2 === 0"
22
                     style="width:50%; height:140px; float:right;"
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
                 </div>
26
                 </div>
27
               </div>
27
               </div>
28
             </div>
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
           </div>
31
           </div>
32
           <div class="panel-left p-5" style="margin-top:130px">
32
           <div class="panel-left p-5" style="margin-top:130px">
33
             <h2>Property Detial</h2>
33
             <h2>Property Detial</h2>
39
             <p>{{ property.city }}, {{ property.suburb }}</p>
39
             <p>{{ property.city }}, {{ property.suburb }}</p>
40
             <div v-for="(data, i) in property.displayData" :key="i">
40
             <div v-for="(data, i) in property.displayData" :key="i">
41
               <div v-for="field in data.values" :key="field.id">
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
                 <p v-if="field.name === 'Bedrooms'">Bedrooms {{ field.value }}</p>
43
                 <p v-if="field.name === 'Bedrooms'">Bedrooms {{ field.value }}</p>
44
                 <p v-if="field.name === 'Bathrooms'">Bathrooms {{ field.value }}</p>
44
                 <p v-if="field.name === 'Bathrooms'">Bathrooms {{ field.value }}</p>
45
               </div>
45
               </div>
102
 
102
 
103
             <div v-for="(data, i) in property.displayData" :key="i" class="row my-3">
103
             <div v-for="(data, i) in property.displayData" :key="i" class="row my-3">
104
               <div v-for="(field, j) in data.values" :key="j" class="col-md-6">
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
                   <i class="fa fa-check-circle"></i> {{ field.value }} {{ field.name }}
106
                   <i class="fa fa-check-circle"></i> {{ field.value }} {{ field.name }}
107
                 </div>
107
                 </div>
108
                 <div v-else><i class="fa fa-check-circle"></i> {{ field.name }}</div>
108
                 <div v-else><i class="fa fa-check-circle"></i> {{ field.name }}</div>
185
         return url;
185
         return url;
186
       }
186
       }
187
       return "";
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 Dosyayı Görüntüle

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

+ 4
- 2
src/components/shared/listView.vue Dosyayı Görüntüle

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

Loading…
İptal
Kaydet