labelGroupEdit.html 1.69 KB
<!DOCTYPE html>
<div id="tt" class="easyui-layout" fit="true" style="overflow-y: scroll">
    <form name="activityAddForm" id="activityAddForm" method="post" enctype="multipart/form-data">
        <div style="margin-top: 20px;margin-left: 30px">
            <table border="0" style="width:95%;margin-top:5px;line-height:30px;" id="tab">

                <tr style="height: 60px">

                    <td >
                        <span style="color:red">*</span><label>分组名称</label>  <br>
                        <input id="groupName" name="groupName" class="easyui-textbox" style="width: 380px;"/>
                    </td>
                </tr>

                <tr style="height: 60px">
                    <td>
                        <span style="color:red">*</span><label>标签状态</label> <br>
                        <input type="radio" value="1" checked  name="status" style="width:30px">开启</input>
                        <input type="radio" value="0"  name="status" style="width:30px">关闭</input>
                    </td>
                </tr>

            </table>
        </div>
    </form>
</div>
<script>
    $(function () {

        $("#groupName").textbox({
            required: true,
            missingMessage: "分组名称不能为空",
            prompt: "请输入分组名称"
        });



        var data = paramObject.mkData;


        if (data){

            $("#groupName").textbox("setValue", data.groupName);
            if(data.status == 0){
                $(":radio[name='status'][value='0']").prop("checked",true);
            }else if(data.status == 1){
                $(":radio[name='status'][value='1']").prop("checked",true);
            }
        }

    });


</script>