实现CPU线程数和修改节点的启用状态

This commit is contained in:
GoEdgeLab
2020-10-10 12:31:59 +08:00
parent aa56d4e67b
commit a507d53b03
6 changed files with 51 additions and 3 deletions

View File

@@ -29,6 +29,9 @@
</select>
</td>
</tr>
<tr>
<td colspan="2"><strong>SSH登录信息</strong></td>
</tr>
<tr>
<td>SSH主机地址</td>
<td>
@@ -49,6 +52,28 @@
<grant-selector :v-grant="grant"></grant-selector>
</td>
</tr>
<tr>
<td colspan="2"><more-options-indicator></more-options-indicator></td>
</tr>
<tbody v-show="moreOptionsVisible">
<tr>
<td>CPU线程数</td>
<td>
<input type="text" name="maxCPU" v-model="node.maxCPU"/>
<p class="comment">当前节点可以使用的最多的CPU线程数如果为0表示可以使用全部CPU。</p>
</td>
</tr>
<tr>
<td>是否启用</td>
<td>
<div class="ui checkbox">
<input type="checkbox" name="isOn" value="1" v-model="node.isOn"/>
<label></label>
</div>
<p class="comment">如果不启用此节点,此节点上的所有服务将不能访问。</p>
</td>
</tr>
</tbody>
</table>
<submit-btn></submit-btn>
</form>