1
0
mirror of https://github.com/newnius/YAO-portal.git synced 2025-12-13 00:56:44 +00:00

update, add virtual cluster management

This commit is contained in:
2019-08-01 10:07:21 +08:00
parent 6e133321a0
commit 6047d0bdcc
2 changed files with 18 additions and 5 deletions

View File

@@ -2,6 +2,9 @@ function register_events_cluster() {
$('#btn-cluster-add').click(function (e) {
$('#form-cluster-submit-type').val('add');
$('#form-cluster-name').removeAttr('disabled');
$('#form-cluster-name').val('');
$('#form-cluster-weight').val(10);
$('#form-cluster-reserved').prop('checked', false);
$('#modal-cluster').modal('show');
});
@@ -77,6 +80,16 @@ function load_clusters() {
title: 'Name',
align: 'center',
valign: 'middle'
}, {
field: 'reserved',
title: 'Reserved',
align: 'center',
valign: 'middle'
}, {
field: 'weight',
title: 'Weight',
align: 'center',
valign: 'middle'
}, {
field: 'operate',
title: 'Operate',