From d5e306fc0371ac78f147ed04599edd932e254552 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=97=B6=E5=90=AF=E9=BE=99?= Date: Tue, 3 Sep 2024 18:47:31 +0800 Subject: [PATCH] fix: modify --- .../ctstack/page/bareMetal/addBareMetal.vue | 32 +++++++++---------- .../resource/ctstack/page/bareMetal/image.vue | 6 ++-- 2 files changed, 20 insertions(+), 18 deletions(-) diff --git a/webs/cmp-web/src/views/resource/ctstack/page/bareMetal/addBareMetal.vue b/webs/cmp-web/src/views/resource/ctstack/page/bareMetal/addBareMetal.vue index 990e477..5f8fb03 100644 --- a/webs/cmp-web/src/views/resource/ctstack/page/bareMetal/addBareMetal.vue +++ b/webs/cmp-web/src/views/resource/ctstack/page/bareMetal/addBareMetal.vue @@ -49,6 +49,22 @@ + + +
+ {{ systemVolumeLabel }} + + + +
+
+ {{ dataVolumeLabel }} + + + +
+
+
@@ -107,22 +123,6 @@ - - -
- {{ systemVolumeLabel }} - - - -
-
- {{ dataVolumeLabel }} - - - -
-
-
diff --git a/webs/cmp-web/src/views/resource/ctstack/page/bareMetal/image.vue b/webs/cmp-web/src/views/resource/ctstack/page/bareMetal/image.vue index ae30f4a..0464f2b 100644 --- a/webs/cmp-web/src/views/resource/ctstack/page/bareMetal/image.vue +++ b/webs/cmp-web/src/views/resource/ctstack/page/bareMetal/image.vue @@ -5,7 +5,7 @@ {{ item.name }} - + @@ -57,7 +57,9 @@ export default { }).then(data => { if (data.success) { this.imageList = data.data - if (data.data.length) this.addData.imageUuid = data.data[0].imageUUID + this.$nextTick(() => { + if (data.data.length) this.addData.imageUuid = data.data[0].imageUUID + }) } }) }