* Fix load error of edit host page.

This commit is contained in:
zhaoke
2023-08-25 10:50:52 +08:00
parent 5988383c4d
commit 09503f95af
3 changed files with 2 additions and 11 deletions
+1 -9
View File
@@ -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);
-1
View File
@@ -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');
}
+1 -1
View File
@@ -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)
)
),