Commit a1e63816 authored by xinzhedeai's avatar xinzhedeai

overview 数据切换问题

parent 38b10e76
// var ServiceURL = 'http://192.168.3.216:9002'; // var ServiceURL = 'http://192.168.3.216:9002';
// var ServiceURL = 'http://192.168.3.250:9103'; // var ServiceURL = 'http://192.168.3.250:9103';
// var ServiceURL = 'http://gqfhq.gemho.cn:9103'; // var ServiceURL = 'http://gqfhq.gemho.cn:9103'; // 正式环境
var ServiceURL = 'http://192.168.3.226:9103' var ServiceURL = 'http://192.168.3.226:9103' // 测试环境
......
...@@ -619,10 +619,22 @@ ...@@ -619,10 +619,22 @@
if(~~this.activeIndex === 1 || ~~this.activeIndex === 2 || ~~this.activeIndex === 3){ if(~~this.activeIndex === 1 || ~~this.activeIndex === 2 || ~~this.activeIndex === 3){
this.searchQuery4panel1 = '' // 清空公司搜索框 this.searchQuery4panel1 = '' // 清空公司搜索框
// 重置分页条件查询信息
this.totalCount4panel1 = 0 // 总条目数
this.currentPage4panel1 = 0 // 当前页码
this.pageSize4panel1 = 10 // 每页显示的条目数量
this.getData4panel1() this.getData4panel1()
}else if(~~this.activeIndex === 0){ }else if(~~this.activeIndex === 0){
this.totalCount4panel0 = 0 // 总条目数
this.currentPage4panel0 = 0 // 当前页码
this.pageSize4panel0 = 10 // 每页显示的条目数量
this.getData4panel0() this.getData4panel0()
}else if(~~this.activeIndex === 4){ }else if(~~this.activeIndex === 4){
// 重置分页条件查询信息
this.totalCount4panel4 = 0 // 总条目数
this.currentPage4panel4 = 0 // 当前页码
this.pageSize4panel4 = 10 // 每页显示的条目数量
this.getData4panel4() this.getData4panel4()
} }
...@@ -662,6 +674,7 @@ ...@@ -662,6 +674,7 @@
} }
overviewApi overviewApi
.getData4enterprise({ .getData4enterprise({
// 之所以减一操作时因为后台page从0开始,而组件分页时1开始。
page: this.currentPage4panel1 > 0 ? this.currentPage4panel1-1 : this.currentPage4panel1, page: this.currentPage4panel1 > 0 ? this.currentPage4panel1-1 : this.currentPage4panel1,
size: this.pageSize4panel1, size: this.pageSize4panel1,
incubatorId: this.incubatorId, incubatorId: this.incubatorId,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment