<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
    <head>
        <script th:replace="common/head"></script>
    </head>
    <body>
    <div class="layui-fluid">
        <input type="hidden" id="id" th:value="${device.id}" />
        <input type="hidden" id="optionsId" th:value="${deviceOptions} !=null? ${deviceOptions.id}:''" />
        <input type="hidden" id="serialNumber" th:value="${device.serialNumber}" />
        <input type="hidden" id="deviceModelNumber" th:value="${device.deviceModelNumber}" />
        <input type="hidden" id="deviceFactory" th:value="${device.deviceFactory}" />
        <div class="layui-row layui-col-space15">
            <div class="layui-col-md12">
                <div class="layui-tab layui-tab-card">
                    <ul class="layui-tab-title">
                        <li class="layui-this">设备基础信息</li>
                        <li th:if="${deviceOptions} != null">设备配置信息</li>
                        <li th:if="${deviceOptions} == null">设备配置信息</li>
                    </ul>
                    <div class="layui-tab-content" style="margin-top: 10px">
                        <blockquote class="layui-elem-quote layui-quote-nm">
                                <div class="layui-form-item" style="margin-bottom: auto">
                                    <label class="layui-form-label"><span class="must">*</span><span>设备名称:</span></label>
                                    <div class="layui-input-inline" style="width: 250px;">
                                        <span name="deviceName" class="layui-form-text" th:text="${device.name}"></span>
                                    </div>
                                    <label class="layui-form-label"><span class="must">*</span><span>设备序列号:</span></label>
                                    <div class="layui-input-inline" style="width: 75px">
                                        <span class="layui-form-text" th:text="${device.serialNumber}"></span>
                                    </div>
                                    <label class="layui-form-label"><span class="must">*</span><span>设备厂商:</span></label>
                                    <div class="layui-input-inline" style="width: 75px;">
                                        <span class="layui-form-text" th:if="${device.deviceFactory} == 'JVT'">巨龙</span>
                                        <span class="layui-form-text" th:if="${device.deviceFactory} == 'qinlin'">亲邻</span>
                                    </div>
                                    <label class="layui-form-label"><span class="must">*</span><span>设备型号:</span></label>
                                    <div class="layui-input-inline">
                                        <span class="layui-form-text" th:text="${device.deviceModelNumber}"></span>
                                    </div>
                                </div>
                        </blockquote>
                        <br/>
                        <div class="layui-tab-item layui-show">
                            <div class="layui-form">
                                <fieldset class="layui-elem-field">
                                    <legend>设备信息</legend>
                                    <div class="layui-field-box">
                                        <div class="layui-form-item">
                                            <label class="layui-form-label"><span class="must">*</span><span>设备别名:</span></label>
                                            <div class="layui-input-inline" style="width: 250px">
                                                <input name="alias" type="text" lay-verify="required|specialCharacters|length"
                                                       placeholder="请输入配置名称" autocomplete="off" class="layui-input" th:value="${device.alias}" />
                                            </div>
                                            <label class="layui-form-label"><span>设备尺寸:</span></label>
                                            <div class="layui-input-inline">
                                                <input name="size" type="number" placeholder="提示：请输入0-100的数字"
                                                       autocomplete="off" class="layui-input textAlign" th:value="${device.size}" />
                                            </div>
                                            <label class="layui-form-label"><span>设备朝向:</span></label>
                                            <div class="layui-input-inline">
                                                <input type="radio" name="isOut" value="1" title="进" th:checked="${device.isOut}==1">
                                                <input type="radio" name="isOut" value="2" title="出" th:checked="${device.isOut}==2">
                                            </div>
                                        </div>
                                    </div>
                                </fieldset>
                                <br/>
                                <fieldset class="layui-elem-field " >
                                    <legend>安装位置信息</legend>
                                    <div class="layui-field-box">
                                        <div class="layui-form-item">
                                            <label class="layui-form-label"><span>小区名称:</span></label>
                                            <div class="layui-input-inline" style="width: 250px">
                                                <input name="xqName" type="text" lay-verify="required" placeholder="" autocomplete="off"
                                                       class="layui-input layui-disabled" th:value="${device.xqName}" disabled />
                                            </div>
                                            <div th:if="${device.unitId} != null">
                                                <label class="layui-form-label"><span>单元名称:</span></label>
                                                <div class="layui-input-inline" style="width: 250px">
                                                    <input name="dyName" type="text" placeholder="" autocomplete="off"
                                                           class="layui-input layui-disabled" th:value="${device.dyName}" disabled />
                                                </div>
                                            </div>
                                            <label class="layui-form-label"><span class="must">*</span><span>位置名称:</span></label>
                                            <div class="layui-input-inline" style="width: 250px">
                                                <input name="installPath" type="text" lay-verify="required" placeholder="" autocomplete="off"
                                                       class="layui-input layui-disabled" th:value="${device.installPath}" disabled />
                                            </div>
                                        </div>
                                    </div>
                                </fieldset>
                                <br/>
                                <fieldset class="layui-elem-field">
                                    <legend>设备功能</legend>
                                    <div class="layui-field-box">
                                        <div class="layui-form-item">
                                            <label class="layui-form-label"><span class="must">*</span><span>是否支持门禁卡片功能:</span></label>
                                            <div class="layui-input-inline">
                                                <input type="radio" name="haveCard" lay-filter="isHaveCard" value="1" title="是" th:checked="${device.haveCard} == 1">
                                                <input type="radio" name="haveCard" lay-filter="isHaveCard" value="2" title="否" th:checked="${device.haveCard} == 2">
                                            </div>
                                            <label class="layui-form-label"><span class="must">*</span><span>是否支持人脸识别功能:</span></label>
                                            <div class="layui-input-inline">
                                                <input type="radio" name="haveFace" lay-filter="isHaveFace" value="1" title="是" th:checked="${device.haveFace} == 1">
                                                <input type="radio" name="haveFace" lay-filter="isHaveFace" value="2" title="否" th:checked="${device.haveFace} == 2">
                                            </div>
                                            <label class="layui-form-label"><span class="must">*</span><span>是否支持键盘功能:</span></label>
                                            <div class="layui-input-inline">
                                                <input type="radio" name="haveKeyboard" lay-filter="isHaveKeyboard" value="1" title="是">
                                                <input type="radio" name="haveKeyboard" lay-filter="isHaveKeyboard" value="2" title="否">
                                            </div>
                                        </div>
                                        <div class="layui-form-item">
                                            <label class="layui-form-label"><span class="must">*</span><span>是否支持视频通话功能:</span></label>
                                            <div class="layui-input-inline">
                                                <input type="radio" name="haveCall" lay-filter="isHaveCall" value="1" title="是" th:checked="${device.haveCall} ==1">
                                                <input type="radio" name="haveCall" lay-filter="isHaveCall" value="2" title="否" th:checked="${device.haveCall} ==2">
                                            </div>
                                            <label class="layui-form-label"><span class="must">*</span><span>是否支持一键重启功能:</span></label>
                                            <div class="layui-input-inline">
                                                <input type="radio" name="reboot" lay-filter="reboot" value="1" title="是" th:checked="${device.reboot} ==1">
                                                <input type="radio" name="reboot" lay-filter="reboot" value="2" title="否" th:checked="${device.reboot} ==2">
                                            </div>
                                            <label class="layui-form-label"><span class="must">*</span><span>是否支持广告功能:</span></label>
                                            <div class="layui-input-inline">
                                                <input type="radio" name="haveAd" lay-filter="isHaveAd" value="1" title="是">
                                                <input type="radio" name="haveAd" lay-filter="isHaveAd" value="2" title="否" >
                                            </div>
                                        </div>
                                    </div>
                                </fieldset>
                                <br/>
                                <fieldset class="layui-elem-field">
                                    <legend>备注</legend>
                                    <div class="layui-field-box">
                                        <div class="layui-input-block" style="margin-left: 10px">
                                            <textarea name="remark" placeholder="请输入内容" class="layui-textarea w500" style="width: 1200px" th:text="${device.remark}"></textarea>
                                        </div>
                                    </div>
                                </fieldset>
                                <div class="layui-form-item">
                                    <div class="layui-input-block">
                                        <button class="layui-btn" lay-submit lay-filter="entity_submit_event" value="device">提交</button>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="layui-tab-item" th:if="${deviceOptions} != null">
                            <div class="layui-form">
                                <fieldset class="layui-elem-field">
                                    <legend>设备基本配置</legend>
                                    <div class="layui-field-box">
                                        <div class="layui-form-item">
                                            <label class="layui-form-label"><span class="must">*</span><span>屏幕亮度:</span></label>
                                            <div class="layui-input-inline">
                                                <input name="screenBrightness" type="number" lay-verify="required|size" placeholder="提示：请输入0-100的数字"
                                                       autocomplete="off" class="layui-input textAlign" th:value="${deviceOptions.screenBrightness}" />
                                            </div>
                                            <label class="layui-form-label"><span class="must">*</span><span>通话音量:</span></label>
                                            <div class="layui-input-inline">
                                                <input name="callVolume" type="number" lay-verify="required|size" placeholder="提示：请输入0-100的数字"
                                                       autocomplete="off" class="layui-input textAlign" th:value="${deviceOptions.callVolume}" />
                                            </div>
                                            <label class="layui-form-label"><span class="must">*</span><span>开门时长:</span></label>
                                            <div class="layui-input-inline">
                                                <input name="delay" type="number" lay-verify="required" value="5" autocomplete="off"
                                                       class="layui-input textAlign" th:value="${deviceOptions.delay}">
                                            </div>
                                        </div>
                                        <div class="layui-form-item">
                                            <label class="layui-form-label"><span class="must">*</span><span>开门密码:</span></label>
                                            <div class="layui-input-inline">
                                                <input name="openDoorPwd" type="number" lay-verify="password" autocomplete="off"
                                                       class="layui-input" oninput="if(value.length>6)value=value.slice(0,6)" th:value="${deviceOptions.openDoorPwd}">
                                            </div>
                                            <label class="layui-form-label"><span class="must">*</span><span>管理密码:</span></label>
                                            <div class="layui-input-inline">
                                                <input name="adminPwd" type="number" lay-verify="adminPassword" autocomplete="off"
                                                       class="layui-input" oninput="if(value.length>6)value=value.slice(0,6)" th:value="${deviceOptions.adminPwd}">
                                            </div>
                                        </div>
                                        <div class="layui-form-item">
                                            <label class="layui-form-label"><span>显示姓名:</span></label>
                                            <div class="layui-input-inline">
                                                <input type="radio" name="isShowUsername" value="1" title="显示" th:checked="${deviceOptions.isShowUsername}==1">
                                                <input type="radio" name="isShowUsername" value="2" title="不显示" th:checked="${deviceOptions.isShowUsername}==2">
                                            </div>
                                            <label class="layui-form-label"><span>启用策略:</span></label>
                                            <div class="layui-input-inline">
                                                <input type="radio" name="timeStrategyIsEnable" value="1" title="是" th:checked="${deviceOptions.timeStrategyIsEnable}==1">
                                                <input type="radio" name="timeStrategyIsEnable" value="2" title="否" th:checked="${deviceOptions.timeStrategyIsEnable}==2">
                                            </div>
                                        </div>
                                    </div>
                                </fieldset>
                                <br/>
                                <fieldset class="layui-elem-field">
                                    <legend>设备功能</legend>
                                    <div class="layui-field-box">
                                        <div class="layui-form-item">
                                            <label class="layui-form-label"><span class="must">*</span><span>一键全部:</span></label>
                                            <div class="layui-input-inline">
                                                <input type="radio" name="all" lay-filter="all" value="1" title="启用" th:checked="${all} == 1" checked="">
                                                <input type="radio" name="all" lay-filter="all" value="2" title="禁用" th:checked="${all} == 2">
                                            </div>
                                        </div>
                                        <div class="layui-form-item">
                                            <label class="layui-form-label"><span class="must">*</span><span>刷脸开门功能:</span></label>
                                            <div class="layui-input-inline">
                                                <input type="radio" name="faceOpenDoor" lay-filter="faceOpenDoor" value="1" title="启用" th:checked="${deviceOptions.faceOpenDoor} == 1" checked="">
                                                <input type="radio" name="faceOpenDoor" lay-filter="faceOpenDoor" value="2" title="禁用" th:checked="${deviceOptions.faceOpenDoor} == 2">
                                            </div>
                                            <label class="layui-form-label"><span class="must">*</span><span>刷卡开门功能:</span></label>
                                            <div class="layui-input-inline">
                                                <input type="radio" name="cardOpenDoor" lay-filter="cardOpenDoor" value="1" title="启用" th:checked="${deviceOptions.cardOpenDoor} == 1" checked="">
                                                <input type="radio" name="cardOpenDoor" lay-filter="cardOpenDoor" value="2" title="禁用" th:checked="${deviceOptions.cardOpenDoor} == 2">
                                            </div>
                                            <label class="layui-form-label"><span class="must">*</span><span>远程开门功能:</span></label>
                                            <div class="layui-input-inline">
                                                <input type="radio" name="remoteOpenDoor" lay-filter="remoteOpenDoor" value="1" title="启用" th:checked="${deviceOptions.remoteOpenDoor} == 1" checked="">
                                                <input type="radio" name="remoteOpenDoor" lay-filter="remoteOpenDoor" value="2" title="禁用" th:checked="${deviceOptions.remoteOpenDoor} == 2">
                                            </div>
                                        </div>
                                        <div class="layui-form-item">
                                            <label class="layui-form-label"><span class="must">*</span><span>密码开门功能:</span></label>
                                            <div class="layui-input-inline">
                                                <input type="radio" name="pwdOpenDoor" lay-filter="pwdOpenDoor" value="1" title="启用" th:checked="${deviceOptions.pwdOpenDoor} == 1" checked="">
                                                <input type="radio" name="pwdOpenDoor" lay-filter="pwdOpenDoor" value="2" title="禁用" th:checked="${deviceOptions.pwdOpenDoor} == 2">
                                            </div>
                                            <label class="layui-form-label"><span class="must">*</span><span>设备键盘功能:</span></label>
                                            <div class="layui-input-inline">
                                                <input type="radio" name="keyboard" lay-filter="keyboard" value="1" title="启用" th:checked="${deviceOptions.keyboard} == 1" checked="">
                                                <input type="radio" name="keyboard" lay-filter="keyboard" value="2" title="禁用" th:checked="${deviceOptions.keyboard} == 2">
                                            </div>
                                            <label class="layui-form-label"><span class="must">*</span><span>广告播放功能:</span></label>
                                            <div class="layui-input-inline">
                                                <input type="radio" name="adPlay" lay-filter="adPlay" value="1" title="启用" th:checked="${deviceOptions.adPlay} == 1" checked="">
                                                <input type="radio" name="adPlay" lay-filter="adPlay" value="2" title="禁用" th:checked="${deviceOptions.adPlay} == 2">
                                            </div>
                                        </div>
                                    </div>
                                </fieldset>
                                <br/>
                                <fieldset class="layui-elem-field">
                                    <legend>广告设置</legend>
                                    <div class="layui-field-box">
                                        <div class="layui-form-item">
                                            <label class="layui-form-label"><span class="must">*</span><span>广告音量:</span></label>
                                            <div class="layui-input-inline">
                                                <input name="adVolume" type="number" lay-verify="required|size" placeholder="提示：请输入0-100的数字"
                                                       autocomplete="off" class="layui-input textAlign" th:value="${deviceOptions.adVolume}" />
                                            </div>
                                            <label class="layui-form-label"><span>广告播放模式:</span></label>
                                            <div class="layui-input-inline">
                                                <select name="playModel">
                                                    <option value="1" th:selected="${deviceOptions.playModel}==1">循环播放</option>
                                                    <option value="2" th:selected="${deviceOptions.playModel}==2">靠近播放</option>
                                                    <option value="3" th:selected="${deviceOptions.playModel}==3">按性别和年龄播放</option>
                                                </select>
                                            </div>
                                        </div>
                                    </div>
                                </fieldset>
