forked from JointCloud/JCC-RIP
fix
This commit is contained in:
parent
f11b772ed5
commit
8a40f53f4e
|
@ -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: '网络资源' }
|
||||
]
|
||||
}
|
||||
},
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue