LeneS 5 lat temu
rodzic
commit
bdffe0a2f7

+ 24
- 13
src/components/property/propertyeditPage.vue Wyświetl plik

38
                   id="propertyType"
38
                   id="propertyType"
39
                   v-model="property.propertyTypeId"
39
                   v-model="property.propertyTypeId"
40
                 >
40
                 >
41
-                  <option value="0">Please Select</option>
41
+                  <option value="0">Please select type</option>
42
                   <option
42
                   <option
43
                     v-for="item in propertyTypes"
43
                     v-for="item in propertyTypes"
44
                     :value="item.id"
44
                     :value="item.id"
74
                   class="form-control"
74
                   class="form-control"
75
                   type="text"
75
                   type="text"
76
                   name="address1"
76
                   name="address1"
77
+                  placeholder="Apartment, suite, unit, building, floor, Po Box etc."
78
+                  style="font-size: 50%"
77
                   id="address1"
79
                   id="address1"
78
                   v-model="property.addressLine1"
80
                   v-model="property.addressLine1"
79
                 />
81
                 />
84
                   class="form-control"
86
                   class="form-control"
85
                   type="text"
87
                   type="text"
86
                   name="address2"
88
                   name="address2"
89
+                  placeholder="Complex, estate, company name, etc."
90
+                  style="font-size: 50%"
87
                   id="address2"
91
                   id="address2"
88
                   v-model="property.addressLine2"
92
                   v-model="property.addressLine2"
89
                 />
93
                 />
90
               </div>
94
               </div>
91
               <div class="col-md-4">
95
               <div class="col-md-4">
92
-                <label>Address Line 3</label>
96
+                <label>Street</label>
93
                 <input
97
                 <input
94
                   class="form-control"
98
                   class="form-control"
95
                   type="text"
99
                   type="text"
96
                   name="address3"
100
                   name="address3"
101
+                  placeholder="Street or c/o name"
102
+                  style="font-size: 50%"
97
                   id="address3"
103
                   id="address3"
98
                   v-model="property.addressLine3"
104
                   v-model="property.addressLine3"
99
                 />
105
                 />
109
                   @change="ProvinceSelected"
115
                   @change="ProvinceSelected"
110
                   v-model="property.provinceId"
116
                   v-model="property.provinceId"
111
                 >
117
                 >
112
-                  <option value="0">Please select</option>
118
+                  <option value="0">Please select province</option>
113
                   <option
119
                   <option
114
                     v-for="province in provinces"
120
                     v-for="province in provinces"
115
                     :value="province.id"
121
                     :value="province.id"
126
                   @change="CitySelected"
132
                   @change="CitySelected"
127
                   v-model="property.cityId"
133
                   v-model="property.cityId"
128
                 >
134
                 >
129
-                  <option value="0">Please Select</option>
135
+                  <option value="0">Please select city</option>
130
                   <option
136
                   <option
131
                     v-for="city in cities"
137
                     v-for="city in cities"
132
                     :value="city.id"
138
                     :value="city.id"
142
                   id="suburbselector"
148
                   id="suburbselector"
143
                   v-model="property.suburbId"
149
                   v-model="property.suburbId"
144
                 >
150
                 >
145
-                  <option value="0">Please Select</option>
151
+                  <option value="0">Please select suburb</option>
146
                   <option
152
                   <option
147
                     v-for="suburb in suburbs"
153
                     v-for="suburb in suburbs"
148
                     :value="suburb.id"
154
                     :value="suburb.id"
155
               <div class="col-md-4">
161
               <div class="col-md-4">
156
                 <label v-if="salesType === 'Rental'">Rental Price</label>
162
                 <label v-if="salesType === 'Rental'">Rental Price</label>
157
                 <label v-if="salesType !== 'Rental'">Sales Price</label>
163
                 <label v-if="salesType !== 'Rental'">Sales Price</label>