<!--                                <fieldset class="layui-elem-field" id="face_options" th:styleappend="'display:' + (${device.haveFace}==1?'block':'none')">-->
                                <fieldset class="layui-elem-field" id="face_options" th:if="${device.haveFace} == 1">
                                    <legend>人脸识别功能设置</legend>
                                    <div class="layui-field-box">
                                        <div class="layui-form-item">
                                            <label class="layui-form-label"><span>补光灯亮度:</span></label>
                                            <div class="layui-input-inline">
                                                <input name="fillLight" type="number" lay-verify="required|size" placeholder="提示：请输入0-100的数字"
                                                       autocomplete="off" class="layui-input textAlign" th:value="${deviceOptions.fillLight}" />
                                            </div>
                                            <label class="layui-form-label"><span>识别框位置:</span></label>
                                            <div class="layui-input-inline">
                                                <select name="discernBoxPosition">
                                                    <option value="1" th:selected="${deviceOptions.discernBoxPosition} ==1">左上角</option>
                                                    <option value="2" th:selected="${deviceOptions.discernBoxPosition} ==2">左下角</option>
                                                    <option value="3" th:selected="${deviceOptions.discernBoxPosition} ==3">中间位置</option>
                                                    <option value="4" th:selected="${deviceOptions.discernBoxPosition} ==4">右下角</option>
                                                </select>
                                            </div>
                                            <label class="layui-form-label"><span class="must">*</span><span>识别度达:</span></label>
                                            <div class="layui-input-inline">
                                                <input name="faceResolution" type="number" placeholder="" class="layui-input textAlign"
                                                       lay-verify="number|size" th:value="${deviceOptions.faceResolution}" />
                                            </div>
                                            <div class="layui-form-mid layui-word-aux">%,时可进行开门</div>
                                        </div>
                                        <div class="layui-form-item">
                                            <label class="layui-form-label"><span>活体检测:</span></label>
                                            <div class="layui-input-inline">
                                                <input type="radio" name="liveDetect" value="1" title="开启" th:checked="${deviceOptions.liveDetect} ==1">
                                                <input type="radio" name="liveDetect" value="2" title="关闭" th:checked="${deviceOptions.liveDetect} ==2">
                                            </div>
                                        </div>
                                    </div>
                                </fieldset>
                                <div class="layui-form-item">
                                    <div class="layui-input-block">
                                        <button class="layui-btn" lay-submit lay-filter="entity_submit_event" value="options">提交</button>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="layui-tab-item" th:if="${deviceOptions} == null">
                            <div class="layui-form">
                                <fieldset class="layui-elem-field">
                                    <legend>设备基本配置</legend>
                                    <div class="layui-field-box">
                                        <div class="layui-form-item">
                                            <label class="layui-form-label"><span class="must">*</span><span>屏幕亮度:</span></label>
                                            <div class="layui-input-inline">
                                                <input name="screenBrightness" type="number" lay-verify="required|size" placeholder="提示：请输入0-100的数字"
                                                       autocomplete="off" class="layui-input textAlign" />
                                            </div>
                                            <label class="layui-form-label"><span class="must">*</span><span>通话音量:</span></label>
                                            <div class="layui-input-inline">
                                                <input name="callVolume" type="number" lay-verify="required|size" placeholder="提示：请输入0-100的数字"
                                                       autocomplete="off" class="layui-input textAlign"  />
                                            </div>
                                            <label class="layui-form-label"><span class="must">*</span><span>开门时长:</span></label>
                                            <div class="layui-input-inline">
                                                <input name="delay" type="number" lay-verify="required" value="5" autocomplete="off"
                                                       class="layui-input textAlign" >
                                            </div>
                                        </div>
                                        <div class="layui-form-item">
                                            <label class="layui-form-label"><span class="must">*</span><span>开门密码:</span></label>
                                            <div class="layui-input-inline">
                                                <input name="openDoorPwd" type="number" lay-verify="password" autocomplete="off"
                                                       class="layui-input" >
                                            </div>
                                            <label class="layui-form-label"><span class="must">*</span><span>管理密码:</span></label>
                                            <div class="layui-input-inline">
                                                <input name="adminPwd" type="number" lay-verify="adminPassword" autocomplete="off"
                                                       class="layui-input" >
                                            </div>
                                        </div>
                                        <div class="layui-form-item">
                                            <label class="layui-form-label"><span>显示姓名:</span></label>
                                            <div class="layui-input-inline">
                                                <input type="radio" name="isShowUsername" value="1" title="显示" >
                                                <input type="radio" name="isShowUsername" value="2" title="不显示" >
                                            </div>
                                            <label class="layui-form-label"><span>启用策略:</span></label>
                                            <div class="layui-input-inline">
                                                <input type="radio" name="timeStrategyIsEnable" value="1" title="是" >
                                                <input type="radio" name="timeStrategyIsEnable" value="2" title="否" >
                                            </div>
                                        </div>
                                    </div>
                                </fieldset>
                                <br/>
                                <fieldset class="layui-elem-field">
                                    <legend>设备功能</legend>
                                    <div class="layui-field-box">
                                        <div class="layui-form-item">
                                            <label class="layui-form-label"><span class="must">*</span><span>刷脸开门功能:</span></label>
                                            <div class="layui-input-inline">
                                                <input type="radio" name="faceOpenDoor" value="1" title="启用" >
                                                <input type="radio" name="faceOpenDoor" value="2" title="禁用" >
                                            </div>
                                            <label class="layui-form-label"><span class="must">*</span><span>刷卡开门功能:</span></label>
                                            <div class="layui-input-inline">
                                                <input type="radio" name="cardOpenDoor" value="1" title="启用" >
                                                <input type="radio" name="cardOpenDoor" value="2" title="禁用" >
                                            </div>
                                            <label class="layui-form-label"><span class="must">*</span><span>远程开门功能:</span></label>
                                            <div class="layui-input-inline">
                                                <input type="radio" name="remoteOpenDoor" value="1" title="启用" >
                                                <input type="radio" name="remoteOpenDoor" value="2" title="禁用" >
                                            </div>
                                        </div>
                                        <div class="layui-form-item">
                                            <label class="layui-form-label"><span class="must">*</span><span>密码开门功能:</span></label>
                                            <div class="layui-input-inline">
                                                <input type="radio" name="pwdOpenDoor" value="1" title="启用" >
                                                <input type="radio" name="pwdOpenDoor" value="2" title="禁用" >
                                            </div>
                                            <label class="layui-form-label"><span class="must">*</span><span>设备键盘功能:</span></label>
                                            <div class="layui-input-inline">
                                                <input type="radio" name="keyboard" value="1" title="启用" >
                                                <input type="radio" name="keyboard" value="2" title="禁用" >
                                            </div>
                                            <label class="layui-form-label"><span class="must">*</span><span>广告播放功能:</span></label>
                                            <div class="layui-input-inline">
                                                <input type="radio" name="adPlay" value="1" title="启用" >
                                                <input type="radio" name="adPlay" value="2" title="禁用" >
                                            </div>
                                        </div>
                                    </div>
                                </fieldset>
                                <br/>
                                <fieldset class="layui-elem-field">
                                    <legend>广告设置</legend>
                                    <div class="layui-field-box">
                                        <div class="layui-form-item">
                                            <label class="layui-form-label"><span class="must">*</span><span>广告音量:</span></label>
                                            <div class="layui-input-inline">
                                                <input name="adVolume" type="number" lay-verify="required|size" placeholder="提示：请输入0-100的数字"
                                                       autocomplete="off" class="layui-input textAlign" />
                                            </div>
                                            <label class="layui-form-label"><span>广告播放模式:</span></label>
                                            <div class="layui-input-inline">
                                                <select name="playModel">
                                                    <option value="1" >循环播放</option>
                                                    <option value="2" >靠近播放</option>
                                                    <option value="3" >按性别和年龄播放</option>
                                                </select>
                                            </div>
                                        </div>
                                    </div>
                                </fieldset>
