Selaa lähdekoodia

Added marital status drop down

master
LeneS 5 vuotta sitten
vanhempi
commit
51cf70bbe0

+ 4
- 0
src/assets/staticData/maritalStatus.js Näytä tiedosto

@@ -0,0 +1,4 @@
1
+const items = ['ICOP (In Community of Property)', 'OCOP (Out of Community of Property)', 'Other',
2
+  'Traditional Wedding', 'Single', 'Divorced', 'Widow', 'Committed Relationship', 'Partner',
3
+];
4
+export default items;

+ 0
- 9
src/components/shared/test.vue Näytä tiedosto

@@ -1,9 +0,0 @@
1
-<template>
2
-  <div>Sataliet!!!!!!!!!!!!!</div>
3
-</template>
4
-
5
-<script>
6
-export default {
7
-  name: 'nasa',
8
-};
9
-</script>

+ 1
- 0
src/components/timeshare/sell/sellPage.vue Näytä tiedosto

@@ -318,6 +318,7 @@
318 318
             <Address :address="sellItem.owner" />
319 319
             <hr />
320 320
             <BankDetails :bankingDetails="sellItem.owner.bankingDetails" />
321
+            <hr />
321 322
           </div>
322 323
           <hr />
323 324
           <br />

+ 8
- 6
src/components/user/timeshareIndividual.vue Näytä tiedosto

@@ -54,12 +54,9 @@
54 54
             <span class="input-group-text">
55 55
               <eva-icon name="people-outline" fill="#60CBEB"></eva-icon>
56 56
             </span>
57
-            <input
58
-              class="form-control"
59
-              type="text"
60
-              name="maritalstatus"
61
-              v-model="owner.maritalstatus"
62
-            />
57
+            <select class="form-control" name="maritalstatus" v-model="owner.maritalstatus">
58
+              <option v-for="(item, i) in maritalStatus" :key="i">{{item}}</option>
59
+            </select>
63 60
           </div>
64 61
         </div>
65 62
         <div class="col-md-6" style="margin-bottom: 1em">
@@ -95,11 +92,16 @@
95 92
 </template>
96 93
 
97 94
 <script>
95
+import { mapState } from 'vuex';
96
+
98 97
 export default {
99 98
   component: {},
100 99
   props: {
101 100
     owner: {},
102 101
   },
102
+  computed: {
103
+    ...mapState('timeshare', ['maritalStatus']),
104
+  },
103 105
 };
104 106
 </script>
105 107
 

+ 2
- 0
src/store/modules/timeshare/timeshare.js Näytä tiedosto

@@ -2,6 +2,7 @@
2 2
 /* eslint-disable no-restricted-syntax */
3 3
 import axios from 'axios';
4 4
 import MyData from '../../../assets/myData';
5
+import MaritalStatus from '../../../assets/staticData/maritalStatus';
5 6
 
6 7
 export default {
7 8
   namespaced: true,
@@ -15,6 +16,7 @@ export default {
15 16
     bankedEntities: [],
16 17
     agencies: [],
17 18
     agents: [],
19
+    maritalStatus: MaritalStatus,
18 20
     sellItem: {
19 21
       referedByAgent: false,
20 22
       agent: undefined,

Loading…
Peruuta
Tallenna