LeneS 5 jaren geleden
bovenliggende
commit
bdffe0a2f7

+ 24
- 13
src/components/property/propertyeditPage.vue Bestand weergeven

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

+ 52
- 0
src/components/timeshare/buy/weekListComponent.vue Bestand weergeven

@@ -0,0 +1,52 @@
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 Bestand weergeven

@@ -87,34 +87,7 @@
87 87
             </div>
88 88
           </div>
89 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 91
             <div>
119 92
               <div class="btn btn-b-n" @click="routerGoTo('/timeshare/buy')">Back to Region</div>
120 93
               <hr />
@@ -202,11 +175,15 @@
202 175
 </template>
203 176
 <script>
204 177
 import { mapState, mapActions } from 'vuex';
178
+import WeekList from '../buy/weekListComponent.vue';
205 179
 
206 180
 export default {
207 181
   props: {
208 182
     resortCode: {},
209 183
   },
184
+  components: {
185
+    WeekList,
186
+  },
210 187
   mounted() {
211 188
     this.initResort(this.resortCode);
212 189
   },
@@ -221,11 +198,7 @@ export default {
221 198
     ]),
222 199
     mapUrl() {
223 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 Bestand weergeven

@@ -129,23 +129,11 @@
129 129
           <div class="form-group row">
130 130
             <div class="col-md-6">
131 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 133
             </div>
140 134
             <div class="col-md-6">
141 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 137
             </div>
150 138
           </div>
151 139
           <div class="form-group row">
@@ -165,23 +153,11 @@
165 153
           <div class="form-group row">
166 154
             <div class="col-md-6">
167 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 157
             </div>
176 158
             <div class="col-md-6">
177 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 161
             </div>
186 162
           </div>
187 163
           <div class="form-group row">
@@ -189,7 +165,6 @@
189 165
               <label for="Levy">Levy Amount</label>
190 166
               <input
191 167
                 class="form-control"
192
-                placeholder="Levy"
193 168
                 type="number"
194 169
                 step="any"
195 170
                 name="levy"

+ 5
- 5
src/components/user/loginPage.vue Bestand weergeven

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

+ 50
- 48
src/components/user/registerAgencySection.vue Bestand weergeven

@@ -5,47 +5,49 @@
5 5
       <div class="reg-page">
6 6
         <div class="regform" style="text-align:left">
7 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 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 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 51
               </div>
50 52
             </div>
51 53
           </div>
@@ -56,7 +58,7 @@
56 58
               <div class="input-group mb-3">
57 59
                 <div class="input-group-prepend">
58 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 62
                   </span>
61 63
                   <input
62 64
                     class="form-control"
@@ -71,7 +73,7 @@
71 73
               <div class="input-group mb-3">
72 74
                 <div class="input-group-prepend">
73 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 77
                   </span>
76 78
                   <input
77 79
                     class="form-control"
@@ -88,7 +90,7 @@
88 90
               <div class="input-group mb-3">
89 91
                 <div class="input-group-prepend">
90 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 94
                   </span>
93 95
                   <input
94 96
                     class="form-control"
@@ -103,7 +105,7 @@
103 105
               <div class="input-group mb-3">
104 106
                 <div class="input-group-prepend">
105 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 109
                   </span>
108 110
                   <input
109 111
                     class="form-control"
@@ -134,7 +136,7 @@
134 136
               <div class="input-group mb-3">
135 137
                 <div class="input-group-prepend">
136 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 140
                   </span>
139 141
                   <input
140 142
                     class="form-control"
@@ -148,7 +150,7 @@
148 150
               <div class="input-group mb-3">
149 151
                 <div class="input-group-prepend">
150 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 154
                   </span>
153 155
                   <input
154 156
                     class="form-control"
@@ -164,7 +166,7 @@
164 166
               <div class="input-group mb-3">
165 167
                 <div class="input-group-prepend">
166 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 170
                   </span>
169 171
                   <input
170 172
                     class="form-control"
@@ -181,11 +183,11 @@
181 183
                   <span class="input-group-text">
182 184
                     <eva-icon
183 185
                       v-if="!showPassword"
184
-                      name="eye-off"
186
+                      name="eye-off-outline"
185 187
                       fill="#60CBEB"
186 188
                       @click="togglePassword()"
187 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 191
                   </span>
190 192
                 </div>
191 193
               </div>

+ 5
- 5
src/components/user/registerPage.vue Bestand weergeven

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

+ 2
- 0
src/store/index.js Bestand weergeven

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

+ 26
- 0
src/store/modules/timeshare/weekList.js Bestand weergeven

@@ -0,0 +1,26 @@
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 Bestand weergeven

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

Laden…
Annuleren
Opslaan