forked from github/dataease
fix(视图-表格): 表格组合后点击页面下钻。
This commit is contained in:
parent
cd35fe45e8
commit
0e602170e2
@ -10,7 +10,8 @@ import {
|
||||
shallowRef,
|
||||
ShallowRef,
|
||||
toRaw,
|
||||
toRefs
|
||||
toRefs,
|
||||
watch
|
||||
} from 'vue'
|
||||
import { getData } from '@/api/chart'
|
||||
import chartViewManager from '@/views/chart/components/js/panel'
|
||||
@ -172,7 +173,7 @@ const setupPage = (chart: ChartObj, resetPageInfo?: boolean) => {
|
||||
}
|
||||
}
|
||||
|
||||
let scrollTimer
|
||||
let scrollTimer: number
|
||||
let scrollTop = 0
|
||||
const initScroll = () => {
|
||||
clearInterval(scrollTimer)
|
||||
@ -216,7 +217,7 @@ const showPage = computed(() => {
|
||||
|
||||
const handleCurrentChange = pageNum => {
|
||||
let extReq = { goPage: pageNum }
|
||||
if (chartExtRequest) {
|
||||
if (chartExtRequest.value) {
|
||||
extReq = { ...extReq, ...chartExtRequest.value }
|
||||
}
|
||||
const chart = { ...view.value, chartExtRequest: extReq }
|
||||
@ -317,7 +318,7 @@ const resize = (width, height) => {
|
||||
}
|
||||
const preSize = [0, 0]
|
||||
const TOLERANCE = 1
|
||||
let resizeObserver
|
||||
let resizeObserver: ResizeObserver
|
||||
onMounted(() => {
|
||||
isDataEaseBi.value = !!window.DataEaseBi
|
||||
resizeObserver = new ResizeObserver(([entry] = []) => {
|
||||
|
@ -270,8 +270,8 @@ const initTitle = () => {
|
||||
}
|
||||
}
|
||||
|
||||
const drillJump = index => {
|
||||
state.drillClickDimensionList = state.drillClickDimensionList.slice(0, index)
|
||||
const drillJump = (index: number) => {
|
||||
state.drillClickDimensionList.splice(index)
|
||||
view.value.chartExtRequest = filter()
|
||||
calcData(view.value)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user