George Williams 5 vuotta sitten
vanhempi
commit
063bb84b58

BIN
public/img/Article.jpg Näytä tiedosto


BIN
public/img/Poll.png Näytä tiedosto


BIN
public/img/Purchasing.jpg Näytä tiedosto


BIN
public/img/Tenant.jpg Näytä tiedosto


BIN
public/img/TopTip.png Näytä tiedosto


+ 95
- 13
src/components/admin/status/userManagementPage.vue Näytä tiedosto

1
 <template>
1
 <template>
2
-  <!-- <section class="intro-single"> -->
2
+  <!-- eslint-disable max-len -->
3
   <div class="container">
3
   <div class="container">
4
     <br />
4
     <br />
5
     <br />
5
     <br />
7
     <br />
7
     <br />
8
     <div class="row">
8
     <div class="row">
9
       <div class="col-md-12 col-lg-8">
9
       <div class="col-md-12 col-lg-8">
10
-        <!-- <div class="title-single-box"> -->
11
-        <!-- <h1 class="title-single" style="text-align:left;">User Management</h1> -->
12
-        <!-- </div> -->
13
         <div class="title-box-d">
10
         <div class="title-box-d">
14
           <h1 class="title-d" style="text-align:left; font-size: 250%">User Management</h1>
11
           <h1 class="title-d" style="text-align:left; font-size: 250%">User Management</h1>
15
         </div>
12
         </div>
16
         <br />
13
         <br />
17
       </div>
14
       </div>
18
     </div>
15
     </div>
19
-    <div id="table" class="col-xs-12 table-responsive">
20
-      <datatable :columns="columns" :data="rows"></datatable>
16
+    <button @click="addNewAgent" type="button" class="btn btn-b-n">Add New Agent</button>
17
+    <br />
18
+    <br />
19
+    <div class="container">
20
+      <table class="table table-bordered">
21
+        <thead>
22
+          <tr>
23
+            <th>ID</th>
24
+            <th>Name</th>
25
+            <th>Surname</th>
26
+            <th>Cell Number</th>
27
+            <th>Telephone Number</th>
28
+            <th>Email</th>
29
+            <th>Role</th>
30
+            <th>Reset Password</th>
31
+            <th></th>
32
+            <th></th>
33
+          </tr>
34
+        </thead>
35
+        <tbody>
36
+          <tr>
37
+            <td colspan="10">
38
+              <h5>Private Users</h5>
39
+            </td>
40
+          </tr>
41
+          <tr v-for="(item, i) in individuals" :key="i">
42
+            <td>{{ item.id }}</td>
43
+            <td>{{ item.name }}</td>
44
+            <td>{{ item.surname }}</td>
45
+            <td>{{ item.cellNumber }}</td>
46
+            <td>{{ item.telephone }}</td>
47
+            <td>{{ item.email }}</td>
48
+            <td v-if="item.user">{{ item.user.role }}</td>
49
+            <td v-else></td>
50
+            <td></td>
51
+            <td>
52
+              <button
53
+                type="button"
54
+                @click="Edit(item)"
55
+                class="btn btn-b-n"
56
+                style="width: 85px; height:40px;"
57
+              >Edit</button>
58
+            </td>
59
+            <td>
60
+              <button type="button" class="btn btn-b-n" style="width: 85px; height:40px">Delete</button>
61
+            </td>
62
+          </tr>
63
+          <tr>
64
+            <td colspan="10">
65
+              <h5>Agents</h5>
66
+            </td>
67
+          </tr>
68
+          <tr v-for="(item, i) in agents" :key="i">
69
+            <td>{{ item.id }}</td>
70
+            <td>{{ item.name }}</td>
71
+            <td>{{ item.surname }}</td>
72
+            <td>{{ item.cellNumber }}</td>
73
+            <td>{{ item.telephone }}</td>
74
+            <td>{{ item.email }}</td>
75
+            <td v-if="item.user">{{ item.user.role }}</td>
76
+            <td v-else></td>
77
+            <td></td>
78
+            <td>
79
+              <button
80
+                type="button"
81
+                @click="Edit(item)"
82
+                class="btn btn-b-n"
83
+                style="width: 85px; height:40px;"
84
+              >Edit</button>
85
+            </td>
86
+            <td>
87
+              <button type="button" class="btn btn-b-n" style="width: 85px; height:40px">Delete</button>
88
+            </td>
89
+          </tr>
90
+        </tbody>
91
+      </table>
21
     </div>
