30117125 4 лет назад
Родитель
Сommit
f7e0bc451b

+ 42
- 62
src/components/shared/navBar.vue Просмотреть файл

@@ -2,7 +2,7 @@
2 2
   <div>
3 3
     <!-- <button type="button" id="mobile-nav-toggle">
4 4
       <i class="fa fa-bars"></i>
5
-    </button> -->
5
+    </button>-->
6 6
     <div>
7 7
       <header id="header" style="width: 100%; position: fixed; top:0px; z-index: 50;">
8 8
         <div class="container">
@@ -14,11 +14,12 @@
14 14
                   src="/img/logos/UVProp.png"
15 15
                   alt="UVProp logo"
16 16
                   style="height:100px;"
17
-              /></a>
17
+                />
18
+              </a>
18 19
             </div>
19 20
             <div id="topbar" class="col-md-9">
20 21
               <div class="container clearFix">
21
-                <div class="social-links  ">
22
+                <div class="social-links">
22 23
                   <a href="mailto:info@univateproperties.co.za">
23 24
                     <i class="fa fa-envelope"></i>
24 25
                   </a>
@@ -65,7 +66,7 @@
65 66
                           >To Rent</a
66 67
                         >
67 68
                       </li>
68
-                    </ul> -->
69
+                    </ul>-->
69 70
                   </li>
70 71
                   <li class="mx-1">
71 72
                     <router-link to="/property/residential">Residential</router-link>
@@ -91,16 +92,14 @@
91 92
                           >To Rent</a
92 93
                         >
93 94
                       </li>
94
-                    </ul> -->
95
+                    </ul>-->
95 96
                   </li>
96 97
                   <li class="menu-has-children mx-1">
97 98
                     <div
98 99
                       @mouseover="timeShareClass = 'ts-display'"
99 100
                       @mouseleave="timeShareClass = 'no-display'"
100 101
                     ></div>
101
-                    <a href="#" class="sf-with-ul">
102
-                      Timeshare
103
-                    </a>
102
+                    <a href="#" class="sf-with-ul">Timeshare</a>
104 103
                     <ul style="margin-top:-10px;text-align:left" :class="timeShareClass">
105 104
                       <li>
106 105
                         <router-link to="/timeshare/buy">To Buy</router-link>
@@ -140,25 +139,21 @@
140 139
                         <router-link to="/properties">My Properties</router-link>
141 140
                       </li>
142 141
                     </ul>
143
-                  </li> -->
142
+                  </li>-->
144 143
                   <li class="menu-has-children mx-1">
145 144
                     <div
146 145
                       @mouseover="propManClass = 'ts-display'"
147 146
                       @mouseleave="propManClass = 'no-display'"
148 147
                     ></div>
149
-                    <a href="#" class="sf-with-ul">
150
-                      Property Management
151
-                    </a>
148
+                    <a href="#" class="sf-with-ul">Property Management</a>
152 149
                     <ul style="margin-top:-10px; text-align:left" :class="propManClass">
153 150
                       <li>
154
-                        <router-link to="/propertyManagement"
155
-                          >Sectional Title and HOA Management</router-link
156
-                        >
151
+                        <router-link to="/propertyManagement">Sectional Title and HOA Management</router-link>
157 152
                       </li>
158 153
                       <li>
159
-                        <router-link to="/rentalPropertyManagement"
160
-                          >Rental Property Portfolio Management</router-link
161
-                        >
154
+                        <router-link
155
+                          to="/rentalPropertyManagement"
156
+                        >Rental Property Portfolio Management</router-link>
162 157
                       </li>
163 158
                     </ul>
164 159
                   </li>
@@ -167,9 +162,7 @@
167 162
                       @mouseover="aboutClass = 'ts-display'"
168 163
                       @mouseleave="aboutClass = 'no-display'"
169 164
                     ></div>
170
-                    <a href="#" class="sf-with-ul">
171
-                      About
172
-                    </a>
165
+                    <a href="#" class="sf-with-ul">About</a>
173 166
                     <ul style="margin-top:-10px; text-align:left" :class="aboutClass">
174 167
                       <li>
175 168
                         <router-link to="/about/us">About Us</router-link>
@@ -188,16 +181,14 @@
188 181
                       @mouseleave="userClass = 'no-display'"
189 182
                     ></div>
190 183
 
191
-                    <a href="#" class="sf-with-ul">
192
-                      {{ NAME }}
193
-                    </a>
184
+                    <a href="#" class="sf-with-ul">{{ NAME }}</a>
194 185
                     <ul style="margin-top:-10px;text-align:left" :class="userClass">
