From e309dbbb906fbe00a942d9bd3c655cfdcabc3ce6 Mon Sep 17 00:00:00 2001 From: "851673013@qq.com" <851673013@qq.com> Date: Sat, 25 Jun 2022 15:08:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9F=BA=E7=A1=80=E8=AE=BE=E6=96=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/src/views/home/infrastructurePage.vue | 260 +++++++++++--------- 1 file changed, 144 insertions(+), 116 deletions(-) diff --git a/front/src/views/home/infrastructurePage.vue b/front/src/views/home/infrastructurePage.vue index c8b3c1fe..77619779 100644 --- a/front/src/views/home/infrastructurePage.vue +++ b/front/src/views/home/infrastructurePage.vue @@ -8,7 +8,7 @@ + > + + @@ -115,20 +120,41 @@ } let clickList = ref([]) //存储点击的tab init() + //表格的高度 + let tableHeight = ref('600') //tab切换点击事件 - const tabClick = (indexFather, name) => { + const tabClick = (indexFather, name, fatherName) => { if (clickList.value[indexFather].content.indexOf(name) != -1) { - // debugger + debugger + if (fatherName == '视频资源') { + debugger + tableHeight.value = 330 + } else if (fatherName == '云资源') { + debugger + tableHeight.value = 600 + } else if (fatherName == '感知资源') { + debugger + tableHeight.value = 330 + } clickList.value[indexFather].content.splice( clickList.value[indexFather].content.indexOf(name), 1 ) } else { - // debugger + debugger + if (fatherName == '视频资源') { + debugger + tableHeight.value = 330 + } else if (fatherName == '云资源') { + debugger + tableHeight.value = 600 + } else if (fatherName == '感知资源') { + debugger + tableHeight.value = 330 + } clickList.value[indexFather].content[0] = name } console.log('clickList.value', clickList.value) - // debugger } const name = ref('') // 搜索框 @@ -294,129 +320,131 @@ }