Переглянути джерело

Added Reset Password button

master
Lene Scholtz 5 роки тому
джерело
коміт
e4780f89d6

+ 9
- 3
src/components/admin/status/agentsUserManagementPage.vue Переглянути файл

66
             <th>
66
             <th>
67
               <b>Reset Password</b>
67
               <b>Reset Password</b>
68
             </th>
68
             </th>
69
-            <th></th>
70
-            <th></th>
69
+            <th>
70
+              <b>Modify</b>
71
+            </th>
72
+            <th>
73
+              <b>Remove</b>
74
+            </th>
71
           </tr>
75
           </tr>
72
         </thead>
76
         </thead>
73
         <tbody>
77
         <tbody>
80
             <td>{{ item.email }}</td>
84
             <td>{{ item.email }}</td>
81
             <td v-if="item.user">{{ item.user.role }}</td>
85
             <td v-if="item.user">{{ item.user.role }}</td>
82
             <td v-else></td>
86
             <td v-else></td>
83
-            <td></td>
87
+            <td>
88
+              <button type="button" class="btn" style="margin:2px; color: #60CBEB">Reset</button>
89
+            </td>
84
             <td>
90
             <td>
85
               <button
91
               <button
86
                 type="button"
92
                 type="button"

+ 9
- 3
src/components/admin/status/userManagementPage.vue Переглянути файл

63
             <th>
63
             <th>
64
               <b>Reset Password</b>
64
               <b>Reset Password</b>
65
             </th>
65
             </th>
66
-            <th></th>
67
-            <th></th>
66
+            <th>
67
+              <b>Modify</b>
68
+            </th>
69
+            <th>
70
+              <b>Remove</b>
71
+            </th>
68
           </tr>
72
           </tr>
69
         </thead>
73
         </thead>
70
         <tbody>
74
         <tbody>
77
             <td>{{ item.email }}</td>
81
             <td>{{ item.email }}</td>
78
             <td v-if="item.user">{{ item.user.role }}</td>
82
             <td v-if="item.user">{{ item.user.role }}</td>
79
             <td v-else></td>
83
             <td v-else></td>
80
-            <td></td>
84
+            <td>
85
+              <button type="button" class="btn" style="margin:2px; color: #60CBEB">Reset</button>
86
+            </td>
81
             <td>
87
             <td>
82
               <button
88
               <button
83
                 type="button"
89
                 type="button"

+ 21
- 3
src/components/user/updateProfileInfo.vue Переглянути файл

36
             <td>
36
             <td>
37
               <button
37
               <button
38
                 type="button"
38
                 type="button"
39
-                @click="Edit(item)"
39
+                data-toggle="modal"
40
+                :data-target="'#myModal' + i"
40
                 class="btn"
41
                 class="btn"
41
                 style="margin:2px; color: #60CBEB"
42
                 style="margin:2px; color: #60CBEB"
42
               >Edit</button>
43
               >Edit</button>
44
+              <div :id="'myModal' + i" class="modal fade" role="dialog">
45
+                <div class="modal-dialog modal-lg">
46
+                  <div class="modal-content">
47
+                    <div class="modal-header">
48
+                      <button type="button" class="close" data-dismiss="modal">&times;</button>
49
+                    </div>
50
+                    <div padding-left="20px">
51
+                      <Individual name="PrivateIndividual" :isAddIndividual="false" :item="item" />
52
+                    </div>
53
+                  </div>
54
+                </div>
55
+              </div>
43
             </td>
56
             </td>
44
           </tr>
57
           </tr>
45
         </tbody>
58
         </tbody>
51
 
64
 
52
 <script>
65
 <script>
53
 import { mapState, mapActions } from 'vuex';
66
 import { mapState, mapActions } from 'vuex';
54
-// import axios from 'axios';
67
+import Individual from './registerPage.vue';
55
 
68
 
56
 export default {
69
 export default {
57
   name: 'UpdateInfo',
70
   name: 'UpdateInfo',
71
+  components: {
72
+    Individual,
73
+  },
58
   data() {
74
   data() {
59
-    return {};
75
+    return {
76
+      item: {},
77
+    };
60
   },
78
   },
61
   methods: {
79
   methods: {
62
     ...mapActions('register', ['getIndividuals']),
80
     ...mapActions('register', ['getIndividuals']),

Завантаження…
Відмінити
Зберегти