Lene Scholtz 5年前
コミット
38a9812cfe

+ 2
- 3
src/components/admin/status/agentsUserManagementPage.vue ファイルの表示

@@ -153,8 +153,7 @@ export default {
153 153
     };
154 154
   },
155 155
   methods: {
156
-    ...mapActions('registerIndividual', ['getAgents']),
157
-
156
+    ...mapActions('register', ['getAgents']),
158 157
     addNewAgent({ commit }) {
159 158
       axios
160 159
         .post('/api/agent')
@@ -200,7 +199,7 @@ export default {
200 199
     }
201 200
   },
202 201
   computed: {
203
-    ...mapState('registerIndividual', ['agents']),
202
+    ...mapState('register', ['agents']),
204 203
 
205 204
     SortDirection() {
206 205
       return this.reverse ? 'desc' : 'asc';

+ 2
- 3
src/components/admin/status/userManagementPage.vue ファイルの表示

@@ -147,8 +147,7 @@ export default {
147 147
     };
148 148
   },
149 149
   methods: {
150
-    ...mapActions('registerIndividual', ['getIndividuals']),
151
-
150
+    ...mapActions('register', ['getIndividuals']),
152 151
     routerGoTo(goTo) {
153 152
       this.$router.push(goTo);
154 153
     },
@@ -188,7 +187,7 @@ export default {
188 187
     }
189 188
   },
190 189
   computed: {
191
-    ...mapState('registerIndividual', ['individuals']),
190
+    ...mapState('register', ['individuals']),
192 191
 
193 192
     SortDirection() {
194 193
       return this.reverse ? 'desc' : 'asc';

+ 4
- 1
src/components/shared/alert.vue ファイルの表示

@@ -11,7 +11,7 @@
11 11
     </div>
12 12
     <div class="alert alert-warning" v-if="type === 'WARNING'">
13 13
       <eva-icon name="alert-circle-outline"></eva-icon>
14
-      <strong>{{ text }}</strong>
14
+      <strong class="color-black">{{ text }}</strong>
15 15
     </div>
16 16
     <div class="alert alert-danger" v-if="type === 'ERROR'">
17 17
       <eva-icon name="slash-outline"></eva-icon>
@@ -41,4 +41,7 @@ export default {
41 41
 </script>
42 42
 
43 43
 <style>
44
+.color-black {
45
+  color: black;
46
+}
44 47
 </style>

+ 1
- 1
src/components/timeshare/buy/weekListComponent.vue ファイルの表示

@@ -47,7 +47,7 @@
47 47
             class="img-fluid"
48 48
             src="/img/kloader.gif"
49 49
             alt="UVProp logo"
50
-            style="width:400px;height:364px;"
50
+            style="width:128px;height:128px;"
51 51
           />
52 52
         </div>
53 53
         <div v-else>No Results Found</div>

+ 35
- 4
src/components/timeshare/sell/sellPage.vue ファイルの表示

@@ -16,9 +16,15 @@
16 16
             <div style="float: right;" class="btn btn-link color-b"></div>
17 17
           </div>
18 18
           <br />
19
-          <br />
20
-          <p>* You need to be logged in to submit your listing. Please register and log in if you have not done so already.</p>
19
+          <div v-if="!isLoggedIn">
20
+            <hr />
21
+            <Alert
22
+              :text="'* You need to be logged in to submit your listing. Please register and log in if you have not done so already.'"
23
+              :type="'WARNING'"
24
+            />
25
+          </div>
21 26
           <hr />
27
+          <br />
22 28
           <div class="form-group row">
23 29
             <div class="col-md-4">
24 30
               <div class="form-group">
@@ -118,7 +124,7 @@
118 124
                     >
119 125
                       <option value="Other">Other</option>
120 126
                       <option
121
-                        v-for="(resort, r) in resorts"
127
+                        v-for="(resort, r) in filteredResort"
122 128
                         :key="r"
123 129
                         :value="resort"
124 130
                       >{{resort.resortName}}</option>
@@ -507,10 +513,16 @@ import { mapState, mapActions } from 'vuex';
507 513
 import DetailIndividual from '../../user/timeshareIndividual.vue';
508 514
 import BankDetails from '../../shared/bankAccount.vue';
509 515
 import Address from '../../misc/address.vue';
516
+import Alert from '../../shared/alert.vue';
510 517
 
511 518
 export default {
512 519
   name: 'TimeshareToSell',
513
-  components: { DetailIndividual, BankDetails, Address },
520
+  components: {
521
+    DetailIndividual,
522
+    BankDetails,
523
+    Address,
524
+    Alert,
525
+  },
514 526
   created() {
515 527
     this.initTimeshare();
516 528
   },
@@ -528,9 +540,28 @@ export default {
528 540
       'agencies',
529 541
       'agents',
530 542
     ]),
543
+    ...mapState('authentication', ['isLoggedIn']),
531 544
     refAgent() {
532 545
       return this.sellItem && this.sellItem.referedByAgent;
533 546
     },
547
+    filteredResort() {
548
+      let list = [];
549
+      if (
550
+        this.sellItem
551
+        && this.sellItem.region
552
+        && this.sellItem.region.regionCode
553
+      ) {
554
+        const item = this.detailedRegion.find(
555
+          region => region.region.regionCode === this.sellItem.region.regionCode,
556
+        );
557
+        if (item) {
558
+          list = item.children;
559
+        }
560
+      } else {
561
+        list = this.resorts;
562
+      }
563
+      return _.sortBy(list, x => x.resortName);
564
+    },
534 565
   },
535 566
   methods: {
536 567
     submitSale() {

+ 2
- 2
src/components/user/registerAgencySection.vue ファイルの表示

@@ -237,10 +237,10 @@ export default {
237 237
     };
238 238
   },
239 239
   computed: {
240
-    ...mapState('registerAgency', ['registerAgency']),
240
+    ...mapState('register', ['registerAgency']),
241 241
   },
242 242
   methods: {
243
-    ...mapActions('registerAgency', [
243
+    ...mapActions('register', [
244 244
       'getAgency',
245 245
       'saveAgency',
246 246
       'updateAgency',

+ 2
- 2
src/components/user/registerPage.vue ファイルの表示

@@ -181,7 +181,7 @@ export default {
181 181
     };
182 182
   },
183 183
   computed: {
184
-    ...mapState('registerIndividual', ['registerIndividual']),
184
+    ...mapState('register', ['registerIndividual']),
185 185
 
186 186
     Header() {
187 187
       return this.RegisterHeader
@@ -190,7 +190,7 @@ export default {
190 190
     },
191 191
   },
192 192
   methods: {
193
-    ...mapActions('registerIndividual', [
193
+    ...mapActions('register', [
194 194
       'getIndividual',
195 195
       'saveIndividual',
196 196
       'updateIndividual',

+ 2
- 2
src/components/user/updateProfileInfo.vue ファイルの表示

@@ -59,13 +59,13 @@ export default {
59 59
     return {};
60 60
   },
61 61
   methods: {
62
-    ...mapActions('registerIndividual', ['getIndividuals']),
62
+    ...mapActions('register', ['getIndividuals']),
63 63
   },
64 64
   mounted() {
65 65
     this.getIndividuals();
66 66
   },
67 67
   computed: {
68
-    ...mapState('registerIndividual', ['individuals']),
68
+    ...mapState('register', ['individuals']),
69 69
   },
70 70
 };
71 71
 </script>

+ 1
- 2
src/store/index.js ファイルの表示

@@ -40,8 +40,7 @@ export default new Vuex.Store({
40 40
     propertyAdmin: PropertyAdminModule,
41 41
     propertyList: PropertyList,
42 42
     propertyTypes: PropertyTypes,
43
-    registerIndividual: Register,
44
-    registerAgency: Register,
43
+    register: Register,
45 44
     weekList: WeekList,
46 45
     bid: Bid,
47 46
     authentication: Authentication,

読み込み中…
キャンセル
保存