<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增资产管理')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content" id="app">
        <form class="form-horizontal m" id="form-propertyinfo-add">
            <input name="useId" class="form-control" type="hidden" th:value="${useId}">
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">资产种类：</label>
                <div class="col-sm-8">
                    <select name="propertyType" id="select1" required class="form-control m-b" v-model="selectType" th:with="type=${@dict.getType('sys_sm_property')}">
                        <option value="">---请选择---</option>
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
                    </select>
                </div>
            </div>
<!--            单向导入设备开始-->
            <div id="box0" class="contentBox" v-if="selectType === '0'">
                <div class="form-group">
                    <label class="col-sm-3 control-label is-required">设备品牌：</label>
                    <div class="col-sm-8">
                        <input name="propertyBrand" required class="form-control" type="text">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label is-required">资产型号：</label>
                    <div class="col-sm-8">
                        <input name="propertyNo" required class="form-control" type="text">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label ">设备SN：</label>
                    <div class="col-sm-8">
                        <input name="propertySn" class="form-control" type="text">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">备注：</label>
                    <div class="col-sm-8">
                        <textarea name="remark" class="form-control"></textarea>
                    </div>
                </div>
            </div>
            <!--单向导入设备结束-->
            <!--涉密计算机开始-->
            <div id="box1" v-if="selectType === '1'" class="contentBox">
                <div class="form-group">
                    <label class="col-sm-3 control-label is-required">计算机类型：</label>
                    <div class="col-sm-8">
                        <input name="computerType" required class="form-control" type="text">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label is-required">设备品牌：</label>
                    <div class="col-sm-8">
                        <input name="propertyBrand" required class="form-control" type="text">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label is-required ">资产型号：</label>
                    <div class="col-sm-8">
                        <input name="propertyNo" required class="form-control" type="text">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">设备mac：</label>
                    <div class="col-sm-8">
                        <input name="propertyMac" class="form-control" type="text">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">设备SN：</label>
                    <div class="col-sm-8">
                        <input name="propertySn" class="form-control" type="text">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label is-required ">是否安装防护软件：</label>
                    <div class="col-sm-8">
                        <select name="isSoftware" required class="form-control m-b" th:with="type=${@dict.getType('sys_yes_no')}">
                            <option value="">请选择</option>
                            <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">备注：</label>
                    <div class="col-sm-8">
                        <textarea name="remark" class="form-control"></textarea>
                    </div>
                </div>
            </div>
            <!--涉密计算机结束-->


            <!--移动硬盘开始-->
            <div id="box2" v-if="selectType === '2'" class="contentBox">
                <div class="form-group">
                    <label class="col-sm-3 control-label is-required">设备品牌：</label>
                    <div class="col-sm-8">
                        <input name="propertyBrand" required class="form-control" type="text">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label is-required">资产型号：</label>
                    <div class="col-sm-8">
                        <input name="propertyNo" required class="form-control" type="text">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">设备SN：</label>
                    <div class="col-sm-8">
                        <input name="propertySn" class="form-control" type="text">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">备注：</label>
                    <div class="col-sm-8">
                        <textarea name="remark" class="form-control"></textarea>
                    </div>
                </div>
            </div>
            <!--移动硬盘结束-->

            <!--涉密U盘开始-->
            <div id="box3" v-if="selectType === '3'" class="contentBox">
                <div class="form-group">
                    <label class="col-sm-3 control-label is-required">设备品牌：</label>
                    <div class="col-sm-8">
                        <input name="propertyBrand" required class="form-control" type="text">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label is-required">资产型号：</label>
                    <div class="col-sm-8">
                        <input name="propertyNo" required class="form-control" type="text">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">设备SN：</label>
                    <div class="col-sm-8">
                        <input name="propertySn" class="form-control" type="text">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">备注：</label>
                    <div class="col-sm-8">
                        <textarea name="remark" class="form-control"></textarea>
                    </div>
                </div>
            </div>
            <!--涉密U盘结束-->

            <!--涉密复印机开始-->
            <div id="box4" v-if="selectType === '4'" class="contentBox">
                <div class="form-group">
                    <label class="col-sm-3 control-label  is-required">设备品牌：</label>
                    <div class="col-sm-8">
                        <input name="propertyBrand" required class="form-control" type="text">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label is-required">资产型号：</label>
                    <div class="col-sm-8">
                        <input name="propertyNo" required class="form-control" type="text">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">设备SN：</label>
                    <div class="col-sm-8">
                        <input name="propertySn" class="form-control" type="text">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">备注：</label>
                    <div class="col-sm-8">
                        <textarea name="remark" class="form-control"></textarea>
                    </div>
                </div>
            </div>
            <!--涉密复印机结束-->

            <!--涉密打印机开始-->
            <div id="box5" v-if="selectType === '5'" class="contentBox">
                <div class="form-group">
                    <label class="col-sm-3 control-label  is-required">设备品牌：</label>
                    <div class="col-sm-8">
                        <input name="propertyBrand" required class="form-control" type="text">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label is-required">资产型号：</label>
                    <div class="col-sm-8">
                        <input name="propertyNo" required class="form-control" type="text">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">设备SN：</label>
                    <div class="col-sm-8">
                        <input name="propertySn" class="form-control" type="text">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">备注：</label>
                    <div class="col-sm-8">
                        <textarea name="remark" class="form-control"></textarea>
                    </div>
                </div>
            </div>
            <!--涉密打印机结束-->
            <!--录音带开始-->
            <div id="box6" v-if="selectType === '6'" class="contentBox">
                <div class="form-group">
                    <label class="col-sm-3 control-label  is-required">设备品牌：</label>
                    <div class="col-sm-8">
                        <input name="propertyBrand" required class="form-control" type="text">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label is-required">资产型号：</label>
                    <div class="col-sm-8">
                        <input name="propertyNo" required class="form-control" type="text">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">设备SN：</label>
                    <div class="col-sm-8">
                        <input name="propertySn" class="form-control" type="text">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">备注：</label>
                    <div class="col-sm-8">
                        <textarea name="remark" class="form-control"></textarea>
                    </div>
                </div>
            </div>
            <!--录音带结束-->
            <!--录象带开始-->
            <div id="box7" v-if="selectType === '7'" class="contentBox">
                <div class="form-group">
                    <label class="col-sm-3 control-label  is-required">设备品牌：</label>
                    <div class="col-sm-8">
                        <input name="propertyBrand" required class="form-control" type="text">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label is-required">资产型号：</label>
                    <div class="col-sm-8">
                        <input name="propertyNo" required class="form-control" type="text">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">设备SN：</label>
                    <div class="col-sm-8">
                        <input name="propertySn" class="form-control" type="text">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">备注：</label>
                    <div class="col-sm-8">
                        <textarea name="remark" class="form-control"></textarea>
                    </div>
                </div>
            </div>
            <!--录音带结束-->
            <!--传真机开始-->
            <div id="box8" v-if="selectType === '8'" class="contentBox">
                <div class="form-group">
                    <label class="col-sm-3 control-label  is-required">设备品牌：</label>
                    <div class="col-sm-8">
                        <input name="propertyBrand" required class="form-control" type="text">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label is-required">资产型号：</label>
                    <div class="col-sm-8">
                        <input name="propertyNo" required class="form-control" type="text">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">设备SN：</label>
                    <div class="col-sm-8">
                        <input name="propertySn" class="form-control" type="text">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">备注：</label>
                    <div class="col-sm-8">
                        <textarea name="remark" class="form-control"></textarea>
                    </div>
                </div>
            </div>
            <!--传真机结束-->
            <!--照相机开始-->
            <div id="box9" v-if="selectType === '9'" class="contentBox">
                <div class="form-group">
                    <label class="col-sm-3 control-label  is-required">设备品牌：</label>
                    <div class="col-sm-8">
                        <input name="propertyBrand" required class="form-control" type="text">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label is-required">资产型号：</label>
                    <div class="col-sm-8">
                        <input name="propertyNo" required class="form-control" type="text">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">设备SN：</label>
                    <div class="col-sm-8">
                        <input name="propertySn" class="form-control" type="text">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">备注：</label>
                    <div class="col-sm-8">
                        <textarea name="remark" class="form-control"></textarea>
                    </div>
                </div>
            </div>
            <!--照相机结束-->
            <!--录音笔开始-->
            <div id="box10" v-if="selectType === '10'" class="contentBox">
                <div class="form-group">
                    <label class="col-sm-3 control-label  is-required">设备品牌：</label>
                    <div class="col-sm-8">
                        <input name="propertyBrand" required class="form-control" type="text">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label is-required">资产型号：</label>
                    <div class="col-sm-8">
                        <input name="propertyNo" required class="form-control" type="text">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">设备SN：</label>
                    <div class="col-sm-8">
                        <input name="propertySn" class="form-control" type="text">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">备注：</label>
                    <div class="col-sm-8">
                        <textarea name="remark" class="form-control"></textarea>
                    </div>
                </div>
            </div>
            <!--录音笔结束-->
            <!--光盘开始-->
            <div id="box11" v-if="selectType === '11'" class="contentBox">
                <div class="form-group">
                    <label class="col-sm-3 control-label  is-required">设备品牌：</label>
                    <div class="col-sm-8">
                        <input name="propertyBrand" required class="form-control" type="text">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label is-required">资产型号：</label>
                    <div class="col-sm-8">
                        <input name="propertyNo" required class="form-control" type="text">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">设备SN：</label>
                    <div class="col-sm-8">
                        <input name="propertySn" class="form-control" type="text">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">备注：</label>
                    <div class="col-sm-8">
                        <textarea name="remark" class="form-control"></textarea>
                    </div>
                </div>
            </div>
            <!--光盘结束-->
            <!--软盘开始-->
            <div id="box12" v-if="selectType === '12'" class="contentBox">
                <div class="form-group">
                    <label class="col-sm-3 control-label  is-required">设备品牌：</label>
                    <div class="col-sm-8">
                        <input name="propertyBrand" required class="form-control" type="text">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label is-required">资产型号：</label>
                    <div class="col-sm-8">
                        <input name="propertyNo" required class="form-control" type="text">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">设备SN：</label>
                    <div class="col-sm-8">
                        <input name="propertySn" class="form-control" type="text">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">备注：</label>
                    <div class="col-sm-8">
                        <textarea name="remark" class="form-control"></textarea>
                    </div>
                </div>
            </div>
            <!--软盘结束-->
            <!--其他开始-->
            <div id="box13" v-if="selectType === '13'" class="contentBox">
                <div class="form-group">
                    <label class="col-sm-3 control-label  is-required">设备品牌：</label>
                    <div class="col-sm-8">
                        <input name="propertyBrand" required class="form-control" type="text">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label is-required">资产型号：</label>
                    <div class="col-sm-8">
                        <input name="propertyNo" required class="form-control" type="text">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">设备SN：</label>
                    <div class="col-sm-8">
                        <input name="propertySn" class="form-control" type="text">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">备注：</label>
                    <div class="col-sm-8">
                        <textarea name="remark" class="form-control"></textarea>
                    </div>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script th:inline="javascript">
        var app = new Vue({
            el: '#app',
            data: {
                message: 'Hello Vue!',
                selectType:'0',
            },
            methods:{

            }
        })
        var prefix = ctx + "system/property/data"
        $("#form-propertyinfo-add").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/add", $('#form-propertyinfo-add').serialize());
            }
        }

        $("input[name='maintainDate']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='destoryDate']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });
    </script>
</body>
</html>
