Unverified 提交 c0fcd339 authored 作者: 王嘉豪's avatar 王嘉豪 提交者: GitHub

Merge pull request #1356 from dataease/v1.5

V1.5
...@@ -4,6 +4,7 @@ export function tree(data) { ...@@ -4,6 +4,7 @@ export function tree(data) {
return request({ return request({
url: '/api/panelView/tree', url: '/api/panelView/tree',
method: 'post', method: 'post',
timeout: 30000,
data data
}) })
} }
...@@ -12,6 +13,7 @@ export function viewsWithIds(data) { ...@@ -12,6 +13,7 @@ export function viewsWithIds(data) {
return request({ return request({
url: '/api/panelView/viewsWithIds', url: '/api/panelView/viewsWithIds',
method: 'post', method: 'post',
timeout: 30000,
loading: true, loading: true,
data data
}) })
...@@ -21,6 +23,7 @@ export function findOne(id) { ...@@ -21,6 +23,7 @@ export function findOne(id) {
return request({ return request({
url: '/api/panelView/findOne/' + id, url: '/api/panelView/findOne/' + id,
method: 'get', method: 'get',
timeout: 30000,
loading: true loading: true
}) })
} }
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
<div <div
id="canvasInfoTemp" id="canvasInfoTemp"
ref="canvasInfoTemp" ref="canvasInfoTemp"
:style="{height:mainHeight}"
class="main-class" class="main-class"
@mouseup="deselectCurComponent" @mouseup="deselectCurComponent"
@mousedown="handleMouseDown" @mousedown="handleMouseDown"
...@@ -153,8 +154,14 @@ export default { ...@@ -153,8 +154,14 @@ export default {
erd.listenTo(mainDom, element => { erd.listenTo(mainDom, element => {
_this.$nextTick(() => { _this.$nextTick(() => {
_this.restore() _this.restore()
})
})
// 监听div变动事件
const tempCanvas = document.getElementById('canvasInfoTemp')
erd.listenTo(tempCanvas, element => {
_this.$nextTick(() => {
// 将mainHeight 修改为px 临时解决html2canvas 截图不全的问题 // 将mainHeight 修改为px 临时解决html2canvas 截图不全的问题
_this.mainHeight = mainDom.scrollHeight + 'px!important' _this.mainHeight = tempCanvas.scrollHeight + 'px!important'
}) })
}) })
eventBus.$on('openChartDetailsDialog', this.openChartDetailsDialog) eventBus.$on('openChartDetailsDialog', this.openChartDetailsDialog)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论