Browse Source

Updated user delete and timeshare owner

master
30117125 4 years ago
parent
commit
2baca43f91

+ 1
- 0
src/components/admin/status/editTimeShareAdminPage.vue View File

@@ -581,6 +581,7 @@ export default {
581 581
         this.boolAwaitingPayment = true;
582 582
       }
583 583
     }
584
+    console.log(this.individuals);
584 585
   },
585 586
   created() {
586 587
     this.initTimeshare(this.weekId);

+ 1
- 0
src/components/admin/status/userManagementPage.vue View File

@@ -79,6 +79,7 @@ export default {
79 79
       this.$router.push({ name: "UpdateInfo", params: { indivParam: item } });
80 80
     },
81 81
     Delete(item) {
82
+      console.log(item);
82 83
       this.deleteIndividual(item.id);
83 84
     }
84 85
   },

+ 17
- 1
src/components/user/updateProfileInfo.vue View File

@@ -16,6 +16,22 @@
16 16
         </div>
17 17
       </div>
18 18
       <!-- <DetailIndividual :currentUser="user" :showBank="true" :showAddress="true" /> -->
19
+      <div class="row mb-4">
20
+        <div class="col-md-6">
21
+          <float-label fixed label="USERNAME">
22
+            <input
23
+              type="text"
24
+              name="name"
25
+              class="form-control uniInput"
26
+              id="name"
27
+              placeholder="Name"
28
+              data-rule="minlen:4"
29
+              data-msg="Please enter your name"
30
+              v-model="individual.user.username"
31
+            />
32
+          </float-label>
33
+        </div>
34
+      </div>
19 35
       <div class="row mb-2">
20 36
         <div class="form-group col-md-6">
21 37
           <float-label>
@@ -122,7 +138,7 @@
122 138
               id="email"
123 139
               placeholder="EMAIL ADDRESS"
124 140
               data-msg="Please enter your email address"
125
-              v-model="individual.emailAddress"
141
+              v-model="individual.email"
126 142
             />
127 143
           </float-label>
128 144
 

+ 2
- 1
src/store/modules/user/register.js View File

@@ -93,7 +93,8 @@ export default {
93 93
       };
94 94
     },
95 95
     removeIndividual(state, id) {
96
-      state.registerIndividual.pop(state.registerIndividual.find(p => p.id === id));
96
+      var index = state.individuals.findIndex((indiv) => indiv.id === id)
97
+      state.individuals.splice(index, 1)
97 98
     },
98 99
     removeAgency(state, id) {
99 100
       state.registerAgency.pop(state.registerAgency.find(a => a.id === id));

Loading…
Cancel
Save