<!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 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 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>
            <!--其他结束-->
<!--            <div class="form-group">-->
<!--                <label class="col-sm-3 control-label">登记编号：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="id" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">-->
<!--                <label class="col-sm-3 control-label">资产编号：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="useId" 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">设备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">涉密网络终端：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <select name="propertyNetstyle" class="form-control m-b" th:with="type=${@dict.getType('sys_file_miji')}">-->
<!--                        <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 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">资产名称：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <p id="showValue" style="height: 40px;line-height: 40px;color: white;background-color: black;"></p>-->
<!--                    <input name="propertyName" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">-->
<!--                <label class="col-sm-3 control-label">计算机类型：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="computerType" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">-->
<!--                <label class="col-sm-3 control-label">资产密级：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <select name="propertyMiji" class="form-control m-b" th:with="type=${@dict.getType('sys_file_miji')}">-->
<!--                        <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">设备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 class="form-group">-->
<!--                <label class="col-sm-3 control-label">是否是要害部门，部位：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <select name="isCurcial" class="form-control m-b" th:with="type=${@dict.getType('sys_yes_no')}">-->
<!--                        <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">-->
<!--                    <select name="isSoftware" class="form-control m-b" th:with="type=${@dict.getType('sys_yes_no')}">-->
<!--                        <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">-->
<!--                    <input name="username" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">-->
<!--                <label class="col-sm-3 control-label">维护部门：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="maintainDepart" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">-->
<!--                <label class="col-sm-3 control-label">维护人员：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="maintainUser" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">-->
<!--                <label class="col-sm-3 control-label">维护日期：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <div class="input-group date">-->
<!--                        <input name="maintainDate" class="form-control" placeholder="yyyy-MM-dd" type="text">-->
<!--                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>-->
<!--                    </div>-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">-->
<!--                <label class="col-sm-3 control-label">维护状态：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="maintainState" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">-->
<!--                <label class="col-sm-3 control-label">销毁状态：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="destoryState" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">-->
<!--                <label class="col-sm-3 control-label">销毁部门：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="destoryDepart" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">-->
<!--                <label class="col-sm-3 control-label">销毁人员：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="destoryUser" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">-->
<!--                <label class="col-sm-3 control-label">销毁日期：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <div class="input-group date">-->
<!--                        <input name="destoryDate" class="form-control" placeholder="yyyy-MM-dd" type="text">-->
<!--                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>-->
<!--                    </div>-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">-->
<!--                <label class="col-sm-3 control-label">设备描述：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="propertyRefer" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">-->
<!--                <label class="col-sm-3 control-label">维护备注：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="maintainRemark" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">-->
<!--                <label class="col-sm-3 control-label">涉密程度：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <select name="shemichengdu" class="form-control m-b" th:with="type=${@dict.getType('sys_user_shemi')}">-->
<!--                        <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">-->
<!--                    <input name="part" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <!-- 开发环境版本，包含了有帮助的命令行警告 -->
    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
    <script th:inline="javascript">
        var app = new Vue({
            el: '#app',
            data: {
                message: 'Hello Vue!',
                selectType:'0',
            },
            methods:{

            }
        })
        // window.onload = function() {
        //     var selectElement = document.getElementById("select1");
        //     // 初始化时显示第一个选项的内容
        //     showContentForOption(selectElement.value);
        //     // 添加事件监听器以便在选择更改时更新内容
        //     selectElement.addEventListener('change', function() {
        //         showContentForOption(this.value);
        //     });
        // };
        // function showContentForOption(optionValue) {
        //     // 首先将所有内容盒子设置为不可见
        //     var contentBoxes = document.getElementsByClassName("contentBox");
        //     for (var i = 0; i < contentBoxes.length; i++) {
        //         contentBoxes[i].style.display = "none";
        //     }
        //     // 如果选中了有效的选项，则显示对应的内容盒子
        //     if (!isNaN(parseInt(optionValue))) {
        //         var boxId = 'box' + optionValue;
        //         var chosenBox = document.getElementById(boxId);
        //         chosenBox.style.display = "block";
        //     }
        // }
        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>