92
     </div>
93
+    <br />
22
   </div>
94
   </div>
23
-  <!-- </section> -->
24
 </template>
95
 </template>
25
 <script>
96
 <script>
26
 import { mapState, mapActions } from 'vuex';
97
 import { mapState, mapActions } from 'vuex';
98
+import axios from 'axios';
27
 
99
 
28
 export default {
100
 export default {
29
   name: 'userManagementPage',
101
   name: 'userManagementPage',
30
-  created() {
31
-    this.getuserManagementPage();
32
-  },
33
-  computed: {
34
-    ...mapState('status', ['userManagementPage']),
102
+  data() {
103
+    return {};
35
   },
104
   },
36
   methods: {
105
   methods: {
37
-    ...mapActions('status', ['getuserManagementPage']),
106
+    ...mapActions('registerIndividual', ['getIndividuals', 'getAgents']),
107
+    addNewAgent({ commit }) {
108
+      axios
109
+        .post('/api/agent')
110
+        .then(result => commit('saveAgent', result.data))
111
+        .catch(console.error);
112
+    },
113
+  },
114
+  mounted() {
115
+    this.getIndividuals();
116
+    this.getAgents();
117
+  },
118
+  computed: {
119
+    ...mapState('registerIndividual', ['individuals', 'agents']),
38
   },
120
   },
39
 };
121
 };
40
 </script>
122
 </script>

+ 20
- 20
src/components/home/newsSection.vue Näytä tiedosto

21
           <div class="carousel-item-c">
21
           <div class="carousel-item-c">
22
             <div class="card-box-b card-shadow news-box">
22
             <div class="card-box-b card-shadow news-box">
23
               <div class="img-box-b">
23
               <div class="img-box-b">
24
-                <img src="img/post-2.jpg" alt class="img-b img-fluid" />
24
+                <img src="img/Tenant.jpg" alt class="img-b img-fluid" />
25
               </div>
25
               </div>
26
               <div class="card-overlay">
26
               <div class="card-overlay">
27
                 <div class="card-header-b">
27
                 <div class="card-header-b">
28
                   <div class="card-category-b">
28
                   <div class="card-category-b">
29
-                    <a href="#" class="category-b">House</a>
29
+                    <a href="#" class="category-b">Article</a>
30
                   </div>
30
                   </div>
31
                   <div class="card-title-b">
31
                   <div class="card-title-b">
32
                     <h2 class="title-2">
32
                     <h2 class="title-2">
33
                       <a href="blog-single.html">
33
                       <a href="blog-single.html">
34
-                        House is comming
35
-                        <br />new
34
+                        Landlords, here’s how to spot a ‘bad’ tenant
35
+                        <br />
36
                       </a>
36
                       </a>
37
                     </h2>
37
                     </h2>
38
                   </div>
38
                   </div>
39
                   <div class="card-date">
39
                   <div class="card-date">
40
-                    <span class="date-b">18 Sep. 2017</span>
40
+                    <span class="date-b">31 Aug. 2019</span>
41
                   </div>
41
                   </div>
42
                 </div>
42
                 </div>
43
               </div>
43
               </div>
46
           <div class="carousel-item-c">
46
           <div class="carousel-item-c">
47
             <div class="card-box-b card-shadow news-box">
47
             <div class="card-box-b card-shadow news-box">
48
               <div class="img-box-b">
48
               <div class="img-box-b">
49
-                <img src="img/post-5.jpg" alt class="img-b img-fluid" />
49
+                <img src="img/Poll.png" alt class="img-b img-fluid" />
50
               </div>
50
               </div>
51
               <div class="card-overlay">
51
               <div class="card-overlay">
52
                 <div class="card-header-b">
52
                 <div class="card-header-b">
53
                   <div class="card-category-b">
53
                   <div class="card-category-b">
54
-                    <a href="#" class="category-b">Travel</a>
54
+                    <a href="#" class="category-b">Poll</a>
55
                   </div>
55
                   </div>
56
                   <div class="card-title-b">
56
                   <div class="card-title-b">
57
                     <h2 class="title-2">
57
                     <h2 class="title-2">
58
                       <a href="blog-single.html">
58
                       <a href="blog-single.html">
59
-                        Travel is comming
60
-                        <br />new
59
+                        Which would you rather?
60
+                        <br />
61
                       </a>
