order container by loading date

This commit is contained in:
omair saleh
2021-11-02 21:40:35 +08:00
parent f5ea06e3fe
commit c15f67e304
+1 -1
View File
@@ -16,7 +16,7 @@
</div>
<create-load-container-form-component :section="'containerListSection'" v-show="$store.getters.isShowing('createContainerFormSection')"></create-load-container-form-component>
<list-component section="containerListSection" :endpoint="route('api.packing_list.container.list')" :options="{'per_page': 5, 'with_packing_lists': true, order_by: {column: 'created_at', DESC: true}}" v-show="!$store.getters.isShowing('createContainerFormSection')">
<list-component section="containerListSection" :endpoint="route('api.packing_list.container.list')" :options="{'per_page': 5, 'with_packing_lists': true, order_by: {column: 'loading_date', DESC: true}}" v-show="!$store.getters.isShowing('createContainerFormSection')">
<template slot="list" slot-scope="{data}">
<container-component :data="data"></container-component>
</template>