get请求
var _this=this;
var data=_this.query;
_this.$axios({
method: 'get',
url:"http://127.0.0.1:9999/springboot/getSubscriberList",
params: data,
dataType: "json",
contentType: "application/json",
}).then(function(response){
//alert(res.data.data);
var data=response.data.data;
_this.tableData = data.resultList;
_this.pageTotal = data.total;
})
POST请求
var _this=this;
var data=_this.query;
_this.$axios({
method: 'post',
url:"http://127.0.0.1:9999/springboot/getSubscriberList",
data: data,
dataType: "json",
contentType: "application/json",
}).then(function(response){
//alert(res.data.data);
var data=response.data.data;
_this.tableData = data.resultList;
_this.pageTotal = data.total;
})