fix:修改实例规格参数和镜像管理参数
Build and Deploy Vue3 / build (push) Successful in 2m57s
Build and Deploy Vue3 / deploy (push) Successful in 2m48s

This commit is contained in:
2025-10-24 17:34:52 +08:00
parent fca272f8fa
commit 11cb40c86a
2 changed files with 63 additions and 3 deletions
+7 -2
View File
@@ -195,6 +195,9 @@
<el-option v-for="item in planlist" :key="item.id" :label="item.name" :value="item.id" />
</el-select>
</el-form-item>
<el-form-item label="版本" prop="vm_gen">
<el-input v-model="imageForm.vm_gen" placeholder="请输入版本"></el-input>
</el-form-item>
<el-form-item label="描述" prop="description">
<el-input
v-model="imageForm.description"
@@ -322,7 +325,8 @@ const imageForm = reactive({
server_id: '',
path: '',
class_id: '',
class_name: ''
class_name: '',
vm_gen: ''
})
const rules = {
@@ -570,6 +574,7 @@ const handleAdd = () => {
// 编辑镜像
const handleEdit = async (row) => {
console.log("编辑镜像信息:",row)
try {
let res = await getServerPlan({ server_id: row.server_id })
planlist.value = res.data.data.map(item => {
@@ -580,7 +585,7 @@ const handleEdit = async (row) => {
})
// 获取分类列表
await fetchCategoryList(row.server_id)
console.log("编辑镜像信息:",row)
editOr.value = true
dialogVisible.value = true
showNewCategoryInput.value = false // 编辑时默认不显示新分类输入框