<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('账号管理修改')" />
</head>
<body>
<div class="ui-layout-center">
    <form id="form-SXtszMdzhglAccountmanagement-edit" class="customize-search-form">

        <div class="customize-form-group-container">
            <input type="hidden" id="id" name="id" th:value="${id}">

            <div class="customize-form-group">
                <label>账号名:</label>
                <input name="accountName" placeholder="账号名" th:value="${accountName}" class="styled-input" type="text">
            </div>
            <div class="customize-form-group">
                <label>姓名:</label>
                <input name="realName" placeholder="姓名" th:value="${realName}" class="styled-input" type="text">
            </div>
            <div class="customize-form-group">
                <label>手机号码:</label>
                <input name="mobileNumber" placeholder="手机号码" th:value="${mobileNumber}" class="styled-input" type="text">
            </div>
            <div class="customize-form-group">
                <label>二维码:</label>
                <input name="qrcodeUrl" placeholder="二维码" th:value="${qrcodeUrl}" class="styled-input" type="text">
            </div>
        </div>
    </form>
</div>
<div class="main-content">
    <div class="col-sm-offset-5 col-sm-10">
    </div>
</div>
<th:block th:include="include :: footer" />
</body>
</html>
<script>
    function edit() {
        var data = $("#form-SXtszMdzhglAccountmanagement-edit").serializeArray();
        $.ajax({
            cache : true,
            type : "POST",
            url : ctx + "xtsz/sxtszmdzhglaccountmanagement/sXtszMdzhglAccountmanagementEdit",
            data : data,
            async : false,
            error : function(request) {
                $.modal.alertError("系统错误");
            },
            success : function(data) {
                $.operate.successCallback(data);
            }
        });
    }

    function submitHandler() {
        if ($.validate.form()) {
            edit();
        }
    }
</script>