61
                       </a>
62
                     </h2>
62
                     </h2>
63
                   </div>
63
                   </div>
64
                   <div class="card-date">
64
                   <div class="card-date">
65
-                    <span class="date-b">18 Sep. 2017</span>
65
+                    <span class="date-b">23 Aug. 2019</span>
66
                   </div>
66
                   </div>
67
                 </div>
67
                 </div>
68
               </div>
68
               </div>
71
           <div class="carousel-item-c">
71
           <div class="carousel-item-c">
72
             <div class="card-box-b card-shadow news-box">
72
             <div class="card-box-b card-shadow news-box">
73
               <div class="img-box-b">
73
               <div class="img-box-b">
74
-                <img src="img/post-7.jpg" alt class="img-b img-fluid" />
74
+                <img src="img/Purchasing.jpg" alt class="img-b img-fluid" />
75
               </div>
75
               </div>
76
               <div class="card-overlay">
76
               <div class="card-overlay">
77
                 <div class="card-header-b">
77
                 <div class="card-header-b">
78
                   <div class="card-category-b">
78
                   <div class="card-category-b">
79
-                    <a href="#" class="category-b">Park</a>
79
+                    <a href="#" class="category-b">Article</a>
80
                   </div>
80
                   </div>
81
                   <div class="card-title-b">
81
                   <div class="card-title-b">
82
                     <h2 class="title-2">
82
                     <h2 class="title-2">
83
                       <a href="blog-single.html">
83
                       <a href="blog-single.html">
84
-                        Park is comming
85
-                        <br />new
84
+                        Six questions before purchasing
85
+                        <br />
86
                       </a>
86
                       </a>
87
                     </h2>
87
                     </h2>
88
                   </div>
88
                   </div>
89
                   <div class="card-date">
89
                   <div class="card-date">
90
-                    <span class="date-b">18 Sep. 2017</span>
90
+                    <span class="date-b">19 Aug. 2019</span>
91
                   </div>
91
                   </div>
92
                 </div>
92
                 </div>
93
               </div>
93
               </div>
96
           <div class="carousel-item-c">
96
           <div class="carousel-item-c">
97
             <div class="card-box-b card-shadow news-box">
97
             <div class="card-box-b card-shadow news-box">
98
               <div class="img-box-b">
98
               <div class="img-box-b">
99
-                <img src="img/post-3.jpg" alt class="img-b img-fluid" />
99
+                <img src="img/Article.jpg" alt class="img-b img-fluid" />
100
               </div>
100
               </div>
101
               <div class="card-overlay">
101
               <div class="card-overlay">
102
                 <div class="card-header-b">
102
                 <div class="card-header-b">
103
                   <div class="card-category-b">
103
                   <div class="card-category-b">
104
-                    <a href="#" class="category-b">Travel</a>
104
+                    <a href="#" class="category-b">Poll</a>
105
                   </div>
105
                   </div>
106
                   <div class="card-title-b">
106
                   <div class="card-title-b">
107
                     <h2 class="title-2">
107
                     <h2 class="title-2">
108
                       <a href="#">
108
                       <a href="#">
109
-                        Travel is comming
110
-                        <br />new
109
+                        December holidays; a perfect family escape.
110
+                        <br />
111
                       </a>
111
                       </a>
112
                     </h2>
112
                     </h2>
113
                   </div>
113
                   </div>
114
                   <div class="card-date">
114
                   <div class="card-date">
115
-                    <span class="date-b">18 Sep. 2017</span>
115
+                    <span class="date-b">23 Aug. 2019</span>
116
                   </div>
116
                   </div>
117
                 </div>
117
                 </div>
118
               </div>
118
               </div>

+ 1
- 64
src/components/property/propertyPage.vue Näytä tiedosto

142
                       </div>
142
                       </div>
143
                     </div>
143
                     </div>
144
                   </div>
144
                   </div>
