From e2e4e334e6e70dbfb10cda6dfc3e49df8e744b15 Mon Sep 17 00:00:00 2001 From: Austin <1344583166@qq.com> Date: Tue, 24 Sep 2024 10:12:46 +0800 Subject: [PATCH] =?UTF-8?q?fix(frontend):=20=E5=B9=B4=E5=BA=A6=E5=A4=A7?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E6=B5=8B=E8=AF=95v1.5.0=E5=89=8D=E7=AB=AF?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D=20#6958=20#=20Reviewed,=20?= =?UTF-8?q?transaction=20id:=2019177?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cluster-common/RenderBaseInfo.vue | 68 ++++++++++--------- .../cluster-common/SpecDetailForPopover.vue | 60 ++++++++-------- .../src/components/locale-switch/Index.vue | 18 ++--- .../columns/role-host-select/Index.vue | 13 ++-- dbm-ui/frontend/src/locales/en.json | 5 +- dbm-ui/frontend/src/locales/zh-cn.json | 6 +- .../detail/components/node-list/Index.vue | 1 + .../list/components/list/Index.vue | 1 + .../detail/components/node-list/Index.vue | 33 +++++++-- .../node-list/components/InstanceDetail.vue | 2 +- .../hdfs/list/components/list/Index.vue | 1 + .../kafka/list/components/list/Index.vue | 1 + .../mysql/openarea/template/Index.vue | 6 +- .../pulsar/list/components/list/Index.vue | 1 + .../pages/page1/components/Index.vue | 8 +-- .../components/RenderTargetClusterType.vue | 2 +- .../tendb-cluster/openarea-template/Index.vue | 6 +- .../spec/components/SpecList.vue | 2 +- 18 files changed, 131 insertions(+), 103 deletions(-) diff --git a/dbm-ui/frontend/src/components/cluster-common/RenderBaseInfo.vue b/dbm-ui/frontend/src/components/cluster-common/RenderBaseInfo.vue index 837a85c86e..e4c58b5799 100644 --- a/dbm-ui/frontend/src/components/cluster-common/RenderBaseInfo.vue +++ b/dbm-ui/frontend/src/components/cluster-common/RenderBaseInfo.vue @@ -14,39 +14,41 @@ diff --git a/dbm-ui/frontend/src/components/cluster-common/SpecDetailForPopover.vue b/dbm-ui/frontend/src/components/cluster-common/SpecDetailForPopover.vue index acd25c6d3e..ed764e9786 100644 --- a/dbm-ui/frontend/src/components/cluster-common/SpecDetailForPopover.vue +++ b/dbm-ui/frontend/src/components/cluster-common/SpecDetailForPopover.vue @@ -4,35 +4,37 @@ {{ data.spec_name }} - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + +
CPU: - {{ data.cpu.min }} ~ {{ data.cpu.max }} {{ t('核') }} -
{{ t('内存') }}: - {{ data.mem.min }} ~ {{ data.mem.max }} G -
{{ t('磁盘') }}: - -
{{ t('每台主机实例数量') }}: - {{ data.instance_num }} -
CPU: + {{ data.cpu.min }} ~ {{ data.cpu.max }} {{ t('核') }} +
{{ t('内存') }}: + {{ data.mem.min }} ~ {{ data.mem.max }} G +
{{ t('磁盘') }}: + +
{{ t('每台主机实例数量') }}: + {{ data.instance_num }} +
diff --git a/dbm-ui/frontend/src/components/locale-switch/Index.vue b/dbm-ui/frontend/src/components/locale-switch/Index.vue index 058f8d4715..3f2a45137f 100644 --- a/dbm-ui/frontend/src/components/locale-switch/Index.vue +++ b/dbm-ui/frontend/src/components/locale-switch/Index.vue @@ -24,6 +24,15 @@ diff --git a/dbm-ui/frontend/src/components/render-table/columns/role-host-select/Index.vue b/dbm-ui/frontend/src/components/render-table/columns/role-host-select/Index.vue index 20f0e556ff..7a31dd1f2b 100644 --- a/dbm-ui/frontend/src/components/render-table/columns/role-host-select/Index.vue +++ b/dbm-ui/frontend/src/components/render-table/columns/role-host-select/Index.vue @@ -38,8 +38,7 @@ :list="selectList" :placeholder="t('请选择')" :rules="rules" - @change="(value) => handleChange(value as string)" - @option-click="(value) => handleOptionClick(value as string)"> + @change="(value) => handleChange(value as string)">