158
-                <input
159
-                  class="form-control"
160
-                  type="number"
161
-                  name="price"
162
-                  id="price"
163
-                  placeholder="R"
164
-                  v-model="property.price"
165
-                />
164
+                <div class="input-group-prepend">
165
+                  <span class="input-group-text" style="color: #60CBEB">
166
+                    <b>R</b>
167
+                  </span>
168
+                  <input
169
+                    class="form-control"
170
+                    type="number"
171
+                    name="price"
172
+                    id="price"
173
+                    placeholder="R"
174
+                    v-model="property.price"
175
+                  />
176
+                </div>
166
               </div>
177
               </div>
167
               <div class="col-md-4" v-if="salesType === 'Rental'">
178
               <div class="col-md-4" v-if="salesType === 'Rental'">
168
                 <label>Per</label>
179
                 <label>Per</label>

+ 52
- 0
src/components/timeshare/buy/weekListComponent.vue Wyświetl plik

1
+<template>
2
+  <div>
3
+    <table class="table table-bordered">
4
+      <thead>
5
+        <tr>
6
+          <th>Resort</th>
7
+          <th>Unit Number</th>
8
+          <th>Week Number</th>
9
+          <th>Module</th>
10
+          <th>Bedrooms</th>
11
+          <th>Season</th>
12
+          <th>Price</th>
13
+          <th>Status</th>
14
+          <th>Interested</th>
15
+        </tr>
16
+      </thead>
17
+      <tbody>
18
+        <tr v-for="(item, i) in weeks" :key="i">
19
+          <td>{{item.id}}</td>
20
+          <td>{{item.code}}</td>
21
+          <td>{{item.description}}</td>
22
+          <td>{{item.id}}</td>
23
+          <td>{{item.code}}</td>
24
+          <td>{{item.description}}</td>
25
+          <td>{{item.id}}</td>
26
+          <td>{{item.code}}</td>
27
+          <td>{{item.description}}</td>
28
+        </tr>
29
+      </tbody>
30
+    </table>
31
+  </div>
32
+</template>
33
+<script>
34
+import { mapState, mapActions } from 'vuex';
35
+
36
+export default {
37
+  props: {
38
+    resortCode: undefined,
39
+  },
40
+  mounted() {
41
+    this.getWeeks(this.resortCode);
42
+  },
43
+  computed: {
44
+    ...mapState('weekList', ['weeks']),
45
+  },
46
+  methods: {
47
+    ...mapActions('weekList', ['getWeeks']),
48
+  },
49
+};
50
+</script>
51
+<style>
52
+</style>

+ 6
- 33
src/components/timeshare/resort/resortPage.vue Wyświetl plik

87
             </div>
87
             </div>
88
           </div>
88
           </div>
89
           <div class="col-md-9">
89
           <div class="col-md-9">
90
-            <table class="table table-bordered">
91
-              <thead>
92
-                <tr>
93
-                  <th>Resort</th>
94
-                  <th>Unit Number</th>
95
-                  <th>Week Number</th>
96
-                  <th>Module</th>
97
-                  <th>Bedrooms</th>
98
-                  <th>Season</th>
99
-                  <th>Price</th>
100
-                  <th>Status</th>
101
-                  <th>Interested</th>
102
-                </tr>
103
-              </thead>
104
-              <tbody>
105
-                <tr v-for="(item, i) in week" :key="i">
106
-                  <td>{{item.id}}</td>
107
-                  <td>{{item.code}}</td>
108
-                  <td>{{item.description}}</td>
109
-                  <td>{{item.id}}</td>
110
-                  <td>{{item.code}}</td>
111
-                  <td>{{item.description}}</td>
112
-                  <td>{{item.id}}</td>
113
-                  <td>{{item.code}}</td>
114
-                  <td>{{item.description}}</td>
115
-                </tr>
116
-              </tbody>
117
-            </table>
90
+            <WeekList :resortCode="resortCode" />
118
             <div>
91
             <div>
119
               <div class="btn btn-b-n" @click="routerGoTo('/timeshare/buy')">Back to Region</div>
92
               <div class="btn btn-b-n" @click="routerGoTo('/timeshare/buy')">Back to Region</div>
