|
@@ -38,108 +38,7 @@
|
|
|
<div class="ui-layout-center">
|
|
|
<div class="container-div">
|
|
|
<div class="row">
|
|
|
- <!--<div class="col-sm-12 search-collapse" >
|
|
|
- <form id="SXzglDownloadManagement-form">
|
|
|
- <input type="hidden" id="deptId" name="deptId">
|
|
|
- <input type="hidden" id="parentId" name="parentId">
|
|
|
- <div class="select-list" >
|
|
|
- <ul>
|
|
|
- <li>
|
|
|
- 创建人:<input type="text" class="styled-input" name="createdBy" autocomplete="off"/>
|
|
|
- </li>
|
|
|
- <li>
|
|
|
- 创建日期:<input type="text" class="styled-input" name="createdDate" autocomplete="off"/>
|
|
|
- </li>
|
|
|
- <li>
|
|
|
- 最后更新人:<input type="text" class="styled-input" name="lastModifiedBy" autocomplete="off"/>
|
|
|
- </li>
|
|
|
- <li>
|
|
|
- 最后更新日期:<input type="text" class="styled-input" name="lastModifiedDate" autocomplete="off"/>
|
|
|
- </li>
|
|
|
- <li>
|
|
|
- 业务id:<input type="text" class="styled-input" name="businessId" autocomplete="off"/>
|
|
|
- </li>
|
|
|
- <li>
|
|
|
- 类型:<input type="text" class="styled-input" name="type" autocomplete="off"/>
|
|
|
- </li>
|
|
|
- <li>
|
|
|
- 任务名称:<input type="text" class="styled-input" name="name" autocomplete="off"/>
|
|
|
- </li>
|
|
|
- <li>
|
|
|
- 平台类型1:<input type="text" class="styled-input" name="platformType" autocomplete="off"/>
|
|
|
- </li>
|
|
|
- <li>
|
|
|
- 文件名称全路径:<input type="text" class="styled-input" name="fileName" autocomplete="off"/>
|
|
|
- </li>
|
|
|
- <li>
|
|
|
- 文件渠道位置1:<input type="text" class="styled-input" name="filePlace" autocomplete="off"/>
|
|
|
- </li>
|
|
|
- <li>
|
|
|
- 文件下载地址:<input type="text" class="styled-input" name="fileUrl" autocomplete="off"/>
|
|
|
- </li>
|
|
|
- <li>
|
|
|
- 原因:成功:<input type="text" class="styled-input" name="reason" autocomplete="off"/>
|
|
|
- </li>
|
|
|
- <li>
|
|
|
- 状态:为数字代表:<input type="text" class="styled-input" name="status" autocomplete="off"/>
|
|
|
- </li>
|
|
|
- <li>
|
|
|
- 请求接口路径例如:/chronicdisease/api/chronic/downloadExcel:<input type="text" class="styled-input" name="requestUrl" autocomplete="off"/>
|
|
|
- </li>
|
|
|
- <li>
|
|
|
- 请求参数{}:<input type="text" class="styled-input" name="requestParam" autocomplete="off"/>
|
|
|
- </li>
|
|
|
- <li>
|
|
|
- 请求类型:1,2,3:<input type="text" class="styled-input" name="requestType" autocomplete="off"/>
|
|
|
- </li>
|
|
|
- <li>
|
|
|
- 耗时:{"completeTime":"2024-06-29 20:11:48","startTime":"2024-06-29 20:11:43","spendTime":"5秒"}:<input type="text" class="styled-input" name="extend" autocomplete="off"/>
|
|
|
- </li>
|
|
|
- <li>
|
|
|
- 扩展JSON对象:<input type="text" class="styled-input" name="extendJson" autocomplete="off"/>
|
|
|
- </li>
|
|
|
- <li>
|
|
|
- 版本号:<input type="text" class="styled-input" name="version" autocomplete="off"/>
|
|
|
- </li>
|
|
|
- <li>
|
|
|
- 开始日期:<input type="text" class="styled-input" name="startTime" autocomplete="off"/>
|
|
|
- </li>
|
|
|
- <li>
|
|
|
- 结束日期:<input type="text" class="styled-input" name="endTime" autocomplete="off"/>
|
|
|
- </li>
|
|
|
- <li>
|
|
|
- 是否可以重新下载 值为true 和false:<input type="text" class="styled-input" name="canReload" autocomplete="off"/>
|
|
|
- </li>
|
|
|
- <li>
|
|
|
- 创建人:<input type="text" class="styled-input" name="createName" autocomplete="off"/>
|
|
|
- </li>
|
|
|
- <li style="text-align: center">
|
|
|
- <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i> 搜索</a>
|
|
|
- <a class="btn btn-warning btn-rounded btn-sm" onclick="resetPre()"><i class="fa fa-refresh"></i> 重置</a>
|
|
|
- </li>
|
|
|
- </ul>
|
|
|
- </div>
|
|
|
-
|
|
|
- </form>
|
|
|
- </div>
|
|
|
-
|
|
|
- <div class="btn-group-sm" id="toolbar" role="group">
|
|
|
- <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="system:user:add">
|
|
|
- <i class="fa fa-plus"></i> 新增
|
|
|
- </a>
|
|
|
- <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="system:user:edit">
|
|
|
- <i class="fa fa-edit"></i> 修改
|
|
|
- </a>
|
|
|
- <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:user:remove">
|
|
|
- <i class="fa fa-remove"></i> 删除
|
|
|
- </a>
|
|
|
- <a class="btn btn-info" onclick="$.table.importExcel()" shiro:hasPermission="system:user:import">
|
|
|
- <i class="fa fa-upload"></i> 导入
|
|
|
- </a>
|
|
|
- <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:user:export">
|
|
|
- <i class="fa fa-download"></i> 导出
|
|
|
- </a>
|
|
|
- </div>-->
|
|
|
+ <h4>任务列表</h4>
|
|
|
<div class="btn-group-sm" id="toolbar" role="group">
|
|
|
<a class="btn btn-success" onclick="" shiro:hasPermission="system:user:add">
|
|
|
<i class="fa fa-download"></i> 正在下载
|
|
@@ -187,9 +86,9 @@
|
|
|
createUrl: prefix + "/sXzglDownloadManagementAdd",
|
|
|
updateUrl: prefix + "/sXzglDownloadManagementEdit/{id}",
|
|
|
removeUrl: prefix + "/sXzglDownloadManagementRemove",
|
|
|
- /*exportUrl: prefix + "/export",
|
|
|
+ exportUrl: prefix + "/export",
|
|
|
importUrl: prefix + "/importData",
|
|
|
- importTemplateUrl: prefix + "/importTemplate",*/
|
|
|
+ importTemplateUrl: prefix + "/importTemplate",
|
|
|
sortName: "id",
|
|
|
sortOrder: "asc",
|
|
|
modalName: "下载管理表",
|
|
@@ -204,38 +103,43 @@
|
|
|
checkbox: true
|
|
|
},
|
|
|
{ field: 'id', title: '主键', align: 'center' ,visible:false},
|
|
|
- { field: 'createdBy', title: '创建人', align: 'center' },
|
|
|
- { field: 'createdDate', title: '创建日期', align: 'center' },
|
|
|
- { field: 'lastModifiedBy', title: '最后更新人', align: 'center' },
|
|
|
- { field: 'lastModifiedDate', title: '最后更新日期', align: 'center' },
|
|
|
- { field: 'businessId', title: '业务id', align: 'center' },
|
|
|
- { field: 'type', title: '类型', align: 'center' },
|
|
|
- { field: 'name', title: '任务名称', align: 'center' },
|
|
|
- { field: 'platformType', title: '平台类型1', align: 'center' },
|
|
|
- { field: 'fileName', title: '文件名称全路径', align: 'center' },
|
|
|
- { field: 'filePlace', title: '文件渠道位置1', align: 'center' },
|
|
|
- { field: 'fileUrl', title: '文件下载地址', align: 'center' },
|
|
|
- { field: 'reason', title: '原因:成功', align: 'center' },
|
|
|
- { field: 'status', title: '状态:为数字代表', align: 'center' },
|
|
|
- { field: 'requestUrl', title: '请求接口路径例如:/chronicdisease/api/chronic/downloadExcel', align: 'center' },
|
|
|
- { field: 'requestParam', title: '请求参数{}', align: 'center' },
|
|
|
- { field: 'requestType', title: '请求类型:1,2,3', align: 'center' },
|
|
|
- { field: 'extend', title: '耗时:{"completeTime":"2024-06-29 20:11:48","startTime":"2024-06-29 20:11:43","spendTime":"5秒"}', align: 'center' },
|
|
|
- { field: 'extendJson', title: '扩展JSON对象', align: 'center' },
|
|
|
- { field: 'version', title: '版本号', align: 'center' },
|
|
|
- { field: 'startTime', title: '开始日期', align: 'center' },
|
|
|
- { field: 'endTime', title: '结束日期', align: 'center' },
|
|
|
- { field: 'canReload', title: '是否可以重新下载 值为true 和false', align: 'center' },
|
|
|
- { field: 'createName', title: '创建人', align: 'center' },
|
|
|
-
|
|
|
+ { field: 'name', title: '任务名称', align: 'center' },
|
|
|
+ { field: 'startTime', title: '开始日期', align: 'center' },
|
|
|
+ { field: 'endTime', title: '结束日期', align: 'center' },
|
|
|
+ { field: 'createdDate', title: '创建时间', align: 'center' },
|
|
|
+ {
|
|
|
+ field: 'extend',
|
|
|
+ title: '耗时',
|
|
|
+ align: 'center',
|
|
|
+ formatter: function(value, row, index) {
|
|
|
+ if (value) {
|
|
|
+ try {
|
|
|
+ // 尝试将字符串解析为 JSON 对象
|
|
|
+ var extendObj = JSON.parse(value);
|
|
|
+ return '<span style="color: #00B83F">' + extendObj.spendTime + '</span>';
|
|
|
+ } catch (e) {
|
|
|
+ // 如果解析失败,返回原始值或空字符串
|
|
|
+ console.error('Failed to parse extend value:', e);
|
|
|
+ return value;
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ return '';
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ { field: 'status', title: '状态', align: 'center',
|
|
|
+ formatter: function (value, row, index) {
|
|
|
+ return statusTools(row);
|
|
|
+ }
|
|
|
+ },
|
|
|
{
|
|
|
title: '操作',
|
|
|
align: 'center',
|
|
|
formatter: function(value, row, index) {
|
|
|
if (row.id) {
|
|
|
var actions = [];
|
|
|
- actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.save(\'' + row.id + '\')"><i class="fa fa-edit"></i>保存到本地</a> ');
|
|
|
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a> ');
|
|
|
+ actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.save(\'' + row.id + '\')"><i class="fa fa-edit"></i>保存到本地</a> ');
|
|
|
return actions.join('');
|
|
|
} else {
|
|
|
return "";
|
|
@@ -269,12 +173,12 @@
|
|
|
$.modal.openTab("修改" + table.options.modalName, url + "?editTage=1" );
|
|
|
}
|
|
|
|
|
|
- /* 用户状态显示 */
|
|
|
+ /* 用户状态显示1成功,2进行中 */
|
|
|
function statusTools(row) {
|
|
|
if (row.status == 1) {
|
|
|
- return '<i class=\"fa fa-toggle-off text-info fa-2x\" onclick="enable(\'' + row.userId + '\')"></i> ';
|
|
|
+ return '<span style="color: #00B83F">成功</span>';
|
|
|
} else {
|
|
|
- return '<i class=\"fa fa-toggle-on text-info fa-2x\" onclick="disable(\'' + row.userId + '\')"></i> ';
|
|
|
+ return '<span style="color: #005cc5">进行中</span>';
|
|
|
}
|
|
|
}
|
|
|
</script>
|