基础信息
设备名称 *
{#if errors.name}
{errors.name}
{/if}
厂商 *
型号 *
设备类型 *
请选择设备类型
{#each deviceTypeOptions as opt (opt.value)}
{opt.label}
{/each}
{#if errors.typeId}
{errors.typeId}
{/if}
采购日期
网络接口 (Interfaces)
+ 添加接口
{#each formData.interfaces as iface, i (i)}
接口 #{i + 1}: {iface.name || '(未命名)'}
removeInterface(i)}>删除
接口名称 *
{#if errors[`iface_${i}_name`]}
{errors[`iface_${i}_name`]}
{/if}
接口类型
物理口
聚合口
虚拟口
MAC 地址
{#if errors[`iface_${i}_mac`]}
{errors[`iface_${i}_mac`]}
{/if}
IP / VLAN 配置
addAddressConfig(i)}>+ 添加 IP
{#if iface.addressConfigs.length === 0}
暂无 IP 配置
{/if} {#each iface.addressConfigs as addr, j (j)}
VLAN
IP地址
子网掩码
主IP
DHCP
removeAddressConfig(i, j)}>✕
{/each}
{/each}
重置
保存草稿
提交