120
               <hr />
93
               <hr />
202
 </template>
175
 </template>
203
 <script>
176
 <script>
204
 import { mapState, mapActions } from 'vuex';
177
 import { mapState, mapActions } from 'vuex';
178
+import WeekList from '../buy/weekListComponent.vue';
205
 
179
 
206
 export default {
180
 export default {
207
   props: {
181
   props: {
208
     resortCode: {},
182
     resortCode: {},
209
   },
183
   },
184
+  components: {
185
+    WeekList,
186
+  },
210
   mounted() {
187
   mounted() {
211
     this.initResort(this.resortCode);
188
     this.initResort(this.resortCode);
212
   },
189
   },
221
     ]),
198
     ]),
222
     mapUrl() {
199
     mapUrl() {
223
       return this.resort
200
       return this.resort
224
-        ? 'http://maps.google.com/maps?q='
225
-            + this.resort.prLatitude
226
-            + ', '
227
-            + this.resort.prLongitude
228
-            + '&z=15&output=embed'
201
+        ? `http://maps.google.com/maps?q=${this.resort.prLatitude},${this.resort.prLongitude}&z=15&output=embed`
229
         : '';
202
         : '';
230
     },
203
     },
231
   },
204
   },

+ 4
- 29
src/components/timeshare/sell/sellPage.vue Wyświetl plik

129
           <div class="form-group row">
129
           <div class="form-group row">
130
             <div class="col-md-6">
130
             <div class="col-md-6">
131
               <label for="Module">Module</label>
131
               <label for="Module">Module</label>
132
-              <input
133
-                class="form-control"
134
-                placeholder="Module"
135
-                type="text"
136
-                name="module"
137
-                v-model="sellItem.module"
138
-              />
132
+              <input class="form-control" type="text" name="module" v-model="sellItem.module" />
139
             </div>
133
             </div>
140
             <div class="col-md-6">
134
             <div class="col-md-6">
141
               <label for="Week number">Week Number</label>
135
               <label for="Week number">Week Number</label>
142
-              <input
143
-                class="form-control"
144
-                placeholder="Week Number"
145
-                type="text"
146
-                name="week"
147
-                v-model="sellItem.weekNumber"
148
-              />
136
+              <input class="form-control" type="text" name="week" v-model="sellItem.weekNumber" />
149
             </div>
137
             </div>
150
           </div>
138
           </div>
151
           <div class="form-group row">
139
           <div class="form-group row">
165
           <div class="form-group row">
153
           <div class="form-group row">
166
             <div class="col-md-6">
154
             <div class="col-md-6">
167
               <label for="Unit number">Unit Number</label>
155
               <label for="Unit number">Unit Number</label>
168
-              <input
169
-                class="form-control"
170
-                placeholder="Unit Number"
171
-                type="text"
172
-                name="unit"
173
-                v-model="sellItem.unitNumber"
174
-              />
156
+              <input class="form-control" type="text" name="unit" v-model="sellItem.unitNumber" />
175
             </div>
157
             </div>
176
             <div class="col-md-6">
158
             <div class="col-md-6">
177
               <label for="Owner">Owner</label>
159
               <label for="Owner">Owner</label>
178
-              <input
179
-                class="form-control"
180
-                placeholder="Owner"
181
-                type="text"
182
-                name="owner"
183
-                v-model="sellItem.owner"
184
-              />
160
+              <input class="form-control" type="text" name="owner" v-model="sellItem.owner" />
185
             </div>
161
             </div>
186
           </div>
162
           </div>
187
           <div class="form-group row">
163
           <div class="form-group row">
189
               <label for="Levy">Levy Amount</label>
165
               <label for="Levy">Levy Amount</label>
190
               <input
166
               <input
191
                 class="form-control"
167
                 class="form-control"
192
-                placeholder="Levy"
193
                 type="number"
168
                 type="number"
194
                 step="any"
169
                 step="any"
195
                 name="levy"
170
                 name="levy"

+ 5
- 5
src/components/user/loginPage.vue Wyświetl plik

