* Fix load error of edit host page.
This commit is contained in:
@@ -33,15 +33,7 @@ $config->host->actions = new stdclass();
|
||||
$config->host->actions->view = array();
|
||||
$config->host->actions->view['suffixActions'] = array('edit', 'delete');
|
||||
|
||||
$config->host->create = new stdclass();
|
||||
$config->host->create->requiredFields = 'name,hostType,extranet,cpuCores,memory,diskSize,vsoft';
|
||||
$config->host->create->ipFields = 'extranet';
|
||||
|
||||
$config->host->defaultPort = '55001';
|
||||
|
||||
$config->host->edit = new stdclass();
|
||||
$config->host->edit->requiredFields = 'name,hostType,cpuCores,memory,diskSize,vsoft';
|
||||
|
||||
$config->host->defaultPort = '55001';
|
||||
$config->host->imageListUrl = 'https://pkg.qucheng.com/zenagent/list.json';
|
||||
|
||||
$config->host->cpuCoreList = array(1 => 1, 2 => 2, 4 => 4, 6 => 6, 8 => 8, 10 => 10, 12 => 12, 16 => 16, 24 => 24, 32 => 32, 64 => 64);
|
||||
|
||||
@@ -13,7 +13,6 @@ window.hostTypeChange = function(e)
|
||||
window.isTestNodeChange = function(e)
|
||||
{
|
||||
const checked = $('#isTestNode_1').prop('checked');
|
||||
console.log(111, checked)
|
||||
var currentParam = params.replace('{osName}', osName).replace('{hostType}', hostType).replace('{isTestNode}', checked ? 1 : 0);
|
||||
loadPage($.createLink('host', 'edit', currentParam), '#testContainer');
|
||||
}
|
||||
|
||||
@@ -163,7 +163,7 @@ formPanel
|
||||
set::label($lang->host->osVersion),
|
||||
set::control('picker'),
|
||||
set::name('osVersion'),
|
||||
set::items($lang->host->{"{$osName}List"}),
|
||||
set::items(empty($osName) ? array() : $lang->host->{"{$osName}List"}),
|
||||
set::value($host->osVersion)
|
||||
)
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user