update cards view API service

This commit is contained in:
Henry Jordan
2021-07-08 20:20:05 +00:00
parent bfb957ea5a
commit 2364ecbe99
5 changed files with 150 additions and 37 deletions

View File

@@ -0,0 +1,41 @@
export default {
data() {
let that = this;
return {
config: {
page: 1
},
data: []
}
},
mounted: function () {
console.log("jonas");
this.getData();
},
methods: {
/**
* Get data similar to vue Table
*/
getData() {
let options = _.extend({}, this.config, this.options),
that = this;
console.log("GETTTTTTTTTT");
this.options.requestFunction(options)
.then((data) => {
console.log("jonas vue car view");
that.data = data.data;
})
.catch(() => {
});
},
/**
* Get data when press the button more view
*/
viewMore() {
}
}
}