12
               <div class="input-group mb-3">
12
               <div class="input-group mb-3">
13
                 <div class="input-group-prepend">
13
                 <div class="input-group-prepend">
14
                   <span class="input-group-text">
14
                   <span class="input-group-text">
15
-                    <eva-icon name="person" fill="#60CBEB"></eva-icon>
15
+                    <eva-icon name="person-outline" fill="#60CBEB"></eva-icon>
16
                   </span>
16
                   </span>
17
                   <input
17
                   <input
18
                     class="form-control"
18
                     class="form-control"
26
               <div class="input-group mb-3">
26
               <div class="input-group mb-3">
27
                 <div class="input-group-prepend">
27
                 <div class="input-group-prepend">
28
                   <span class="input-group-text">
28
                   <span class="input-group-text">
29
-                    <eva-icon name="lock" fill="#60CBEB"></eva-icon>
29
+                    <eva-icon name="lock-outline" fill="#60CBEB"></eva-icon>
30
                   </span>
30
                   </span>
31
                   <input
31
                   <input
32
                     class="form-control"
32
                     class="form-control"
41
                     <span class="input-group-text">
41
                     <span class="input-group-text">
42
                       <eva-icon
42
                       <eva-icon
43
                         v-if="!showPassword"
43
                         v-if="!showPassword"
44
-                        name="eye-off"
44
+                        name="eye-off-outline"
45
                         fill="#60CBEB"
45
                         fill="#60CBEB"
46
                         @click="togglePassword()"
46
                         @click="togglePassword()"
47
                       ></eva-icon>
47
                       ></eva-icon>
48
-                      <eva-icon v-else name="eye" fill="#60CBEB" @click="passwordToggled()"></eva-icon>
48
+                      <eva-icon v-else name="eye-outline" fill="#60CBEB" @click="passwordToggled()"></eva-icon>
49
                     </span>
49
                     </span>
50
                   </div>
50
                   </div>
51
                 </div>
51
                 </div>
65
             <div class="row">
65
             <div class="row">
66
               <div class="input-group-prepend">
66
               <div class="input-group-prepend">
67
                 <span class="input-group-text">
67
                 <span class="input-group-text">
68
-                  <eva-icon name="email" fill="#60CBEB"></eva-icon>
68
+                  <eva-icon name="email-outline" fill="#60CBEB"></eva-icon>
69
                 </span>
69
                 </span>
70
                 <input class="form-control" placeholder="Your Email" type="text" name="email" value />
70
                 <input class="form-control" placeholder="Your Email" type="text" name="email" value />
71
               </div>
71
               </div>

+ 50
- 48
src/components/user/registerAgencySection.vue Wyświetl plik

5
       <div class="reg-page">
5
       <div class="reg-page">
6
         <div class="regform" style="text-align:left">
6
         <div class="regform" style="text-align:left">
7
           <h4>Agency Details</h4>
7
           <h4>Agency Details</h4>
8
-          <div class="row" style="text-align:left">
9
-            <div class="col-md-8" style="margin-bottom: 1em">
10
-              <div class="input-group-prepend">
11
-                <span class="input-group-text">
12
-                  <eva-icon name="people" fill="#60CBEB"></eva-icon>
13
-                </span>
14
-                <input
15
-                  class="form-control"
16
-                  type="text"
17
-                  name="agencyname"
18
-                  placeholder="Agency Name"
19
-                  v-model="registerAgency.name"
20
-                />
8
+          <div class="row">
9
+            <div class="row" style="text-align:left">
10
+              <div class="col-md-8" style="margin-bottom: 1em">
11
+                <div class="input-group-prepend">
12
+                  <span class="input-group-text">
13
+                    <eva-icon name="people-outline" fill="#60CBEB"></eva-icon>
14
+                  </span>
15
+                  <input
16
+                    class="form-control"
17
+                    type="text"
18
+                    name="agencyname"
19
+                    placeholder="Agency Name"
20
+                    v-model="registerAgency.name"
21
+                  />
22
+                </div>
21
               </div>
