This commit is contained in:
jhnine 2022-11-30 10:54:46 +08:00
parent f11b772ed5
commit 8a40f53f4e
3 changed files with 33 additions and 17 deletions

View File

@ -53,14 +53,14 @@ export default {
{ prop: 'name', label: '配置名称' },
{ prop: 'cpu', label: 'CPU' },
{ prop: 'memory', label: '内存' },
{ prop: 'tag', label: '网络资源' }
{ prop: 'ipAddress', label: '网络资源' }
],
columns2: [
{ type: 'selection', selectable: (row) => !this.masterNodes.includes(row.ipAddress) },
{ prop: 'name', label: '配置名称' },
{ prop: 'cpu', label: 'CPU' },
{ prop: 'memory', label: '内存' },
{ prop: 'tag', label: '网络资源' }
{ prop: 'ipAddress', label: '网络资源' }
]
}
},

View File

@ -1,5 +1,9 @@
<template>
<el-dialog v-if="createFormVisible" :close-on-click-modal="false" :title="`创建${stepNum === 0 ? '工作负载':'调度实例'}`" :visible.sync="createFormVisible">
<el-dialog
:close-on-click-modal="false"
:title="`创建${stepNum === 0 ? '工作负载':'调度实例'}`"
:visible.sync="createFormVisible"
>
<el-form v-if="stepNum===0" ref="editInfoForm" :rules="rules" :model="editInfoForm">
<el-form-item
required
@ -209,8 +213,12 @@ export default {
}
}
},
mounted() {
this.setFilterMapNamespaceList()
watch: {
createFormVisible(e) {
if (e) {
this.setFilterMapNamespaceList()
}
}
},
methods: {
removeContainer(index) {

View File

@ -1,5 +1,9 @@
<template>
<el-dialog v-if="createFormVisible" :close-on-click-modal="false" title="创建项目" :visible.sync="createFormVisible">
<el-dialog
title="创建项目"
:close-on-click-modal="false"
:visible.sync="createFormVisible"
>
<el-form ref="editInfoForm" :rules="rules" :model="editInfoForm">
<el-form-item
required
@ -95,17 +99,21 @@ export default {
}
}
},
mounted() {
//
getClusterList({ pageNum: 1, pageSize: 999 }).then(res => {
this.clusterList = res.data.list
this.clusterOptions = res.data.list.map(n => (
{
value: n.cluster_name,
label: n.cluster_name
}
)) || []
})
watch: {
createFormVisible(e) {
if (e) {
//
getClusterList({ pageNum: 1, pageSize: 999 }).then(res => {
this.clusterList = res.data.list
this.clusterOptions = res.data.list.map(n => (
{
value: n.cluster_name,
label: n.cluster_name
}
)) || []
})
}
}
},
methods: {
submitInfoEdit() {