From 15f324cdc7e030e3c93913ff08c28e9cb0c5b756 Mon Sep 17 00:00:00 2001 From: chenjinsong <523037378@qq.com> Date: Tue, 23 Jun 2020 18:46:52 +0800 Subject: [PATCH] =?UTF-8?q?NEZ-329=20feat:=20asset=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E7=9A=84terminal=E6=8C=89=E9=92=AE=E6=94=B9=E4=B8=BA=E4=B8=8B?= =?UTF-8?q?=E6=8B=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/assets/stylus/main.scss | 3 + .../src/components/page/asset/asset.vue | 60 +++++-------------- 2 files changed, 18 insertions(+), 45 deletions(-) diff --git a/nezha-fronted/src/assets/stylus/main.scss b/nezha-fronted/src/assets/stylus/main.scss index d6028d3a0..d29b543a0 100644 --- a/nezha-fronted/src/assets/stylus/main.scss +++ b/nezha-fronted/src/assets/stylus/main.scss @@ -277,6 +277,9 @@ li{ border-bottom-right-radius: 0; border-top-right-radius: 0; } +.gray-filter { + filter: opacity(50%); +} .nz-btn-group .nz-btn:last-child:not(:first-child) { border-bottom-left-radius: 0; border-top-left-radius: 0; diff --git a/nezha-fronted/src/components/page/asset/asset.vue b/nezha-fronted/src/components/page/asset/asset.vue index 4bb336642..58de87260 100644 --- a/nezha-fronted/src/components/page/asset/asset.vue +++ b/nezha-fronted/src/components/page/asset/asset.vue @@ -74,9 +74,6 @@ @@ -122,7 +119,6 @@
{{scope.row.state==1 ? $t('asset.createAssetTab.inStock') : $t('asset.createAssetTab.notInStock')}}
-
- - - - - - {{scope.row.idc.name}}
@@ -201,9 +171,15 @@ class="el-icon-delete">   - - + + + + + {{account.protocol}} + + + @@ -584,20 +560,14 @@ this.$store.commit('setHeaderTable', data); this.tablelable = data; }, - cli(id,host,accounts){ - let port = ''; - let accountId = ''; - if(accounts && accounts.length>0 && accounts[0].port){ - port = accounts[0].port; - accountId = accounts[0].id; - } + cli([id,host,account]){ const consoleParam = { - id:id, - host:host, - accountId:accountId, - port:port, + id: id, + host: host, + accountId: account.id, + port: account.port, } - this.$store.commit('addConsole',consoleParam); + this.$store.commit('addConsole', consoleParam); //this.$refs.webSsh.show(id,host,accountId,port); }, jumpToAlertMsg(asset) {