23
               </div>
22
-            </div>
23
-            <div class="col-md-8" style="margin-bottom: 1em">
24
-              <div class="input-group-prepend">
25
-                <span class="input-group-text">
26
-                  <eva-icon name="book" fill="#60CBEB"></eva-icon>
27
-                </span>
28
-                <input
29
-                  class="form-control"
30
-                  type="text"
31
-                  name="eaabffcnumber"
32
-                  placeholder="EAAB FFC Number"
33
-                  v-model="registerAgency.eaabeffcNumber"
34
-                />
24
+              <div class="col-md-8" style="margin-bottom: 1em">
25
+                <div class="input-group-prepend">
26
+                  <span class="input-group-text">
27
+                    <eva-icon name="book-outline" fill="#60CBEB"></eva-icon>
28
+                  </span>
29
+                  <input
30
+                    class="form-control"
31
+                    type="text"
32
+                    name="eaabffcnumber"
33
+                    placeholder="EAAB FFC Number"
34
+                    v-model="registerAgency.eaabeffcNumber"
35
+                  />
36
+                </div>
35
               </div>
37
               </div>
36
-            </div>
37
-            <div class="col-md-8">
38
-              <div class="input-group-prepend">
39
-                <span class="input-group-text">
40
-                  <eva-icon name="clipboard" fill="#60CBEB"></eva-icon>
41
-                </span>
42
-                <input
43
-                  class="form-control"
44
-                  type="text"
45
-                  name="companyregnumber"
46
-                  placeholder="Company Registration Number"
47
-                  v-model="registerAgency.companyRegNumber"
48
-                />
38
+              <div class="col-md-8">
39
+                <div class="input-group-prepend">
40
+                  <span class="input-group-text">
41
+                    <eva-icon name="clipboard-outline" fill="#60CBEB"></eva-icon>
42
+                  </span>
43
+                  <input
44
+                    class="form-control"
45
+                    type="text"
46
+                    name="companyregnumber"
47
+                    placeholder="Company Registration Number"
48
+                    v-model="registerAgency.companyRegNumber"
49
+                  />
50
+                </div>
49
               </div>
51
               </div>
50
             </div>
52
             </div>
51
           </div>
53
           </div>
56
               <div class="input-group mb-3">
58
               <div class="input-group mb-3">
57
                 <div class="input-group-prepend">
59
                 <div class="input-group-prepend">
58
                   <span class="input-group-text">
60
                   <span class="input-group-text">
59
-                    <eva-icon name="person" fill="#60CBEB"></eva-icon>
61
+                    <eva-icon name="person-outline" fill="#60CBEB"></eva-icon>
60
                   </span>
62
                   </span>
61
                   <input
63
                   <input
62
                     class="form-control"
64
                     class="form-control"
71
               <div class="input-group mb-3">
73
               <div class="input-group mb-3">
72
                 <div class="input-group-prepend">
74
                 <div class="input-group-prepend">
73
                   <span class="input-group-text">
75
                   <span class="input-group-text">
74
-                    <eva-icon name="person" fill="#60CBEB"></eva-icon>
76
+                    <eva-icon name="person-outline" fill="#60CBEB"></eva-icon>
75
                   </span>
77
                   </span>
76
                   <input
78
                   <input
77
                     class="form-control"
79
                     class="form-control"
88
               <div class="input-group mb-3">
90
               <div class="input-group mb-3">
89
                 <div class="input-group-prepend">
91
                 <div class="input-group-prepend">
90
                   <span class="input-group-text">
92
                   <span class="input-group-text">
91
-                    <eva-icon name="email" fill="#60CBEB"></eva-icon>
93
+                    <eva-icon name="email-outline" fill="#60CBEB"></eva-icon>
92
                   </span>
94
                   </span>
93
                   <input
95
                   <input
94
                     class="form-control"
96
                     class="form-control"
103
               <div class="input-group mb-3">
105
               <div class="input-group mb-3">
104
                 <div class="input-group-prepend">
