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
         this.boolAwaitingPayment = true;
581
         this.boolAwaitingPayment = true;
582
       }
582
       }
583
     }
583
     }
584
+    console.log(this.individuals);
584
   },
585
   },
585
   created() {
586
   created() {
586
     this.initTimeshare(this.weekId);
587
     this.initTimeshare(this.weekId);

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

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

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

16
         </div>
16
         </div>
17
       </div>
17
       </div>
18
       <!-- <DetailIndividual :currentUser="user" :showBank="true" :showAddress="true" /> -->
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
       <div class="row mb-2">
35
       <div class="row mb-2">
20
         <div class="form-group col-md-6">
36
         <div class="form-group col-md-6">
21
           <float-label>
37
           <float-label>
122
               id="email"
138
               id="email"
123
               placeholder="EMAIL ADDRESS"
139
               placeholder="EMAIL ADDRESS"
124
               data-msg="Please enter your email address"
140
               data-msg="Please enter your email address"
125
-              v-model="individual.emailAddress"
141
+              v-model="individual.email"
126
             />
142
             />
127
           </float-label>
143
           </float-label>
128
 
144
 

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

93
       };
93
       };
94
     },
94
     },
95
     removeIndividual(state, id) {
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
     removeAgency(state, id) {
99
     removeAgency(state, id) {
99
       state.registerAgency.pop(state.registerAgency.find(a => a.id === id));
100
       state.registerAgency.pop(state.registerAgency.find(a => a.id === id));

Loading…
Cancel
Save