增加独立的IP地址管理功能

This commit is contained in:
刘祥超
2021-08-31 17:24:30 +08:00
parent 1c93b42681
commit 94b3559eee
31 changed files with 822 additions and 50 deletions

View File

@@ -1,5 +1,6 @@
// 单个集群选择
Vue.component("cluster-selector", {
props: ["v-cluster-id"],
mounted: function () {
let that = this
@@ -9,7 +10,6 @@ Vue.component("cluster-selector", {
that.clusters = resp.data.clusters
})
},
props: ["v-cluster-id"],
data: function () {
let clusterId = this.vClusterId
if (clusterId == null) {
@@ -21,7 +21,7 @@ Vue.component("cluster-selector", {
}
},
template: `<div>
<select class="ui dropdown auto-width" name="clusterId" v-model="clusterId">
<select class="ui dropdown" style="max-width: 10em" name="clusterId" v-model="clusterId">
<option value="0">[选择集群]</option>
<option v-for="cluster in clusters" :value="cluster.id">{{cluster.name}}</option>
</select>