<!--                                <fieldset class="layui-elem-field" id="face_options" th:styleappend="'display:' + (${device.haveFace}==1?'block':'none')">-->
                                <fieldset class="layui-elem-field" id="face_options2" th:if="${device.haveFace} == 1">
                                    <legend>人脸识别功能设置</legend>
                                    <div class="layui-field-box">
                                        <div class="layui-form-item">
                                            <label class="layui-form-label"><span>补光灯亮度:</span></label>
                                            <div class="layui-input-inline">
                                                <input name="fillLight" type="number" lay-verify="required|size" placeholder="提示：请输入0-100的数字"
                                                       autocomplete="off" class="layui-input textAlign"  />
                                            </div>
                                            <label class="layui-form-label"><span>识别框位置:</span></label>
                                            <div class="layui-input-inline">
                                                <select name="discernBoxPosition">
                                                    <option value="1" >左上角</option>
                                                    <option value="2" >左下角</option>
                                                    <option value="3" >中间位置</option>
                                                    <option value="4" >右下角</option>
                                                </select>
                                            </div>
                                            <label class="layui-form-label"><span class="must">*</span><span>识别度达:</span></label>
                                            <div class="layui-input-inline">
                                                <input name="faceResolution" type="number" placeholder="" class="layui-input textAlign"
                                                       lay-verify="number|size" />
                                            </div>
                                            <div class="layui-form-mid layui-word-aux">%,时可进行开门</div>
                                        </div>
                                        <div class="layui-form-item">
                                            <label class="layui-form-label"><span>活体检测:</span></label>
                                            <div class="layui-input-inline">
                                                <input type="radio" name="liveDetect" value="1" title="开启" >
                                                <input type="radio" name="liveDetect" value="2" title="关闭" >
                                            </div>
                                        </div>
                                    </div>
                                </fieldset>
                                <div class="layui-form-item">
                                    <div class="layui-input-block">
                                        <button class="layui-btn" lay-submit lay-filter="entity_submit_event" value="addOptions">提交</button>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    </body>
    <!-- javascript -->
    <!--去掉input type="number"后面的箭头-->
    <style type="text/css">
        input::-webkit-outer-spin-button,
        input::-webkit-inner-spin-button {
            -webkit-appearance: none;
        }
        input[type="number"] {
            -moz-appearance: textfield;
        }
    </style>

    <script type="text/javascript" th:src="@{'/layui/layui.js'}" charset="utf-8"></script>
    <script type="text/javascript">
        layui.config({
            base: '/' //静态资源所在路径
        });
    </script>
    <script type="text/javascript" th:src="@{'/js/device/device-edit.js'}" charset="utf-8"></script>

</html>
