From 03c4325919c4407753fb8d8f61088b64143d72ab Mon Sep 17 00:00:00 2001 From: gaoyuanwei <2826352639@qq.com> Date: Sat, 25 Jun 2022 15:26:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9F=BA=E7=A1=80=E8=AE=BE=E6=96=BD-=E9=80=89?= =?UTF-8?q?=E4=B8=AD=E6=95=B0=E9=87=8F=E7=BB=91=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/src/views/home/infrastructurePage.vue | 233 ++++++++++---------- 1 file changed, 112 insertions(+), 121 deletions(-) diff --git a/front/src/views/home/infrastructurePage.vue b/front/src/views/home/infrastructurePage.vue index 77619779..cd59abab 100644 --- a/front/src/views/home/infrastructurePage.vue +++ b/front/src/views/home/infrastructurePage.vue @@ -29,7 +29,7 @@

已选 - 22 + {{ allClick.length }}

@@ -79,12 +79,7 @@ selectedRowKeys: selectedRowKeys, onChange: onSelectChange, }" - > - - + > @@ -125,15 +120,11 @@ //tab切换点击事件 const tabClick = (indexFather, name, fatherName) => { if (clickList.value[indexFather].content.indexOf(name) != -1) { - 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( @@ -141,15 +132,11 @@ 1 ) } else { - 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 @@ -296,12 +283,16 @@ key: 'address', }, ]) - // const selectedRowKeys = + const allClick = ref([]) + const onSelectChange = (selectedRowKeys) => { + console.log('hahhahah', selectedRowKeys) + allClick.value = selectedRowKeys + } const pagination = ref({ total: 0, pageSize: 10, //每页中显示10条数据 showSizeChanger: true, - pageSizeOptions: ['5', '15', '30', '45'], //每页中显示的数据 + pageSizeOptions: ['5', '10', '15', '20'], //每页中显示的数据 }) const queryParam = ref({ page: 1, //第几页 @@ -320,131 +311,131 @@ }