forked from github/dataease
feat(视图): 部分数据源不支持直连分页,使用前端分页
This commit is contained in:
parent
ece2c21509
commit
badb755500
@ -455,7 +455,7 @@ export default {
|
||||
},
|
||||
pageChange(val) {
|
||||
this.currentPage.pageSize = val
|
||||
if (this.chart.datasetMode === 0) {
|
||||
if (this.chart.datasetMode === 0 && !NOT_SUPPORT_PAGE_DATASET.includes(this.chart.datasourceType)) {
|
||||
this.$emit('onPageChange', this.currentPage)
|
||||
} else {
|
||||
this.initData()
|
||||
@ -465,7 +465,7 @@ export default {
|
||||
|
||||
pageClick(val) {
|
||||
this.currentPage.page = val
|
||||
if (this.chart.datasetMode === 0) {
|
||||
if (this.chart.datasetMode === 0 && !NOT_SUPPORT_PAGE_DATASET.includes(this.chart.datasourceType)) {
|
||||
this.$emit('onPageChange', this.currentPage)
|
||||
} else {
|
||||
this.initData()
|
||||
|
@ -444,7 +444,7 @@ export default {
|
||||
|
||||
pageChange(val) {
|
||||
this.currentPage.pageSize = val
|
||||
if (this.chart.datasetMode === 0) {
|
||||
if (this.chart.datasetMode === 0 && !NOT_SUPPORT_PAGE_DATASET.includes(this.chart.datasourceType)) {
|
||||
this.$emit('onPageChange', this.currentPage)
|
||||
} else {
|
||||
this.init()
|
||||
@ -453,7 +453,7 @@ export default {
|
||||
|
||||
pageClick(val) {
|
||||
this.currentPage.page = val
|
||||
if (this.chart.datasetMode === 0) {
|
||||
if (this.chart.datasetMode === 0 && !NOT_SUPPORT_PAGE_DATASET.includes(this.chart.datasourceType)) {
|
||||
this.$emit('onPageChange', this.currentPage)
|
||||
} else {
|
||||
this.init()
|
||||
|
Loading…
Reference in New Issue
Block a user