소스 검색

Fix to images & UDFs

master
George Williams 4 년 전
부모
커밋
920ddb65b0

+ 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>

+ 35
- 29
src/components/property/editProperty/editProperty.vue 파일 보기

@@ -66,11 +66,9 @@
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
+                      item.description
71
+                    }}</option>
74 72
                   </select>
75 73
                 </div>
76 74
                 <div v-if="property.propertyUsageType === 'Commercial'" class="col-md-2">
@@ -110,7 +108,8 @@
110 108
                           for="price"
111 109
                           class="uniSelectLabel"
112 110
                           style="text-transform:uppercase; margin-left:17px; background-color:white"
113
-                        >{{ property.salesTypeString }} Price</label>
111
+                          >{{ property.salesTypeString }} Price</label
112
+                        >
114 113
                       </div>
115 114
                       <input
116 115
                         class="form-control uniInput"
@@ -256,11 +255,9 @@
256 255
                   </div>
257 256
                   <div class="row my-3">
258 257
                     <div class="col-md-12">
259
-                      <button
260
-                        type="button"
261
-                        @click="clearAddress()"
262
-                        class="btn-solid-blue"
263
-                      >Clear Address</button>
258
+                      <button type="button" @click="clearAddress()" class="btn-solid-blue">
259
+                        Clear Address
260
+                      </button>
264 261
                     </div>
265 262
                   </div>
266 263
                 </div>
@@ -295,15 +292,20 @@
295 292
                         :disabled="!canEdit"
296 293
                       />
297 294
                     </div>
298
-                    <div v-else class="display:none"></div>
299
-                    <div v-if="field.type === 'yesno'">
295
+                    <div v-else-if="field.type === 'text'">
300 296
                       {{ field.name }}
301 297
                       <input
302
-                        type="checkbox"
298
+                        type="text"
299
+                        class="form-control uniInput"
303 300
                         v-model="field.value"
304 301
                         :disabled="!canEdit"
305 302
                       />
306 303
                     </div>
304
+                    <div v-else-if="field.type === 'yesno'">
305
+                      {{ field.name }}
306
+                      <input type="checkbox" v-model="field.value" :disabled="!canEdit" />
307
+                    </div>
308
+                    <div v-else class="display:none"></div>
307 309
                   </div>
308 310
                 </div>
309 311
               </div>
@@ -360,12 +362,16 @@
360 362
                 @DeleteImage="DeleteImage"
361 363
                 :mayEdit="canEdit"
362 364
               />
363
-              <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="SubmitData()" class="btn-solid-blue">
366
+                Save
367
+              </button>
368
+              <button v-if="!wait" type="button" @click="Close()" class="btn-solid-blue">
369
+                Close
370
+              </button>
365 371
               <div v-if="showPropertyTypeError">
366
-                <p
367
-                  class="alert myError"
368
-                >Missing fields. Please fill in all required fields. Marked with *</p>
372
+                <p class="alert myError">
373
+                  Missing fields. Please fill in all required fields. Marked with *
374
+                </p>
369 375
               </div>
370 376
               <div v-if="!addressSet">
371 377
                 <p class="alert myError">Please enter an address.</p>
@@ -390,7 +396,7 @@ export default {
390 396
   name: "PropertyEditPage",
391 397
   components: {
392 398
     mapSection,
393
-    ImageLoad,
399
+    ImageLoad
394 400
   },
395 401
   data() {
396 402
     return {
@@ -398,7 +404,7 @@ export default {
398 404
       defaultImage: 0,
399 405
       images: [],
400 406
       wait: false,
401
-      canEdit: true,
407
+      canEdit: true
402 408
     };
403 409
   },
404 410
   methods: {
@@ -406,7 +412,7 @@ export default {
406 412
       "getProperty",
407 413
       "getPropertyTypes",
408 414
       "getPropertyFields",
409
-      "updateProperty",
415
+      "updateProperty"
410 416
     ]),
411 417
     StatusChanged(item) {
412 418
       if (
@@ -469,7 +475,7 @@ export default {
469 475
         }
470 476
         this.property.newImages.push({
471 477
           image: this.images[i],
472
-          isDefault: setAsDefault,
478
+          isDefault: setAsDefault
473 479
         });
474 480
       }
475 481
 
@@ -477,7 +483,7 @@ export default {
477 483
 
478 484
       //console.log(JSON.stringify(this.property));
479 485
 
480
-      this.updateProperty(this.property).then((fulfilled) => {
486
+      this.updateProperty(this.property).then(fulfilled => {
481 487
         this.$router.push("/PropertyAdmin");
482 488
       });
483 489
     },
@@ -498,10 +504,10 @@ export default {
498 504
     },
499 505
     DeleteImage(item) {
500 506
       this.propertyImages[item].isDeleted = true;
501
-    },
507
+    }
502 508
   },
503 509
   mounted() {
504
-    this.getProperty(this.$route.params.id).then((fulfilled) => {
510
+    this.getProperty(this.$route.params.id).then(fulfilled => {
505 511
       this.wait = false;
506 512
       if (
507 513
         this.property.statusString === "Offer Pending" ||
@@ -520,7 +526,7 @@ export default {
520 526
       "propertyTypes",
521 527
       "propertyImages",
522 528
       "propertyFields",
523
-      "statuses",
529
+      "statuses"
524 530
     ]),
525 531
     savedImages() {
526 532
       const list = [];
@@ -528,8 +534,8 @@ export default {
528 534
         list.push(this.proeprtyImages[i].image);
529 535
       }
530 536
       return list;
531
-    },
532
-  },
537
+    }
538
+  }
533 539
 };
534 540
 </script>
535 541
 

+ 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
 };

+ 1
- 1
src/components/property/residential/singleView/singleResidentialPage.vue 파일 보기

@@ -44,7 +44,7 @@ export default {
44 44
       }
45 45
     }, 100);
46 46
 
47
-    this.mayEditProperty(this.$route.params.id);
47
+    //this.mayEditProperty(this.$route.params.id);
48 48
   },
49 49
   computed: {
50 50
     ...mapState("property", ["property", "propertyImages"]),

Loading…
취소
저장