195 186
                       <!-- <li v-if="ROLE === 'Super Admin'">
196 187
                         <router-link to="/property/list">List Property</router-link>
197 188
                       </li>
198 189
                       <li v-if="ROLE === 'Super Admin'">
199 190
                         <router-link to="/status/list">Status</router-link>
200
-                      </li> -->
191
+                      </li>-->
201 192
                       <li v-if="ROLE === 'Super Admin'"></li>
202 193
                       <li>
203 194
                         <router-link to="/property/list">List My Property</router-link>
@@ -207,22 +198,20 @@
207 198
                         <router-link to="/status/timeshareAdmin">Timeshare Week Admin</router-link>
208 199
                       </li>
209 200
                       <li v-if="ROLE === 'Super Admin'">
210
-                        <router-link to="/status/tenderWeekAdmin"
211
-                          >Tender Week Management</router-link
212
-                        >
201
+                        <router-link to="/status/tenderWeekAdmin">Tender Week Management</router-link>
213 202
                       </li>
214 203
                       <!-- <li v-if="ROLE === 'Super Admin'">
215 204
                         <router-link to="/unitConfiguration/list">Unit Configuration</router-link>
216
-                      </li> -->
205
+                      </li>-->
217 206
                       <!-- <li v-if="ROLE === 'Super Admin'">
218 207
                         <router-link to="/communication/template">Templates</router-link>
219
-                      </li> -->
208
+                      </li>-->
220 209
                       <!-- <hr />
221 210
                       <li v-if="ROLE === 'Super Admin'">
222 211
                         <router-link to="/status/userManagementPage"
223 212
                           >User Management & Access</router-link
224 213
                         >
225
-                      </li> -->
214
+                      </li>-->
226 215
                       <!-- <li v-if="ROLE === 'Super Admin'">
227 216
                         <router-link to="/status/changeLogPage">Changes Logs</router-link>
228 217
                       </li>
@@ -240,16 +229,14 @@
240 229
                       </li>
241 230
                       <li v-if="ROLE === 'Super Admin'">
242 231
                         <hr />
243
-                      </li> -->
232
+                      </li>-->
244 233
                       <hr v-if="ROLE === 'Super Admin'" />
245 234
                       <li v-if="ROLE === 'Super Admin'" class="menu-has-children">
246 235
                         <div
247 236
                           @mouseover="submenu1Class = 'ts-display'"
248 237
                           @mouseleave="submenu1Class = 'no-display'"
249 238
                         ></div>
250
-                        <a href="#" class="sf-with-ul">
251
-                          Website Setup
252
-                        </a>
239
+                        <a href="#" class="sf-with-ul">Website Setup</a>
253 240
                         <ul
254 241
                           style="margin-top:-10px;text-align:left;width:250px"
255 242
                           :class="submenu1Class"
@@ -258,22 +245,16 @@
258 245
                             <router-link to="/status/list">Status</router-link>
259 246
                           </li>
260 247
                           <li>
261
-                            <router-link to="/unitConfiguration/list"
262
-                              >Unit Configuration</router-link
263
-                            >
248
+                            <router-link to="/unitConfiguration/list">Unit Configuration</router-link>
264 249
                           </li>
265 250
                           <li>
266 251
                             <router-link to="/communication/template">Templates</router-link>
267 252
                           </li>
268 253
                           <li>
269
-                            <router-link to="/status/userManagementPage"
270
-                              >User Management & Access</router-link
271
-                            >
254
+                            <router-link to="/status/userManagementPage">User Management & Access</router-link>
272 255
                           </li>
273 256
                           <li>
274
-                            <router-link to="/userDefinedGroups/list"
275
-                              >Property User Defined Groups</router-link
276
-                            >
257
+                            <router-link to="/userDefinedGroups/list">Property User Defined Groups</router-link>
277 258
                           </li>
278 259
                           <li>
279 260
                             <router-link to="/PropertyAdmin">Property Admin</router-link>
@@ -285,9 +266,10 @@
285 266
                             <router-link to="/fees">Fees</router-link>
286 267
                           </li>
287 268
                           <li>
288
-                            <router-link to="/termsConditions"
289
-                              >Edit Terms and Conditions</router-link
290
-                            >
269
+                            <router-link to="/termsConditions">Edit Terms and Conditions</router-link>
270
+                          </li>
271
+                          <li>
272
+                            <router-link to="/UserRoles">User Roles</router-link>
291 273
                           </li>
292 274
                         </ul>
293 275
                       </li>
