|
|
@ -6,7 +6,7 @@ |
|
|
|
</section> |
|
|
|
<section class="xl:tw-col-span-2 tw-mb-[40px] xl:tw-mb-[10px]"> |
|
|
|
<Breadcrumbs class="tw-py-[7px] md:tw-py-[10px] xl:tw-py-[13px] tw-mb-4 md:tw-mb-6 xl:tw-mb-0"></Breadcrumbs> |
|
|
|
<sort :results="result" :sortType="sortType" :sortBy="sortBy" @change="updateSortBy($event)" |
|
|
|
<sort :results="result" :sortType="sortType" :sortBy="sortBy" @sort="updateSortBy($event)" |
|
|
|
@filter="$modal.show(`sidebar-filter-modal`)"></sort> |
|
|
|
</section> |
|
|
|
<section class="tw-grid tw-grid-cols-1 tw-gap-[30px] tw-auto-rows-min"> |
|
|
@ -412,9 +412,9 @@ export default { |
|
|
|
|
|
|
|
this.ads = [{ |
|
|
|
image: require('/assets/img/thems/Frame33.png') |
|
|
|
},{ |
|
|
|
}, { |
|
|
|
image: require('/assets/img/thems/Frame33.png') |
|
|
|
},{ |
|
|
|
}, { |
|
|
|
image: require('/assets/img/thems/Frame33.png') |
|
|
|
}] |
|
|
|
|
|
|
@ -493,7 +493,6 @@ export default { |
|
|
|
|
|
|
|
if (result.data.DATA.rel) { |
|
|
|
var vm = this; |
|
|
|
debugger |
|
|
|
vm.locations = result.data.DATA.rel; |
|
|
|
vm.locations = vm.locations.map((region) => { |
|
|
|
|
|
|
@ -590,7 +589,66 @@ export default { |
|
|
|
// } |
|
|
|
// }, |
|
|
|
updateSortBy(data) { |
|
|
|
this.sortBy = data; |
|
|
|
|
|
|
|
var newList = []; |
|
|
|
newList = newList.concat(this.exhibitionList); |
|
|
|
|
|
|
|
if (data == 'Show Dates') { |
|
|
|
console.log(data); |
|
|
|
newList = newList.sort((a, b) => { |
|
|
|
|
|
|
|
if (a.StartDate < b.StartDate) { |
|
|
|
return 1; |
|
|
|
} |
|
|
|
|
|
|
|
if (a.StartDate > b.StartDate) { |
|
|
|
return -1; |
|
|
|
} |
|
|
|
|
|
|
|
return 0; |
|
|
|
|
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
if (data == 'Exhibitor Numbers') { |
|
|
|
console.log(data); |
|
|
|
|
|
|
|
|
|
|
|
newList.sort((a, b) => { |
|
|
|
|
|
|
|
if (a.IsRecommend && !b.IsRecommend) { |
|
|
|
return 1 |
|
|
|
} else if (!a.IsRecommend && b.IsRecommend) { |
|
|
|
return -1 |
|
|
|
} else { |
|
|
|
return 0 |
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (data == 'Visitor Numbers') { |
|
|
|
console.log(data); |
|
|
|
newList.sort((a, b) => { |
|
|
|
|
|
|
|
return b.ExhibStatus - a.ExhibStatus; |
|
|
|
|
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
console.table(newList); |
|
|
|
// this.exhibitionList = newList; |
|
|
|
// this.exhibitionList = []; |
|
|
|
|
|
|
|
// newList.forEach(item => { |
|
|
|
|
|
|
|
// this.exhibitionList.push(item); |
|
|
|
|
|
|
|
// }) |
|
|
|
|
|
|
|
// this.exhibitionList = this.exhibitionList.concat(newList); |
|
|
|
// this.sortBy = data; |
|
|
|
}, |
|
|
|
updatePage(value) { |
|
|
|
this.page = value; |
|
|
|