matfish2 / vue-tables

Vue.js grid components
https://www.npmjs.com/package/vue-tables
MIT License
357 stars 76 forks source link

Query parameters are not passed to the server #64

Closed roed closed 8 years ago

roed commented 8 years ago

The query parameters are not passed to the backend in our project. So if you do any filtering/searching/paginating the data is not passed to the backend.

For the server-table, you have in your package.json: "vue-resource": "^0.7.4" We use: 0.9.1, which matches your requirement

If we change the following line in file: lib/methods/get-data.js

return this.$http.get(this.url, data );
//to
return this.$http.get(this.url, { params: data} );

It works. The release list for vue-resource states that there is a breaking change that caused this in version 0.9: https://github.com/vuejs/vue-resource/releases

I don't know what you want to do with this, but clearly your library is affected by this breaking change.

matfish2 commented 8 years ago

Thanks. I've updated the package accordingly.