<#form:form id="inputForm" model="${device}" action="${ctx}/sys/device/save" method="post" class="form-horizontal">
<% if (hasPermi('sys:device:officeEdit')){ %>
<% } %>
#form:form>
*
设备ID
<% if (isNewRecord) {%> <#form:input path="deviceId" maxlength="100" class="form-control required "/> <% } else { %> <#form:input path="deviceId" readonly="true" maxlength="100" class="form-control required "/> <% } %>
*
设备名称
<#form:input path="deviceName" maxlength="100" class="form-control required "/>
*
设备类型
${@ObjectUtils.anyNotNull(deviceType)?(@DictUtils.getDictLabel('sys_camera_type', deviceType, '未知')):'正常'}
*
对应GCU
<#form:select path="parentId" items="${devList}" itemLabel="deviceName" itemValue="deviceId" class="form-control required" />设备密码
<% if(hasPermi('sys:password:edit')){ %> <#form:input path="password" id="device-password" type="numberLengthSix" maxlength="6" class="form-control" /> <% } else {%>${device.password}
<% } %>