|
@@ -6,12 +6,7 @@
|
6
|
6
|
</div>
|
7
|
7
|
<div class="row">
|
8
|
8
|
<div class="col-lg-6 offset-3">
|
9
|
|
- <input
|
10
|
|
- class="form-control uniSelect"
|
11
|
|
- type="text"
|
12
|
|
- placeholder="SEARCH"
|
13
|
|
- v-model="filter"
|
14
|
|
- />
|
|
9
|
+ <input class="form-control uniSelect" type="text" placeholder="SEARCH" v-model="filter" />
|
15
|
10
|
</div>
|
16
|
11
|
</div>
|
17
|
12
|
<div class="row">
|
|
@@ -71,11 +66,7 @@
|
71
|
66
|
<td>{{ item.status.description }}</td>
|
72
|
67
|
<td v-if="!item.publish">
|
73
|
68
|
<a v-on:click="Publish(item)">
|
74
|
|
- <img
|
75
|
|
- src="../../../../public/img/icons/Upload.png"
|
76
|
|
- height="25"
|
77
|
|
- width="25"
|
78
|
|
- />
|
|
69
|
+ <img src="../../../../public/img/icons/Upload.png" height="25" width="25" />
|
79
|
70
|
</a>
|
80
|
71
|
</td>
|
81
|
72
|
<td v-else>
|
|
@@ -89,20 +80,12 @@
|
89
|
80
|
</td>
|
90
|
81
|
<td>
|
91
|
82
|
<a v-on:click="Edit(item)">
|
92
|
|
- <img
|
93
|
|
- src="../../../../public/img/icons/Edit.png"
|
94
|
|
- height="25"
|
95
|
|
- width="25"
|
96
|
|
- />
|
|
83
|
+ <img src="../../../../public/img/icons/Edit.png" height="25" width="25" />
|
97
|
84
|
</a>
|
98
|
85
|
</td>
|
99
|
86
|
<td>
|
100
|
87
|
<a v-on:click="Delete(item)">
|
101
|
|
- <img
|
102
|
|
- src="../../../../public/img/icons/delete.png"
|
103
|
|
- height="25"
|
104
|
|
- width="25"
|
105
|
|
- />
|
|
88
|
+ <img src="../../../../public/img/icons/delete.png" height="25" width="25" />
|
106
|
89
|
</a>
|
107
|
90
|
</td>
|
108
|
91
|
</tr>
|
|
@@ -110,12 +93,7 @@
|
110
|
93
|
</table>
|
111
|
94
|
<div class="d-flex justify-content-between" v-if="showPager">
|
112
|
95
|
<div class="p-1">
|
113
|
|
- {{
|
114
|
|
- currentPage +
|
115
|
|
- " / " +
|
116
|
|
- PageCount +
|
117
|
|
- (" - (" + FilteredListings.length + " items)")
|
118
|
|
- }}
|
|
96
|
+ {{ currentPage + " / " + PageCount + (" - (" + FilteredListings.length + " items)") }}
|
119
|
97
|
</div>
|
120
|
98
|
<div class="p-1">
|
121
|
99
|
<BasePagination
|
|
@@ -145,11 +123,7 @@
|
145
|
123
|
<div class="p-2">
|
146
|
124
|
<div class="d-flex flex-row">
|
147
|
125
|
<div>
|
148
|
|
- <button
|
149
|
|
- v-if="sortKey !== 'id'"
|
150
|
|
- class="btn-solid-blue"
|
151
|
|
- @click="ClearSort"
|
152
|
|
- >
|
|
126
|
+ <button v-if="sortKey !== 'id'" class="btn-solid-blue" @click="ClearSort">
|
153
|
127
|
Clear Sort
|
154
|
128
|
</button>
|
155
|
129
|
</div>
|
|
@@ -172,7 +146,7 @@ import _ from "lodash";
|
172
|
146
|
|
173
|
147
|
export default {
|
174
|
148
|
components: {
|
175
|
|
- BasePagination,
|
|
149
|
+ BasePagination
|
176
|
150
|
},
|
177
|
151
|
data() {
|
178
|
152
|
return {
|
|
@@ -197,7 +171,7 @@ export default {
|
197
|
171
|
"Region",
|
198
|
172
|
"Amount",
|
199
|
173
|
"Submitted",
|
200
|
|
- "Status",
|
|
174
|
+ "Status"
|
201
|
175
|
],
|
202
|
176
|
columns: [
|
203
|
177
|
"owner",
|
|
@@ -209,8 +183,8 @@ export default {
|
209
|
183
|
"season",
|
210
|
184
|
"region",
|
211
|
185
|
"sellPrice",
|
212
|
|
- "weekStatus",
|
213
|
|
- ],
|
|
186
|
+ "weekStatus"
|
|
187
|
+ ]
|
214
|
188
|
};
|
215
|
189
|
},
|
216
|
190
|
methods: {
|
|
@@ -221,6 +195,7 @@ export default {
|
221
|
195
|
"editSave",
|
222
|
196
|
"publishWeek",
|
223
|
197
|
"unpublishWeek",
|
|
198
|
+ "deleteListing"
|
224
|
199
|
]),
|
225
|
200
|
Publish(item) {
|
226
|
201
|
// var today = new Date();
|
|
@@ -245,7 +220,7 @@ export default {
|
245
|
220
|
// this.$router.push(`/editTimeShare/${item.id}`);
|
246
|
221
|
},
|
247
|
222
|
Delete(item) {
|
248
|
|
- this.deleteProperty(item.id);
|
|
223
|
+ this.deleteListing(item.id);
|
249
|
224
|
},
|
250
|
225
|
async pageChangeHandle(value) {
|
251
|
226
|
switch (value) {
|
|
@@ -266,16 +241,16 @@ export default {
|
266
|
241
|
ClearSort() {
|
267
|
242
|
this.reverse = true;
|
268
|
243
|
this.sortKey = "id";
|
269
|
|
- },
|
|
244
|
+ }
|
270
|
245
|
},
|
271
|
246
|
computed: {
|
272
|
247
|
...mapState("propertyList", ["properties"]),
|
273
|
248
|
...mapGetters({ getNeedsVerify: "myWeeks/getNeedsVerify" }),
|
274
|
249
|
FilteredListings() {
|
275
|
250
|
if (this.filter) {
|
276
|
|
- const list = _.filter(this.getNeedsVerify, (item) =>
|
|
251
|
+ const list = _.filter(this.getNeedsVerify, item =>
|
277
|
252
|
Object.values(item).some(
|
278
|
|
- (i) =>
|
|
253
|
+ i =>
|
279
|
254
|
JSON.stringify(i)
|
280
|
255
|
.toLowerCase()
|
281
|
256
|
.indexOf(this.filter.toLowerCase()) > -1
|
|
@@ -288,9 +263,7 @@ export default {
|
288
|
263
|
},
|
289
|
264
|
PageCount() {
|
290
|
265
|
return this.visibleItemsPerPageCount !== 0
|
291
|
|
- ? Math.ceil(
|
292
|
|
- this.FilteredListings.length / this.visibleItemsPerPageCount
|
293
|
|
- )
|
|
266
|
+ ? Math.ceil(this.FilteredListings.length / this.visibleItemsPerPageCount)
|
294
|
267
|
: 1;
|
295
|
268
|
},
|
296
|
269
|
DisplayItems() {
|
|
@@ -304,7 +277,7 @@ export default {
|
304
|
277
|
},
|
305
|
278
|
SortDirection() {
|
306
|
279
|
return this.reverse ? "desc" : "asc";
|
307
|
|
- },
|
|
280
|
+ }
|
308
|
281
|
},
|
309
|
282
|
created() {
|
310
|
283
|
this.getItems(this.userId).then(() => {
|
|
@@ -327,9 +300,9 @@ export default {
|
327
|
300
|
if (val != oldVal) {
|
328
|
301
|
this.currentPage = 1;
|
329
|
302
|
}
|
330
|
|
- },
|
331
|
|
- },
|
332
|
|
- },
|
|
303
|
+ }
|
|
304
|
+ }
|
|
305
|
+ }
|
333
|
306
|
};
|
334
|
307
|
</script>
|
335
|
308
|
|