|
@@ -14,6 +14,7 @@
|
14
|
14
|
<hr />
|
15
|
15
|
</div>
|
16
|
16
|
</div>
|
|
17
|
+ <div v-for="(item, i) in unitConfigurationList" :key="i">{{item}}</div>
|
17
|
18
|
<div class="row mb-4">
|
18
|
19
|
<div class="col-md-12">
|
19
|
20
|
<form
|
|
@@ -89,15 +90,7 @@
|
89
|
90
|
<label for="Region"></label>
|
90
|
91
|
<select class="form-control" name="region" id="region">
|
91
|
92
|
<option value>Please select Region</option>
|
92
|
|
- <option value="gauteng">Gauteng</option>
|
93
|
|
- <option value="Kwazulu Natal">Kwazulu Natal</option>
|
94
|
|
- <option value="mpumalanga">Mpumalanga</option>
|
95
|
|
- <option value="north west">North West</option>
|
96
|
|
- <option value="free state">Free State</option>
|
97
|
|
- <option value="eastern cape">Eastern Cape</option>
|
98
|
|
- <option value="western cape">Western Cape</option>
|
99
|
|
- <option value="northern cape">Northern Cape</option>
|
100
|
|
- <option value="limpopo">Limpopo</option>
|
|
93
|
+ <option v-for="(region, r) in regions" :key="r">{{region.regionName}}</option>
|
101
|
94
|
</select>
|
102
|
95
|
</div>
|
103
|
96
|
<div class="col-md-6">
|
|
@@ -385,35 +378,36 @@
|
385
|
378
|
</div>
|
386
|
379
|
</template>
|
387
|
380
|
<script>
|
388
|
|
-import { mapState, mapActions } from "vuex";
|
|
381
|
+import { mapState, mapActions } from 'vuex';
|
389
|
382
|
|
390
|
383
|
export default {
|
391
|
|
- name: "TimeshareToSell",
|
|
384
|
+ name: 'TimeshareToSell',
|
392
|
385
|
created() {
|
393
|
386
|
this.initTimeshare();
|
394
|
387
|
},
|
395
|
388
|
computed: {
|
396
|
|
- ...mapState("timeshare", [
|
397
|
|
- "resorts",
|
398
|
|
- "regions",
|
399
|
|
- "detailedRegion",
|
400
|
|
- "seasons",
|
401
|
|
- "resortBedrooms",
|
402
|
|
- "maxBedrooms",
|
403
|
|
- "bankedEntities",
|
404
|
|
- "sellItem",
|
405
|
|
- "agencies",
|
406
|
|
- "agents"
|
|
389
|
+ ...mapState('timeshare', [
|
|
390
|
+ 'resorts',
|
|
391
|
+ 'regions',
|
|
392
|
+ 'detailedRegion',
|
|
393
|
+ 'seasons',
|
|
394
|
+ 'unitConfigurationList',
|
|
395
|
+ 'resortBedrooms',
|
|
396
|
+ 'maxBedrooms',
|
|
397
|
+ 'bankedEntities',
|
|
398
|
+ 'sellItem',
|
|
399
|
+ 'agencies',
|
|
400
|
+ 'agents',
|
407
|
401
|
]),
|
408
|
402
|
refAgent() {
|
409
|
403
|
return this.sellItem && this.sellItem.referedByAgent;
|
410
|
|
- }
|
|
404
|
+ },
|
411
|
405
|
},
|
412
|
406
|
methods: {
|
413
|
407
|
changeRef() {
|
414
|
408
|
this.sellItem.referedByAgent = !this.sellItem.referedByAgent;
|
415
|
409
|
},
|
416
|
|
- ...mapActions("timeshare", ["initTimeshare"])
|
417
|
|
- }
|
|
410
|
+ ...mapActions('timeshare', ['initTimeshare']),
|
|
411
|
+ },
|
418
|
412
|
};
|
419
|
413
|
</script>
|