routes - Laravel 5.4 vue and url parameters -
i new laravel , vue, , i'm lost not sure how ask question, if it's not clear please let me know.
i have index.blade.php file calls vue component this:
<order-grid></order-grid>
in vue file create tabs jquery tabs:
in template:
<div id="tabs-nohdr" class="tabs ui-tabs ui-widget ui-widget-content ui-corner-all"> <ul> <li v-for="key in tabcolumns" @click="setstatus(key)" v-bind:class="{active: sortkey == key}"><a href="#tabs-1">{{ key }}</a></li> </ul> export default { mounted: function () { this.loaddata(); }, data: function () { return { query: '', gridcolumns: ['id', 'name', 'shipping method', 'created'], tabcolumns: ['new', 'paid', 'closed'], ...
i call default active tab, when click on link, example:
<a href="/orders/new">show new orders</a>
in routes/web have:
route::get('api/order-data', 'apicontroller@orderdata');
the controller function:
public function orderdata(request $request) { return gridquery::senddata($request, new orderquery()); }
how send active tab parameter vue file , fetch in vue file?
Comments
Post a Comment