mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-12-02 01:40:25 +08:00
单个服务切换集群时可以选择是否保留节点上的配置/总是可以切换集群,不再受所属用户的影响
This commit is contained in:
@@ -29,16 +29,20 @@
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>部署的集群 *</td>
|
||||
<td :class="{'color-border':server.clusterId != oldClusterId}">部署的集群 *</td>
|
||||
<td>
|
||||
<div v-if="user != null">{{clusterName}}
|
||||
<p class="comment">此选项跟随用户设置,不能单独修改。</p>
|
||||
</div>
|
||||
<select class="ui dropdown auto-width" name="clusterId" v-model="server.clusterId" v-show="user == null">
|
||||
<select class="ui dropdown auto-width" name="clusterId" v-model="server.clusterId" >
|
||||
<option v-for="cluster in clusters" :value="cluster.id">{{cluster.name}}</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr v-show="server.clusterId != oldClusterId">
|
||||
<td class="color-border">是否保留原集群配置</td>
|
||||
<td>
|
||||
<checkbox name="keepOldConfigs" checked="checked"></checkbox>
|
||||
<p class="comment">选中表示在先前的集群节点上仍然保留当前服务的配置,直至节点配置全部刷新时才会删除;不选中,则表示立即删除原集群上关于当前服务的配置。</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>服务类型 *</td>
|
||||
<td>
|
||||
|
||||
@@ -7,6 +7,7 @@ Tea.context(function () {
|
||||
this.userId = 0
|
||||
this.plans = []
|
||||
this.userPlanId = 0
|
||||
this.oldClusterId = this.server.clusterId
|
||||
|
||||
if (this.userPlan != null) {
|
||||
this.userPlanId = this.userPlan.id
|
||||
|
||||
Reference in New Issue
Block a user