vue全局函数使用不同对象的属性

为了简化开发,我把常用到的函数进行了封装,里面需要用到调用者的属性,然而调用时获取不到属性
问题相关代码,请勿粘贴截图
function global_selectByPage(param){
      var _this = this;
      axios({
        method: "post",
        url: "http://localhost:80//select?currentPage="+this.currentPage+"&pageSize=" + this.pageSize,
        data:this.param
      }).then(function (resp) {
        _this.tableData = resp.data.rows;
        _this.totalCount = resp.data.totalCount;
      })
}
运行结果及报错内容

调用时获取不到this.currentPage和 this.pageSize,

我的解答思路和尝试过的方法
我想要达到的结果

作用域的问题。
你先把你调用的地方代码贴出来。

https://www.cnblogs.com/mengjingmei/p/9401808.html