<!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 id="form-SXzglDownloadManagement-add" class="customize-search-form">
        <div class="customize-form-group-container">
            <div class="customize-form-group">
                <label>创建人:</label>
                <input name="createdBy" placeholder="创建人"  id="createdBy" class="styled-input" type="text">
            </div>
            <div class="customize-form-group">
                <label>创建日期:</label>
                <input name="createdDate" placeholder="创建日期"  id="createdDate" class="styled-input" type="text">
            </div>
            <div class="customize-form-group">
                <label>最后更新人:</label>
                <input name="lastModifiedBy" placeholder="最后更新人"  id="lastModifiedBy" class="styled-input" type="text">
            </div>
            <div class="customize-form-group">
                <label>最后更新日期:</label>
                <input name="lastModifiedDate" placeholder="最后更新日期"  id="lastModifiedDate" class="styled-input" type="text">
            </div>
            <div class="customize-form-group">
                <label>业务id:</label>
                <input name="businessId" placeholder="业务id"  id="businessId" class="styled-input" type="text">
            </div>
            <div class="customize-form-group">
                <label>类型:</label>
                <input name="type" placeholder="类型"  id="type" class="styled-input" type="text">
            </div>
            <div class="customize-form-group">
                <label>任务名称:</label>
                <input name="name" placeholder="任务名称"  id="name" class="styled-input" type="text">
            </div>
            <div class="customize-form-group">
                <label>平台类型1:</label>
                <input name="platformType" placeholder="平台类型1"  id="platformType" class="styled-input" type="text">
            </div>
            <div class="customize-form-group">
                <label>文件名称全路径:</label>
                <input name="fileName" placeholder="文件名称全路径"  id="fileName" class="styled-input" type="text">
            </div>
            <div class="customize-form-group">
                <label>文件渠道位置1:</label>
                <input name="filePlace" placeholder="文件渠道位置1"  id="filePlace" class="styled-input" type="text">
            </div>
            <div class="customize-form-group">
                <label>文件下载地址:</label>
                <input name="fileUrl" placeholder="文件下载地址"  id="fileUrl" class="styled-input" type="text">
            </div>
            <div class="customize-form-group">
                <label>原因:成功:</label>
                <input name="reason" placeholder="原因:成功"  id="reason" class="styled-input" type="text">
            </div>
            <div class="customize-form-group">
                <label>状态：为数字代表:</label>
                <input name="status" placeholder="状态：为数字代表"  id="status" class="styled-input" type="text">
            </div>
            <div class="customize-form-group">
                <label>请求接口路径例如:/chronicdisease/api/chronic/downloadExcel:</label>
                <input name="requestUrl" placeholder="请求接口路径例如:/chronicdisease/api/chronic/downloadExcel"  id="requestUrl" class="styled-input" type="text">
            </div>
            <div class="customize-form-group">
                <label>请求参数{}:</label>
                <input name="requestParam" placeholder="请求参数{}"  id="requestParam" class="styled-input" type="text">
            </div>
            <div class="customize-form-group">
                <label>请求类型:1,2,3:</label>
                <input name="requestType" placeholder="请求类型:1,2,3"  id="requestType" class="styled-input" type="text">
            </div>
            <div class="customize-form-group">
                <label>耗时:{"completeTime":"2024-06-29 20:11:48","startTime":"2024-06-29 20:11:43","spendTime":"5秒"}:</label>
                <input name="extend" placeholder="耗时:{"completeTime":"2024-06-29 20:11:48","startTime":"2024-06-29 20:11:43","spendTime":"5秒"}"  id="extend" class="styled-input" type="text">
            </div>
            <div class="customize-form-group">
                <label>扩展JSON对象:</label>
                <input name="extendJson" placeholder="扩展JSON对象"  id="extendJson" class="styled-input" type="text">
            </div>
            <div class="customize-form-group">
                <label>版本号:</label>
                <input name="version" placeholder="版本号"  id="version" class="styled-input" type="text">
            </div>
            <div class="customize-form-group">
                <label>开始日期:</label>
                <input name="startTime" placeholder="开始日期"  id="startTime" class="styled-input" type="text">
            </div>
            <div class="customize-form-group">
                <label>结束日期:</label>
                <input name="endTime" placeholder="结束日期"  id="endTime" class="styled-input" type="text">
            </div>
            <div class="customize-form-group">
                <label>是否可以重新下载 值为true 和false:</label>
                <input name="canReload" placeholder="是否可以重新下载 值为true 和false"  id="canReload" class="styled-input" type="text">
            </div>
            <div class="customize-form-group">
                <label>创建人:</label>
                <input name="createName" placeholder="创建人"  id="createName" class="styled-input" type="text">
            </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 data = $("#form-SXzglDownloadManagement-add").serializeArray();
        $.ajax({
            cache : true,
            type : "POST",
            url : ctx + "xzgl/sxzgldownloadmanagement/sXzglDownloadManagementAdd",
            data : data,
            async : false,
            error : function(request) {
                $.modal.alertError("系统错误");
            },
            success : function(data) {
                $.operate.successCallback(data);
            }
        });
    }
</script>
</body>
</html>
