<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('下载管理表新增')" />
    <th:block th:include="include :: ztree-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-role-add">
        <div class="row">
            <div class="col-sm-12">
                <div class="form-group">
                    <!--is-required 增加星号 显示为必填-->
                            <label class="col-sm-3 control-label">创建人:</label>
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <input name="createdBy" id="createdBy" class="styled-input" type="text" maxlength="255" >
                                </div>
                            </div>
                            <label class="col-sm-3 control-label">创建日期:</label>
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <input name="createdDate" id="createdDate" class="styled-input" type="text" maxlength="255" >
                                </div>
                            </div>
                            <label class="col-sm-3 control-label">最后更新人:</label>
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <input name="lastModifiedBy" id="lastModifiedBy" class="styled-input" type="text" maxlength="255" >
                                </div>
                            </div>
                            <label class="col-sm-3 control-label">最后更新日期:</label>
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <input name="lastModifiedDate" id="lastModifiedDate" class="styled-input" type="text" maxlength="255" >
                                </div>
                            </div>
                            <label class="col-sm-3 control-label">业务id:</label>
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <input name="businessId" id="businessId" class="styled-input" type="text" maxlength="255" >
                                </div>
                            </div>
                            <label class="col-sm-3 control-label">类型:</label>
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <input name="type" id="type" class="styled-input" type="text" maxlength="255" >
                                </div>
                            </div>
                            <label class="col-sm-3 control-label">任务名称:</label>
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <input name="name" id="name" class="styled-input" type="text" maxlength="255" >
                                </div>
                            </div>
                            <label class="col-sm-3 control-label">平台类型1:</label>
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <input name="platformType" id="platformType" class="styled-input" type="text" maxlength="255" >
                                </div>
                            </div>
                            <label class="col-sm-3 control-label">文件名称全路径:</label>
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <input name="fileName" id="fileName" class="styled-input" type="text" maxlength="255" >
                                </div>
                            </div>
                            <label class="col-sm-3 control-label">文件渠道位置1:</label>
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <input name="filePlace" id="filePlace" class="styled-input" type="text" maxlength="255" >
                                </div>
                            </div>
                            <label class="col-sm-3 control-label">文件下载地址:</label>
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <input name="fileUrl" id="fileUrl" class="styled-input" type="text" maxlength="255" >
                                </div>
                            </div>
                            <label class="col-sm-3 control-label">原因:成功:</label>
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <input name="reason" id="reason" class="styled-input" type="text" maxlength="255" >
                                </div>
                            </div>
                            <label class="col-sm-3 control-label">状态：为数字代表:</label>
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <input name="status" id="status" class="styled-input" type="text" maxlength="255" >
                                </div>
                            </div>
                            <label class="col-sm-3 control-label">请求接口路径例如:/chronicdisease/api/chronic/downloadExcel:</label>
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <input name="requestUrl" id="requestUrl" class="styled-input" type="text" maxlength="255" >
                                </div>
                            </div>
                            <label class="col-sm-3 control-label">请求参数{}:</label>
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <input name="requestParam" id="requestParam" class="styled-input" type="text" maxlength="255" >
                                </div>
                            </div>
                            <label class="col-sm-3 control-label">请求类型:1,2,3:</label>
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <input name="requestType" id="requestType" class="styled-input" type="text" maxlength="255" >
                                </div>
                            </div>
                            <label class="col-sm-3 control-label">耗时:{"completeTime":"2024-06-29 20:11:48","startTime":"2024-06-29 20:11:43","spendTime":"5秒"}:</label>
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <input name="extend" id="extend" class="styled-input" type="text" maxlength="255" >
                                </div>
                            </div>
                            <label class="col-sm-3 control-label">扩展JSON对象:</label>
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <input name="extendJson" id="extendJson" class="styled-input" type="text" maxlength="255" >
                                </div>
                            </div>
                            <label class="col-sm-3 control-label">版本号:</label>
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <input name="version" id="version" class="styled-input" type="text" maxlength="255" >
                                </div>
                            </div>
                            <label class="col-sm-3 control-label">开始日期:</label>
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <input name="startTime" id="startTime" class="styled-input" type="text" maxlength="255" >
                                </div>
                            </div>
                            <label class="col-sm-3 control-label">结束日期:</label>
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <input name="endTime" id="endTime" class="styled-input" type="text" maxlength="255" >
                                </div>
                            </div>
                            <label class="col-sm-3 control-label">是否可以重新下载 值为true 和false:</label>
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <input name="canReload" id="canReload" class="styled-input" type="text" maxlength="255" >
                                </div>
                            </div>
                            <label class="col-sm-3 control-label">创建人:</label>
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <input name="createName" id="createName" class="styled-input" type="text" maxlength="255" >
                                </div>
                            </div>
                </div>
            </div>

        </div>
    </form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: ztree-js" />
<script type="text/javascript">

    function submitHandler() {
        if ($.validate.form()) {
            add();
        }
    }

    function add() {
           var createdBy = $("input[name='createdBy']").val();
           var createdDate = $("input[name='createdDate']").val();
           var lastModifiedBy = $("input[name='lastModifiedBy']").val();
           var lastModifiedDate = $("input[name='lastModifiedDate']").val();
           var businessId = $("input[name='businessId']").val();
           var type = $("input[name='type']").val();
           var name = $("input[name='name']").val();
           var platformType = $("input[name='platformType']").val();
           var fileName = $("input[name='fileName']").val();
           var filePlace = $("input[name='filePlace']").val();
           var fileUrl = $("input[name='fileUrl']").val();
           var reason = $("input[name='reason']").val();
           var status = $("input[name='status']").val();
           var requestUrl = $("input[name='requestUrl']").val();
           var requestParam = $("input[name='requestParam']").val();
           var requestType = $("input[name='requestType']").val();
           var extend = $("input[name='extend']").val();
           var extendJson = $("input[name='extendJson']").val();
           var version = $("input[name='version']").val();
           var startTime = $("input[name='startTime']").val();
           var endTime = $("input[name='endTime']").val();
           var canReload = $("input[name='canReload']").val();
           var createName = $("input[name='createName']").val();

        $.ajax({
            cache : true,
            type : "POST",
            url : ctx + "xzgl/sxzgldownloadmanagement/sXzglDownloadManagementAdd",
            data : {
                "createdBy": createdBy,
                "createdDate": createdDate,
                "lastModifiedBy": lastModifiedBy,
                "lastModifiedDate": lastModifiedDate,
                "businessId": businessId,
                "type": type,
                "name": name,
                "platformType": platformType,
                "fileName": fileName,
                "filePlace": filePlace,
                "fileUrl": fileUrl,
                "reason": reason,
                "status": status,
                "requestUrl": requestUrl,
                "requestParam": requestParam,
                "requestType": requestType,
                "extend": extend,
                "extendJson": extendJson,
                "version": version,
                "startTime": startTime,
                "endTime": endTime,
                "canReload": canReload,
                "createName": createName,
            },
            async : false,
            error : function(request) {
                $.modal.alertError("系统错误");
            },
            success : function(data) {
                $.operate.successCallback(data);
            }
        });
    }
</script>
</body>
</html>