@@ -296,9 +278,7 @@
296 278
                           @mouseover="submenu1Class = 'ts-display'"
297 279
                           @mouseleave="submenu1Class = 'no-display'"
298 280
                         ></div>
299
-                        <a href="#" class="sf-with-ul">
300
-                          Logs
301
-                        </a>
281
+                        <a href="#" class="sf-with-ul">Logs</a>
302 282
                         <ul
303 283
                           style="margin-top:-10px;text-align:left;width:250px"
304 284
                           :class="submenu1Class"
@@ -317,7 +297,7 @@
317 297
                       </li>
318 298
                       <!-- <li v-if="ROLE === 'Super Admin'">
319 299
                         <router-link to="/Carousel">Carousel</router-link>
320
-                      </li> -->
300
+                      </li>-->
321 301
                       <li v-if="ROLE === 'Super Admin'">
322 302
                         <router-link to="/user/updateProfileInfo">Update Info</router-link>
323 303
                       </li>
@@ -328,23 +308,17 @@
328 308
                         <router-link to="/landingPages">Landing Pages / Campaignes</router-link>
329 309
                       </li>
330 310
                       <li>
331
-                        <router-link class="btn-white-border p-2" to="/user/login"
332
-                          >Logout</router-link
333
-                        >
311
+                        <router-link class="btn-white-border p-2" to="/user/login">Logout</router-link>
334 312
                       </li>
335 313
                     </ul>
336 314
                   </li>
337 315
 
338 316
                   <li v-if="!USER">
339
-                    <router-link class="btn-white-border p-2 ml-1 mr-1" to="/user/login"
340
-                      >Login</router-link
341
-                    >
317
+                    <router-link class="btn-white-border p-2 ml-1 mr-1" to="/user/login">Login</router-link>
342 318
                   </li>
343 319
 
344 320
                   <li v-if="!USER">
345
-                    <router-link class=" btn-solid-blue pt-2 pb-2" to="/user/register"
346
-                      >Register</router-link
347
-                    >
321
+                    <router-link class="btn-solid-blue pt-2 pb-2" to="/user/register">Register</router-link>
348 322
                   </li>
349 323
                   <!-- <li v-if="!isLoggedIn" class="menu-has-children">
350 324
                     <div
@@ -362,7 +336,7 @@
362 336
                         <router-link to="/user/registeragency">Agency Registration</router-link>
363 337
                       </li>
364 338
                     </ul>
365
-                  </li> -->
339
+                  </li>-->
366 340
                 </ul>
367 341
               </nav>
368 342
             </div>
@@ -437,7 +411,13 @@ export default {
437 411
     this.retrieveListingFee();
438 412
   },
