George Williams 5 yıl önce
ebeveyn
işleme
063bb84b58

BIN
public/img/Article.jpg Dosyayı Görüntüle


BIN
public/img/Poll.png Dosyayı Görüntüle


BIN
public/img/Purchasing.jpg Dosyayı Görüntüle


BIN
public/img/Tenant.jpg Dosyayı Görüntüle


BIN
public/img/TopTip.png Dosyayı Görüntüle


+ 95
- 13
src/components/admin/status/userManagementPage.vue Dosyayı Görüntüle

@@ -1,5 +1,5 @@
1 1
 <template>
2
-  <!-- <section class="intro-single"> -->
2
+  <!-- eslint-disable max-len -->
3 3
   <div class="container">
4 4
     <br />
5 5
     <br />
@@ -7,34 +7,116 @@
7 7
     <br />
8 8
     <div class="row">
9 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 10
         <div class="title-box-d">
14 11
           <h1 class="title-d" style="text-align:left; font-size: 250%">User Management</h1>
15 12
         </div>
16 13
         <br />
17 14
       </div>
18 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 92
     </div>
93
+    <br />
22 94
   </div>
23
-  <!-- </section> -->
24 95
 </template>
25 96
 <script>
26 97
 import { mapState, mapActions } from 'vuex';
98
+import axios from 'axios';
27 99
 
28 100
 export default {
29 101
   name: 'userManagementPage',
30
-  created() {
31
-    this.getuserManagementPage();
32
-  },
33
-  computed: {
34
-    ...mapState('status', ['userManagementPage']),
102
+  data() {
103
+    return {};
35 104
   },
36 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 122
 </script>

+ 20
- 20
src/components/home/newsSection.vue Dosyayı Görüntüle

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

+ 1
- 64
src/components/property/propertyPage.vue Dosyayı Görüntüle

@@ -142,70 +142,7 @@
142 142
                       </div>
143 143
                     </div>
144 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 146
                   <div class="row">
210 147
                     <div class="col-md-12">
211 148
                       <div class="property-contact">

+ 1
- 1
src/components/shared/navBar.vue Dosyayı Görüntüle

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

+ 8
- 8
src/components/timeshare/buy/weekListComponent.vue Dosyayı Görüntüle

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

+ 1
- 4
src/components/timeshare/searchTimeshare.vue Dosyayı Görüntüle

@@ -34,10 +34,7 @@
34 34
             </span>
35 35
           </div>
36 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 38
           </select>
42 39
           <div class="input-group-append" @click="clearFilter('resort')">
43 40
             <span class="input-group-text cursor-pointer" style="color: #60CBEB">

+ 35
- 8
src/store/modules/user/register.js Dosyayı Görüntüle

@@ -3,6 +3,8 @@ import axios from 'axios';
3 3
 export default {
4 4
   namespaced: true,
5 5
   state: {
6
+    individuals: [],
7
+    agents: [],
6 8
     registerIndividual: {
7 9
       name: '',
8 10
       surname: '',
@@ -29,6 +31,12 @@ export default {
29 31
     setIndividual(state, type) {
30 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 40
     setAgency(state, type) {
33 41
       state.registerAgency = type;
34 42
     },
@@ -38,6 +46,9 @@ export default {
38 46
     addAgency(state, type) {
39 47
       state.registerAgency = type;
40 48
     },
49
+    addAgent(state, type) {
50
+      state.registerIndividual = type;
51
+    },
41 52
     updateIndividual(state, type) {
42 53
       state.registerIndividual.find(item => item.id === type.id).username = type.username;
43 54
       state.registerIndividual.find(item => item.id === type.id).password = type.password;
@@ -82,14 +93,22 @@ export default {
82 93
   },
83 94
   getters: {},
84 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 112
     // getAgency({
94 113
     //   commit,
95 114
     // }, id) {
@@ -115,6 +134,14 @@ export default {
115 134
         .then(result => commit('addAgency', result.data))
116 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 145
     // updateIndividual({
119 146
     //   commit,
120 147
     // }, item) {

Loading…
İptal
Kaydet