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

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
-<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
             <Address :address="sellItem.owner" />
318
             <Address :address="sellItem.owner" />
319
             <hr />
319
             <hr />
320
             <BankDetails :bankingDetails="sellItem.owner.bankingDetails" />
320
             <BankDetails :bankingDetails="sellItem.owner.bankingDetails" />
321
+            <hr />
321
           </div>
322
           </div>
322
           <hr />
323
           <hr />
323
           <br />
324
           <br />

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

54
             <span class="input-group-text">
54
             <span class="input-group-text">
55
               <eva-icon name="people-outline" fill="#60CBEB"></eva-icon>
55
               <eva-icon name="people-outline" fill="#60CBEB"></eva-icon>
56
             </span>
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
           </div>
60
           </div>
64
         </div>
61
         </div>
65
         <div class="col-md-6" style="margin-bottom: 1em">
62
         <div class="col-md-6" style="margin-bottom: 1em">
95
 </template>
92
 </template>
96
 
93
 
97
 <script>
94
 <script>
95
+import { mapState } from 'vuex';
96
+
98
 export default {
97
 export default {
99
   component: {},
98
   component: {},
100
   props: {
99
   props: {
101
     owner: {},
100
     owner: {},
102
   },
101
   },
102
+  computed: {
103
+    ...mapState('timeshare', ['maritalStatus']),
104
+  },
103
 };
105
 };
104
 </script>
106
 </script>
105
 
107
 

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

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

Loading…
Peruuta
Tallenna