145
-                  <div class="row">
146
-                    <div class="col-md-12">
147
-                      <img src="img/agent-4.jpg" alt class="img-fluid" />
148
-                    </div>
149
-                  </div>
150
-                  <div class="row">
151
-                    <div class="col-md-12">
152
-                      <div class="property-agent">
153
-                        <h4 class="title-agent">Anabella Geller</h4>
154
-                        <p class="color-text-a">
155
-                          Nulla porttitor accumsan tincidunt. Vestibulum ac diam sit amet quam vehicula elementum sed sit amet
156
-                          dui. Quisque velit nisi,
157
-                          pretium ut lacinia in, elementum id enim.
158
-                        </p>
159
-                        <ul class="list-unstyled">
160
-                          <li class="d-flex justify-content-between">
161
-                            <strong>Phone:</strong>
162
-                            <span class="color-text-a">(222) 4568932</span>
163
-                          </li>
164
-                          <li class="d-flex justify-content-between">
165
-                            <strong>Mobile:</strong>
166
-                            <span class="color-text-a">777 287 378 737</span>
167
-                          </li>
168
-                          <li class="d-flex justify-content-between">
169
-                            <strong>Email:</strong>
170
-                            <span class="color-text-a">annabella@example.com</span>
171
-                          </li>
172
-                          <li class="d-flex justify-content-between">
173
-                            <strong>Skype:</strong>
174
-                            <span class="color-text-a">Annabela.ge</span>
175
-                          </li>
176
-                        </ul>
177
-                        <div class="socials-a">
178
-                          <ul class="list-inline">
179
-                            <li class="list-inline-item">
180
-                              <a href="#">
181
-                                <i class="fa fa-facebook" aria-hidden="true"></i>
182
-                              </a>
183
-                            </li>
184
-                            <li class="list-inline-item">
185
-                              <a href="#">
186
-                                <i class="fa fa-twitter" aria-hidden="true"></i>
187
-                              </a>
188
-                            </li>
189
-                            <li class="list-inline-item">
190
-                              <a href="#">
191
-                                <i class="fa fa-instagram" aria-hidden="true"></i>
192
-                              </a>
193
-                            </li>
194
-                            <li class="list-inline-item">
195
-                              <a href="#">
196
-                                <i class="fa fa-pinterest-p" aria-hidden="true"></i>
197
-                              </a>
198
-                            </li>
199
-                            <li class="list-inline-item">
200
-                              <a href="#">
201
-                                <i class="fa fa-dribbble" aria-hidden="true"></i>
202
-                              </a>
203
-                            </li>
204
-                          </ul>
205
-                        </div>
206
-                      </div>
207
-                    </div>
208
-                  </div>
145
+
209
                   <div class="row">
146
                   <div class="row">
210
                     <div class="col-md-12">
147
                     <div class="col-md-12">
211
                       <div class="property-contact">
148
                       <div class="property-contact">

+ 1
- 1
src/components/shared/navBar.vue Näytä tiedosto

134
               </div>
134
               </div>
135
             </li>
135
             </li>
136
 
136
 
137
-            <li class="nav-item dropdown">
137
+            <li v-if="showLogout" class="nav-item dropdown">
138
               <a
138
               <a
139
                 class="nav-link dropdown-toggle"
139
                 class="nav-link dropdown-toggle"
140
                 href="#"
140
                 href="#"

+ 8
- 8
src/components/timeshare/buy/weekListComponent.vue Näytä tiedosto

4
       <table class="table table-bordered">
4
       <table class="table table-bordered">
5
         <thead>
5
         <thead>
6
           <tr>
6
           <tr>
7
-            <th>Region</th>
7
+            <th>Province</th>
8
             <th>Resort</th>
8
             <th>Resort</th>
9
-            <th>Unit Number</th>
10
-            <th>Week Number</th>
11
-            <th>Arrival Date</th>
12
-            <th>Departure Date</th>
9
+            <th>Unit</th>
10
+            <th>Week</th>
11
+            <th>Arrival</th>
12
+            <th>Departure</th>
13
             <th>Bedrooms</th>
13
             <th>Bedrooms</th>
14
-            <th>Price</th>
15
-            <th>Status</th>
14
+            <th style="width:15%">Price</th>
15
+            <!-- <th>Status</th> -->
16
             <th>Interested</th>
16
             <th>Interested</th>
17
           </tr>
17
           </tr>
18
         </thead>
18
         </thead>
26
             <td>{{item.departureDate | toDate}}</td>
26
             <td>{{item.departureDate | toDate}}</td>
27
             <td>{{item.bedrooms}}</td>
27
             <td>{{item.bedrooms}}</td>
28
             <td>{{item.sellPrice | toCurrency}}</td>
28
             <td>{{item.sellPrice | toCurrency}}</td>
