Skip to content

Commit

Permalink
sprintfix: 节点管理插件 Proxy os 可选项优化
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhuoZhuoCrayon committed Aug 31, 2023
1 parent 7945ae9 commit 4dde792
Showing 1 changed file with 13 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,18 @@


function init_columns(self, node_type, op_type) {

// Proxy 仅支持 Linux
let os_type_options = [
{value: "LINUX", text: gettext("LINUX")}
];
if (node_type === "AGENT") {
os_type_options.push(...[
{value: "WINDOWS", text: gettext("WINDOWS")},
{value: "AIX", text: gettext("AIX")}
]);
}

let common_columns = [
{
tag_code: "nodeman_bk_cloud_id",
Expand Down Expand Up @@ -93,11 +105,7 @@
attrs: {
name: gettext("操作系统类型"),
width: "180px",
items: [
{value: "LINUX", text: gettext("LINUX")},
{value: "WINDOWS", text: gettext("WINDOWS")},
{value: "AIX", text: gettext("AIX")}
],
items: os_type_options,
default: "LINUX",
validation: [
{
Expand Down

0 comments on commit 4dde792

Please sign in to comment.