<!-- 系统自动生成 Date:2020-12-21 11:03 -->
<#include "/common/defaultEngine.html"/>
<@pageTheme mark="${config.optimize()?string('true', 'false')}">
<@header title="修改测试异步树" bodyClass="white-bg" libs=["bootstrapSelect"]/>
<div class="wrapper wrapper-content ibox-content">
<@f.form id="form-asyncTree-edit"  class="form-horizontal">
    <@f.hidden name="id" value="${exampleAsyncTree.id?default('')}"/>
    <div class="form-group">
        <label class="col-sm-3 control-label">
            <span style="color: red; ">* </span>
            <@ctx.i18n text = "父级ID"/>：
        </label>
        <div class="col-sm-8">
            <@f.treeselect id="parentId" name="parentId" boxTitle="选择父级ID" url="demo/asyncTree/treeData"
             value="${exampleAsyncTree.parentId}" labelValue="${exampleAsyncTree.parentName?default('根节点')}"
             placeholder="请选择父级ID"  required=true helpTip="请点击选择父级节点"/>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">
            <span style="color: red; ">* </span>
            <@ctx.i18n text = "节点名称"/>：
        </label>
        <div class="col-sm-8">
            <@f.input name="name" value="${exampleAsyncTree.name?default('')}"   required=true />
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">
            <@ctx.i18n text = "节点全称"/>：
        </label>
        <div class="col-sm-8">
            <@f.input name="fullName" value="${exampleAsyncTree.fullName?default('')}"   />
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">
            <@ctx.i18n text = "状态"/>：
        </label>
        <div class="col-sm-8">
            <@f.radio name="status" dictType="sys_status" value="${exampleAsyncTree.status?default('')}"  />
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">
            <@ctx.i18n text = "备注信息"/>：
        </label>
        <div class="col-sm-8">
            <@f.textarea name="remark" value="${exampleAsyncTree.remark?default('')}" />
        </div>
    </div>
</@f.form>
</div>
<@footer>
<script type="text/javascript">
    var prefix = baseURL + "demo/asyncTree";
    /**表单验证*/
    <@compress single_line=true>
    $("#form-asyncTree-edit").validate({
        focusCleanup: true
    });
    </@compress>

    /**
     * 点击确定回调事件
     */
    function submitHandler() {
        if (opt.validate.form()) {
            opt.operate.save(prefix + "/edit", $('#form-asyncTree-edit').serialize());
        }
    }
</script>
</@footer>
</@pageTheme>