439 413
   computed: {
440
-    ...mapState("authentication", ["user", "flag", "status", "person", "token"]),
414
+    ...mapState("authentication", [
415
+      "user",
416
+      "flag",
417
+      "status",
418
+      "person",
419
+      "token"
420
+    ]),
441 421
     isLoggedIn() {
442 422
       return Log.isLoggedIn();
443 423
     },

+ 51
- 0
src/components/user/Roles/carouselSection.vue Просмотреть файл

@@ -0,0 +1,51 @@
1
+<template>
2
+  <section id="intro">
3
+    <carousel
4
+      :nav="false"
5
+      :dots="false"
6
+      :items="1"
7
+      :autoplay="true"
8
+      :loop="true"
9
+      :autoHeight="true"
10
+      id="intro-carousel"
11
+      style="margin-top:-50px;"
12
+      :responsive="{ 0: { items: 1, nav: false }, 600: { items: 1, nav: false } }"
13
+    >
14
+      <img class="item" src="/img/intro-carousel/home-1.jpg" alt />
15
+      <img class="item" src="/img/intro-carousel/16.jpg" alt />
16
+      <img class="item" src="/img/intro-carousel/comm-1.jpg" alt />
17
+      <img class="item" src="/img/intro-carousel/comm-4.jpg" alt />
18
+      <img class="item" src="/img/intro-carousel/3.jpg" alt />
19
+      <img class="item" src="/img/intro-carousel/home-5.jpg" alt />
20
+    </carousel>
21
+
22
+    <div id="intro-carousel" class="owl-carousel"></div>
23
+  </section>
24
+</template>
25
+
26
+<script>
27
+/* eslint-disable */
28
+import { mapState, mapActions } from "vuex";
29
+import Log from "../../../assets/Log";
30
+import carousel from "vue-owl-carousel";
31
+export default {
32
+  components: {
33
+    carousel
34
+  },
35
+  computed: {
36
+    ...mapState("authentication", [
37
+      "user",
38
+      "flag",
39
+      "status",
40
+      "person",
41
+      "token"
42
+    ]),
43
+    isLoggedIn() {
44
+      console.log(Log.isLoggedIn());
45
+      return Log.isLoggedIn();
46
+    }
47
+  }
48
+};
49
+</script>
50
+
51
+<style lang="scss" scoped></style>

+ 83
- 0
src/components/user/Roles/contentSection.vue Просмотреть файл

@@ -0,0 +1,83 @@
1
+<template>
2
+  <main id="main" style="margin-top:-20px; padding-bottom:50px">
3
+    <!-- eslint-disable max-len -->
4
+    <div class="container">
5
+      <br />
6
+      <br />
7
+      <div class="row">
8
+        <div class="col-md-12 col-lg-8">
9
+          <div class="section-header">
10
+            <h2>User Roles</h2>
11
+          </div>
12
+        </div>
13
+      </div>
14
+      <div class="container">
15
+        <ListView
16
+          :items="individuals"
17
+          :showNew="false"
18
+          :editable="true"
19
+          :showCustomAction="true"
20
+          :showColumnChooser="false"
21
+          :displayColumns="columns"
22
+          :displayHeaders="headers"
23
+          @onEdit="Edit"
24
+        />
25
+        <br />
26
+      </div>
27
+    </div>
28
+  </main>
29
+</template>
30
+
31
+<script>
32
+import { mapState, mapActions } from "vuex";
33
+// import alert from '../../shared/alert.vue';
34
+import ListView from "../../shared/listView.vue";
35
+
36
+export default {
37
+  name: "userManagementPage",
38
+  components: {
39
+    ListView
40
+    // alert,
41
+  },
42
+  data() {
43
+    return {
44
+      columns: [
45
+        "id",
46
+        "name",
47
+        "surname",
48
+        "cellNumber",
49
+        "telephone",
50
+        "email",
51
+        "isDeleted",
52
+        "role"
53
+      ],
54
+      headers: ["", "", "", "", "", "", "", ""],
55
+      item: {}
56
+    };
57
+  },
58
+  props: {},
59
+  methods: {
60
+    ...mapActions("register", ["getIndividuals", "deleteIndividual"]),
61
+    routerGoTo(goTo) {
62
+      this.$router.push(goTo);
63
+    },
64
+    Edit(item) {
65
+      this.$router.push({
66
+        path: "/user/updateProfileInfo",
67
+        query: { id: item.id }
68
+      });
69
+    },
70
+    Delete(item) {
71
+      this.deleteIndividual(item.id);
72
+    }
73
+  },
74
+  mounted() {
75
+    this.getIndividuals();
76
+  },
77
+  computed: {
78
+    ...mapState("register", ["individuals", "removeIndividual"])
79
+  }
80
+};
81
+</script>
82
+
83
+<style></style>

+ 22
- 0
src/components/user/Roles/userRoles.vue Просмотреть файл

@@ -0,0 +1,22 @@
1
+<template>
2
+  <div>
3
+    <main id="main">
4
+      <contentSection />
5
+    </main>
6
+  </div>
7
+</template>
8
+
9
+<script>
10
+/* eslint-disable */
11
+// import carouselSection from "./carouselSection";
12
+// import TestimonialSection from "../../propertyManagement/testimonialSection";
13
+import contentSection from "./contentSection";
14
+
15
+export default {
16
+  components: {
17
+    contentSection
18
+  }
19
+};
20
+</script>
21
+
22
+<style lang="scss" scoped></style>

+ 7
- 0
src/router/index.js Просмотреть файл

@@ -87,6 +87,8 @@ import MarketingPageExp from "../components/marketing/landingPageExpired.vue";
87 87
 import EnquireNow from "../components/property/enquireNow/enquirenow.vue";
88 88
 import MyWeeksEdit from "../components/admin/status/editTimeShareAdminPage.vue";
89 89
 
90
+import UserRoles from "../components/user/Roles/userRoles.vue";
91
+
90 92
 Vue.use(Router);
91 93
 
92 94
 export default new Router({
@@ -467,6 +469,11 @@ export default new Router({
467 469
       name: "ToBuySearch",
468 470
       component: ToBuySearch
469 471
     },
472
+    {
473
+      path: "/UserRoles",
474
+      name: "UserRoles",
475
+      component: UserRoles
476
+    },
470 477
     {
471 478
       path: "/editTimeShare",
472 479
       name: "EditTimeshare",

Загрузка…
Отмена
Сохранить