From ad9c59d9317cb6feaa02945d379c0b7a1de3fb6e Mon Sep 17 00:00:00 2001 From: dengbf Date: Thu, 5 Jun 2025 14:21:39 +0800 Subject: [PATCH] =?UTF-8?q?-=20[=E5=85=B3=E8=81=94]=20#[1436270830518272]?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E5=8C=96=E4=BD=9C=E4=B8=9Atarget=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E7=9A=84=E9=A1=B5=E9=9D=A2=E4=BC=98=E5=8C=96=20http:/?= =?UTF-8?q?/192.168.0.96:8090/demo/rdm.html#/story-detail/939050947543040/?= =?UTF-8?q?939050947543042/1436270830518272?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../detail/jobDetail/phase/node-list.vue | 248 ++++++++++-------- .../detail/jobDetail/phase/sqlfile-list.vue | 3 + 2 files changed, 137 insertions(+), 114 deletions(-) diff --git a/src/views/pages/autoexec/detail/jobDetail/phase/node-list.vue b/src/views/pages/autoexec/detail/jobDetail/phase/node-list.vue index 415087ba..33cc8819 100644 --- a/src/views/pages/autoexec/detail/jobDetail/phase/node-list.vue +++ b/src/views/pages/autoexec/detail/jobDetail/phase/node-list.vue @@ -80,120 +80,122 @@ - - - - - - - - - - + + + { this.nodeData = res.Return; + if (this.isFirst) { + this.getTableHeight(); + } const nodeList = res.Return.tbodyList; if (nodeList && nodeList.length > 0) { const nodeIdList = []; @@ -596,6 +603,19 @@ export default { this.nodeTitle = title || row.host + (row.port ? ':' + row.port : ''); this.currentNodeId = row.id; this.isNodeDetailDialogShow = true; + }, + getTableHeight() { + this.isFirst = false; + const windowHeight = document.documentElement.clientHeight - 36; + this.$nextTick(() => { + if (this.$refs.tableBox) { + let top = this.$refs.tableBox.getBoundingClientRect().top; + const tableHeight = windowHeight - top; + if (this.tableHeight < tableHeight) { + this.tableHeight = tableHeight; + } + } + }); } }, computed: { diff --git a/src/views/pages/autoexec/detail/jobDetail/phase/sqlfile-list.vue b/src/views/pages/autoexec/detail/jobDetail/phase/sqlfile-list.vue index 520b5a19..9d6e9964 100644 --- a/src/views/pages/autoexec/detail/jobDetail/phase/sqlfile-list.vue +++ b/src/views/pages/autoexec/detail/jobDetail/phase/sqlfile-list.vue @@ -107,6 +107,9 @@ export default { } this.$api.autoexec.job.getSqlListByPhase(this.searchParam).then(res => { this.nodeData = res.Return; + if (this.isFirst) { + this.getTableHeight(); + } const nodeList = res.Return.tbodyList; if (nodeList && nodeList.length > 0) { const nodeIdList = []; -- Gitee