29
-            <td>{{item.status ? item.status.description : ''}}</td>
29
+            <!-- <td>{{item.status ? item.status.description : ''}}</td> -->
30
             <td>
30
             <td>
31
               <div class="col-md-12">
31
               <div class="col-md-12">
32
                 <button
32
                 <button

+ 1
- 4
src/components/timeshare/searchTimeshare.vue Näytä tiedosto

34
             </span>
34
             </span>
35
           </div>
35
           </div>
36
           <select class="form-control" name="resort" id="resort" v-model="filter.resort">
36
           <select class="form-control" name="resort" id="resort" v-model="filter.resort">
37
-            <option v-for="(item, i) in filteredResorts" :key="i" :value="item">
38
-              {
39
-              {item.resortName}}
40
-            </option>
37
+            <option v-for="(item, i) in filteredResorts" :key="i" :value="item">{{item.resortName}}</option>
41
           </select>
38
           </select>
42
           <div class="input-group-append" @click="clearFilter('resort')">
39
           <div class="input-group-append" @click="clearFilter('resort')">
43
             <span class="input-group-text cursor-pointer" style="color: #60CBEB">
40
             <span class="input-group-text cursor-pointer" style="color: #60CBEB">

+ 35
- 8
src/store/modules/user/register.js Näytä tiedosto

3
 export default {
3
 export default {
4
   namespaced: true,
4
   namespaced: true,
5
   state: {
5
   state: {
6
+    individuals: [],
7
+    agents: [],
6
     registerIndividual: {
8
     registerIndividual: {
7
       name: '',
9
       name: '',
8
       surname: '',
10
       surname: '',
29
     setIndividual(state, type) {
31
     setIndividual(state, type) {
30
       state.registerIndividual = type;
32
       state.registerIndividual = type;
31
     },
33
     },
34
+    setIndividuals(state, type) {
35
+      state.individuals = type;
36
+    },
37
+    setAgents(state, type) {
38
+      state.agents = type;
39
+    },
32
     setAgency(state, type) {
40
     setAgency(state, type) {
33
       state.registerAgency = type;
41
       state.registerAgency = type;
34
     },
42
     },
38
     addAgency(state, type) {
46
     addAgency(state, type) {
39
       state.registerAgency = type;
47
       state.registerAgency = type;
40
     },
48
     },
49
+    addAgent(state, type) {
50
+      state.registerIndividual = type;
51
+    },
41
     updateIndividual(state, type) {
52
     updateIndividual(state, type) {
42
       state.registerIndividual.find(item => item.id === type.id).username = type.username;
53
       state.registerIndividual.find(item => item.id === type.id).username = type.username;
43
       state.registerIndividual.find(item => item.id === type.id).password = type.password;
54
       state.registerIndividual.find(item => item.id === type.id).password = type.password;
82
   },
93
   },
83
   getters: {},
94
   getters: {},
84
   actions: {
95
   actions: {
85
-    // getIndividual({
86
-    //   commit,
87
-    // }, id) {
88
-    //   axios
89
-    //     .get(`/api/user/${id}`)
90
-    //     .then(result => commit('setIndividual', result.data))
91
-    //     .catch(console.error);
92
-    // },
96
+    getIndividuals({
97
+      commit,
98
+    }) {
99
+      axios
100
+        .get('/api/individual')
101
+        .then(result => commit('setIndividuals', result.data))
102
+        .catch(console.error);
103
+    },
104
+    getAgents({
105
+      commit,
106
+    }) {
107
+      axios
108
+        .get('/api/agent')
109
+        .then(result => commit('setAgents', result.data))
110
+        .catch(console.error);
111
+    },
93
     // getAgency({
112
     // getAgency({
94
     //   commit,
113
     //   commit,
95
     // }, id) {
114
     // }, id) {
115
         .then(result => commit('addAgency', result.data))
134
         .then(result => commit('addAgency', result.data))
116
         .catch(console.error);
135
         .catch(console.error);
117
     },
136
     },
137
+    saveAgent({
138
+      commit,
139
+    }, item) {
140
+      axios
141
+        .post('/api/agent', item)
142
+        .then(result => commit('addAgent', result.data))
143
+        .catch(console.error);
144
+    },
118
     // updateIndividual({
145
     // updateIndividual({
119
     //   commit,
146
     //   commit,
120
     // }, item) {
147
     // }, item) {

Loading…
Peruuta
Tallenna