fix: 修改 group重叠下方chart 的bug 以及 点击菜单panel未跳第一个panel的问题
This commit is contained in:
@@ -210,18 +210,18 @@ export default {
|
||||
delete params.param.min
|
||||
delete params.param.max
|
||||
}
|
||||
if (!params.x && !params.y) {
|
||||
params.x = this.chartLastPosition.x + params.span > 12 ? 0 : this.chartLastPosition.x
|
||||
params.y = this.chartLastPosition.y + 12
|
||||
}
|
||||
if (!params.x && !params.y && params.groupId) { // group 内的坐标需要单独计算
|
||||
params.x = 0
|
||||
params.y = 999
|
||||
}
|
||||
if (this.from === 'endpointQuery') { // endpointQuery 新增 放在最后
|
||||
if (!params.x && !params.y && this.from === 'endpointQuery') { // endpointQuery 新增 放在最后
|
||||
params.x = 0
|
||||
params.y = 999
|
||||
}
|
||||
if (!params.x && !params.y) {
|
||||
params.x = this.chartLastPosition.x + params.span > 12 ? 0 : this.chartLastPosition.x
|
||||
params.y = this.chartLastPosition.y + 12
|
||||
}
|
||||
delete params.panel
|
||||
if (params.type === 'table') {
|
||||
delete params.param.tags
|
||||
|
||||
Reference in New Issue
Block a user