106
                 <div class="input-group-prepend">
105
                   <span class="input-group-text">
107
                   <span class="input-group-text">
106
-                    <eva-icon name="smartphone" fill="#60CBEB"></eva-icon>
108
+                    <eva-icon name="smartphone-outline" fill="#60CBEB"></eva-icon>
107
                   </span>
109
                   </span>
108
                   <input
110
                   <input
109
                     class="form-control"
111
                     class="form-control"
134
               <div class="input-group mb-3">
136
               <div class="input-group mb-3">
135
                 <div class="input-group-prepend">
137
                 <div class="input-group-prepend">
136
                   <span class="input-group-text">
138
                   <span class="input-group-text">
137
-                    <eva-icon name="person" fill="#60CBEB"></eva-icon>
139
+                    <eva-icon name="person-outline" fill="#60CBEB"></eva-icon>
138
                   </span>
140
                   </span>
139
                   <input
141
                   <input
140
                     class="form-control"
142
                     class="form-control"
148
               <div class="input-group mb-3">
150
               <div class="input-group mb-3">
149
                 <div class="input-group-prepend">
151
                 <div class="input-group-prepend">
150
                   <span class="input-group-text">
152
                   <span class="input-group-text">
151
-                    <eva-icon name="lock" fill="#60CBEB"></eva-icon>
153
+                    <eva-icon name="lock-outline" fill="#60CBEB"></eva-icon>
152
                   </span>
154
                   </span>
153
                   <input
155
                   <input
154
                     class="form-control"
156
                     class="form-control"
164
               <div class="input-group mb-3">
166
               <div class="input-group mb-3">
165
                 <div class="input-group-prepend">
167
                 <div class="input-group-prepend">
166
                   <span class="input-group-text">
168
                   <span class="input-group-text">
167
-                    <eva-icon name="lock" fill="#60CBEB"></eva-icon>
169
+                    <eva-icon name="lock-outline" fill="#60CBEB"></eva-icon>
168
                   </span>
170
                   </span>
169
                   <input
171
                   <input
170
                     class="form-control"
172
                     class="form-control"
181
                   <span class="input-group-text">
183
                   <span class="input-group-text">
182
                     <eva-icon
184
                     <eva-icon
183
                       v-if="!showPassword"
185
                       v-if="!showPassword"
184
-                      name="eye-off"
186
+                      name="eye-off-outline"
185
                       fill="#60CBEB"
187
                       fill="#60CBEB"
186
                       @click="togglePassword()"
188
                       @click="togglePassword()"
187
                     ></eva-icon>
189
                     ></eva-icon>
188
-                    <eva-icon v-else name="eye" fill="#60CBEB" @click="passwordToggled()"></eva-icon>
190
+                    <eva-icon v-else name="eye-outline" fill="#60CBEB" @click="passwordToggled()"></eva-icon>
189
                   </span>
191
                   </span>
190
                 </div>
192
                 </div>
191
               </div>
193
               </div>

+ 5
- 5
src/components/user/registerPage.vue Wyświetl plik

83
             <div class="col-md-8" style="margin-bottom: 1em">
83
             <div class="col-md-8" style="margin-bottom: 1em">
84
               <div class="input-group-prepend">
84
               <div class="input-group-prepend">
85
                 <span class="input-group-text">
85
                 <span class="input-group-text">
86
-                  <eva-icon name="person" fill="#60CBEB"></eva-icon>
86
+                  <eva-icon name="person-outline" fill="#60CBEB"></eva-icon>
87
                 </span>
87
                 </span>
88
                 <input
88
                 <input
89
                   class="form-control"
89
                   class="form-control"
97
             <div class="col-md-8" style="margin-bottom: 1em">
97
             <div class="col-md-8" style="margin-bottom: 1em">
98
               <div class="input-group-prepend">
98
               <div class="input-group-prepend">
99
                 <span class="input-group-text">
99
                 <span class="input-group-text">
