mirror of
https://github.com/dataease/dataease.git
synced 2025-02-25 12:03:05 +08:00
Merge pull request #3883 from dataease/pr@dev@feat_table_page
feat(视图): 部分数据源不支持直连分页,使用前端分页
This commit is contained in:
commit
164939cd90
@ -1108,4 +1108,4 @@ export const CHART_FONT_LETTER_SPACE = [
|
|||||||
{ name: '10px', value: '10' }
|
{ name: '10px', value: '10' }
|
||||||
]
|
]
|
||||||
|
|
||||||
export const NOT_SUPPORT_PAGE_DATASET = ['kylin', 'sqlServer', 'es', 'presto']
|
export const NOT_SUPPORT_PAGE_DATASET = ['kylin', 'sqlServer', 'es', 'presto', 'ds_doris', 'StarRocks']
|
||||||
|
@ -455,7 +455,7 @@ export default {
|
|||||||
},
|
},
|
||||||
pageChange(val) {
|
pageChange(val) {
|
||||||
this.currentPage.pageSize = 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)
|
this.$emit('onPageChange', this.currentPage)
|
||||||
} else {
|
} else {
|
||||||
this.initData()
|
this.initData()
|
||||||
@ -465,7 +465,7 @@ export default {
|
|||||||
|
|
||||||
pageClick(val) {
|
pageClick(val) {
|
||||||
this.currentPage.page = 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)
|
this.$emit('onPageChange', this.currentPage)
|
||||||
} else {
|
} else {
|
||||||
this.initData()
|
this.initData()
|
||||||
|
@ -444,7 +444,7 @@ export default {
|
|||||||
|
|
||||||
pageChange(val) {
|
pageChange(val) {
|
||||||
this.currentPage.pageSize = 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)
|
this.$emit('onPageChange', this.currentPage)
|
||||||
} else {
|
} else {
|
||||||
this.init()
|
this.init()
|
||||||
@ -453,7 +453,7 @@ export default {
|
|||||||
|
|
||||||
pageClick(val) {
|
pageClick(val) {
|
||||||
this.currentPage.page = 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)
|
this.$emit('onPageChange', this.currentPage)
|
||||||
} else {
|
} else {
|
||||||
this.init()
|
this.init()
|
||||||
|
Loading…
Reference in New Issue
Block a user