From 51f0e83b3a68d58257ed2ca3ecc2df82e430a009 Mon Sep 17 00:00:00 2001 From: lijiahang Date: Fri, 24 Nov 2023 14:42:58 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=B8=BB=E6=9C=BA=E5=88=86=E7=BB=84?= =?UTF-8?q?=E6=8E=88=E6=9D=83.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- orion-ops-ui/package.json | 2 +- orion-ops-ui/pnpm-lock.yaml | 14 +- orion-ops-ui/src/assets/style/global.less | 4 + .../src/components/app/navbar/index.vue | 8 +- orion-ops-ui/src/layout/default-layout.vue | 12 +- .../components/host-group-view-role-grant.vue | 44 ++--- .../components/host-group-view-user-grant.vue | 178 +++++++++++++++++- .../asset/host-group/components/host-list.vue | 113 +++++++++++ .../host-group/components/host-transfer.vue | 2 +- .../src/views/asset/host-group/index.vue | 4 + 10 files changed, 332 insertions(+), 49 deletions(-) create mode 100644 orion-ops-ui/src/views/asset/host-group/components/host-list.vue diff --git a/orion-ops-ui/package.json b/orion-ops-ui/package.json index fe1fe5e8..d09ba304 100644 --- a/orion-ops-ui/package.json +++ b/orion-ops-ui/package.json @@ -29,7 +29,7 @@ ] }, "dependencies": { - "@arco-design/web-vue": "^2.44.7", + "@arco-design/web-vue": "^2.53.0", "@dangojs/a-query-header": "^0.0.31", "@sanqi377/arco-vue-icon-picker": "^1.0.7", "@vueuse/core": "^9.3.0", diff --git a/orion-ops-ui/pnpm-lock.yaml b/orion-ops-ui/pnpm-lock.yaml index 94eede73..be8dcf9f 100644 --- a/orion-ops-ui/pnpm-lock.yaml +++ b/orion-ops-ui/pnpm-lock.yaml @@ -11,11 +11,11 @@ overrides: dependencies: '@arco-design/web-vue': - specifier: ^2.44.7 - version: 2.51.1(vue@3.3.4) + specifier: ^2.53.0 + version: 2.53.0(vue@3.3.4) '@dangojs/a-query-header': specifier: ^0.0.31 - version: 0.0.31(@arco-design/web-vue@2.51.1)(@dangojs/digitforce-ui-utils@0.0.9)(lodash@4.17.21)(vue@3.3.4) + version: 0.0.31(@arco-design/web-vue@2.53.0)(@dangojs/digitforce-ui-utils@0.0.9)(lodash@4.17.21)(vue@3.3.4) '@sanqi377/arco-vue-icon-picker': specifier: ^1.0.7 version: 1.0.7(vue@3.3.4) @@ -224,8 +224,8 @@ packages: color: 3.2.1 dev: false - /@arco-design/web-vue@2.51.1(vue@3.3.4): - resolution: {integrity: sha512-YsNF1hrl700rshZPrJ7haNEN6pc3dQwpLbYzpE49jrLdF0mALGU9aP2A8q0FNPH2Rt4rxvxkw1o0gsL7my8H+Q==} + /@arco-design/web-vue@2.53.0(vue@3.3.4): + resolution: {integrity: sha512-IQtxtIJNmH038EdMecAdeLVayr4r+Txnk51RIVAz28PpdEdjf4J0wnLyirDb41YB0fV7eubZOFNodq5uTYqPTA==} peerDependencies: vue: ^3.1.0 dependencies: @@ -720,7 +720,7 @@ packages: postcss-selector-parser: 6.0.13 dev: true - /@dangojs/a-query-header@0.0.31(@arco-design/web-vue@2.51.1)(@dangojs/digitforce-ui-utils@0.0.9)(lodash@4.17.21)(vue@3.3.4): + /@dangojs/a-query-header@0.0.31(@arco-design/web-vue@2.53.0)(@dangojs/digitforce-ui-utils@0.0.9)(lodash@4.17.21)(vue@3.3.4): resolution: {integrity: sha512-hXLAU8oIQ1ULDY+qXKoKstqo3/m4HTjXcxNaFbPatTVMHwox4tBAIc5Nox1crvlWkNagUyk7PpnQuzLH73j9AQ==} peerDependencies: '@arco-design/web-vue': ^2.47.1 @@ -728,7 +728,7 @@ packages: lodash: ^4.17.21 vue: ^3.3.2 dependencies: - '@arco-design/web-vue': 2.51.1(vue@3.3.4) + '@arco-design/web-vue': 2.53.0(vue@3.3.4) '@dangojs/digitforce-ui-utils': 0.0.9 lodash: 4.17.21 vue: 3.3.4 diff --git a/orion-ops-ui/src/assets/style/global.less b/orion-ops-ui/src/assets/style/global.less index 1f8f304b..b09a8482 100644 --- a/orion-ops-ui/src/assets/style/global.less +++ b/orion-ops-ui/src/assets/style/global.less @@ -90,6 +90,10 @@ body { } } +.arco-trigger-menu { + user-select: none; +} + .arco-dropdown-option-content { user-select: none; } diff --git a/orion-ops-ui/src/components/app/navbar/index.vue b/orion-ops-ui/src/components/app/navbar/index.vue index e0a3f645..f5c491f3 100644 --- a/orion-ops-ui/src/components/app/navbar/index.vue +++ b/orion-ops-ui/src/components/app/navbar/index.vue @@ -6,6 +6,7 @@ logo - + {{ nickname }}