100
-                  <eva-icon name="lock" fill="#60CBEB"></eva-icon>
100
+                  <eva-icon name="lock-outline" fill="#60CBEB"></eva-icon>
101
                 </span>
101
                 </span>
102
                 <input
102
                 <input
103
                   class="form-control"
103
                   class="form-control"
113
             <div class="col-md-8" style="margin-bottom: 1em">
113
             <div class="col-md-8" style="margin-bottom: 1em">
114
               <div class="input-group-prepend">
114
               <div class="input-group-prepend">
115
                 <span class="input-group-text">
115
                 <span class="input-group-text">
116
-                  <eva-icon name="lock" fill="#60CBEB"></eva-icon>
116
+                  <eva-icon name="lock-outline" fill="#60CBEB"></eva-icon>
117
                 </span>
117
                 </span>
118
                 <input
118
                 <input
119
                   class="form-control"
119
                   class="form-control"
129
                     <span class="input-group-text">
129
                     <span class="input-group-text">
130
                       <eva-icon
130
                       <eva-icon
131
                         v-if="!showPassword"
131
                         v-if="!showPassword"
132
-                        name="eye-off"
132
+                        name="eye-off-outline"
133
                         fill="#60CBEB"
133
                         fill="#60CBEB"
134
                         @click="togglePassword()"
134
                         @click="togglePassword()"
135
                       ></eva-icon>
135
                       ></eva-icon>
136
-                      <eva-icon v-else name="eye" fill="#60CBEB" @click="passwordToggled()"></eva-icon>
136
+                      <eva-icon v-else name="eye-outline" fill="#60CBEB" @click="passwordToggled()"></eva-icon>
137
                     </span>
137
                     </span>
138
                   </div>
138
                   </div>
139
                 </div>
139
                 </div>

+ 2
- 0
src/store/index.js Wyświetl plik

14
 import PropertyList from './modules/property/propertyLists';
14
 import PropertyList from './modules/property/propertyLists';
15
 import PropertyTypes from './modules/property/propertyTypes';
15
 import PropertyTypes from './modules/property/propertyTypes';
16
 import Register from './modules/user/register';
16
 import Register from './modules/user/register';
17
+import WeekList from './modules/timeshare/weekList';
17
 
18
 
18
 Vue.use(Vuex);
19
 Vue.use(Vuex);
19
 /* eslint no-param-reassign: ["error", { "props": false }] */
20
 /* eslint no-param-reassign: ["error", { "props": false }] */
33
     propertyTypes: PropertyTypes,
34
     propertyTypes: PropertyTypes,
34
     registerIndividual: Register,
35
     registerIndividual: Register,
35
     registerAgency: Register,
36
     registerAgency: Register,
37
+    weekList: WeekList,
36
   },
38
   },
37
 });
39
 });

+ 26
- 0
src/store/modules/timeshare/weekList.js Wyświetl plik

1
+/* eslint-disable no-restricted-syntax */
2
+/* eslint-disable guard-for-in */
3
+import axios from 'axios';
4
+
5
+export default {
6
+  namespaced: true,
7
+  state: {
8
+    weeks: [],
9
+  },
10
+  mutations: {
11
+    setWeeks(state, weeks) {
12
+      state.weeks = weeks;
13
+    },
14
+  },
15
+  getters: {},
16
+  actions: {
17
+    getWeeks({
18
+      commit,
19
+    }, resortCode) {
20
+      axios
21
+        .get(`/api/timeshare/GetByResortCode/${resortCode}`)
22
+        .then(result => commit('setStatusList', result.data))
23
+        .catch(console.error);
24
+    },
25
+  },
26
+};

+ 1
- 1
vue.config.js Wyświetl plik

2
   devServer: {
2
   devServer: {
3
     proxy: {
3
     proxy: {
4
       '/api': {
4
       '/api': {
5
-        target: 'http://192.168.6.188:5000',
5
+        target: 'http://localhost:57260',
6
         changeOrigin: true,
6
         changeOrigin: true,
7
       },
7
       },
8
     },
8
     },

Ładowanie…
Anuluj
Zapisz