|
|
|
@ -62,16 +62,21 @@
|
|
|
|
|
<i class="iconfont icon-tianbao"></i> 填报
|
|
|
|
|
</button>
|
|
|
|
|
{{# } }}
|
|
|
|
|
<button type="button" class="layui-btn layui-btn-sm" lay-event="view" style="font-size: 12px !important;">
|
|
|
|
|
<i class="iconfont icon-chakan"></i> 查看
|
|
|
|
|
<button type="button" class="layui-btn layui-btn-sm" lay-event="viewTaskInfo" style="font-size: 12px !important;">
|
|
|
|
|
<i class="iconfont icon-chakanxiangqing"></i> 查看任务详情
|
|
|
|
|
</button>
|
|
|
|
|
{{# if(d.is_finish === 1){ }}
|
|
|
|
|
{{# if(d.is_finish === 1){ }}
|
|
|
|
|
<button type="button" class="layui-btn layui-btn-sm" lay-event="viewReportInfo" style="font-size: 12px !important;">
|
|
|
|
|
<i class="iconfont icon-chakan"></i> 查看填报详情
|
|
|
|
|
</button>
|
|
|
|
|
{{# } }}
|
|
|
|
|
<!-- {{# if(d.is_finish === 1){ }}
|
|
|
|
|
{{# if(d.job_type === 2){ }}
|
|
|
|
|
<button type="button" class="layui-btn layui-btn-sm" lay-event="download" style="font-size: 12px !important;">
|
|
|
|
|
<i class="iconfont icon-xiazai"></i> 下载
|
|
|
|
|
</button>
|
|
|
|
|
{{# } }}
|
|
|
|
|
{{# } }}
|
|
|
|
|
{{# } }} -->
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<script src="../../../component/layui/layui.js"></script>
|
|
|
|
@ -117,21 +122,33 @@
|
|
|
|
|
cols: [[
|
|
|
|
|
{ title: '序号', unresize: true, align: 'center', width: "5%", type: 'numbers' },
|
|
|
|
|
{ title: '任务名称', unresize: true, align: 'left', templet: '#jobName-Templet' },
|
|
|
|
|
{ title: '发布日期', unresize: true, field: 'publish_time', align: 'center', width: "15%" },
|
|
|
|
|
{ title: '截止日期', unresize: true, field: 'deadline_time', align: 'center', width: "15%" },
|
|
|
|
|
{ title: '发布日期', unresize: true, field: 'publish_time', align: 'center', width: "10%" },
|
|
|
|
|
{ title: '截止日期', unresize: true, field: 'deadline_time', align: 'center', width: "10%" },
|
|
|
|
|
{ title: '发布对象', unresize: true, align: 'center', width: "8%", templet: '#targetType' },
|
|
|
|
|
{ title: '操作', unresize: true, align: 'center', width: "15%", toolbar: '#table-bar' }
|
|
|
|
|
{ title: '操作', unresize: true, align: 'left', width: "25%", toolbar: '#table-bar' }
|
|
|
|
|
]],
|
|
|
|
|
skin: 'line',
|
|
|
|
|
defaultToolbar: []
|
|
|
|
|
defaultToolbar: [],
|
|
|
|
|
parseData: function (res) { // res 即为原始返回的数据
|
|
|
|
|
for (var i = 0; i < res.data.length; i++) {
|
|
|
|
|
if (res.data[i].status_code.toString().slice(-1) == "0") {
|
|
|
|
|
res.data[i].is_finish = 0;
|
|
|
|
|
} else {
|
|
|
|
|
res.data[i].is_finish = 1;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
table.on('tool(data-table)', function (obj) {
|
|
|
|
|
if (obj.event === 'report') {
|
|
|
|
|
window.report(obj);
|
|
|
|
|
} else if (obj.event === 'view') {
|
|
|
|
|
window.view(obj);
|
|
|
|
|
} else if (obj.event === 'viewTaskInfo') {
|
|
|
|
|
window.viewTaskInfo(obj);
|
|
|
|
|
} else if (obj.event === 'viewReportInfo') {
|
|
|
|
|
window.viewReportInfo(obj);
|
|
|
|
|
} else if (obj.event === 'download') {
|
|
|
|
|
window.download(obj);
|
|
|
|
|
}
|
|
|
|
@ -176,36 +193,37 @@
|
|
|
|
|
window.location = '/QingLong/collect/getJobBureauFillInfo?job_id=' + obj.data.job_id + '&type_id=1';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
window.view = function (obj) {
|
|
|
|
|
var lastDigit = String(obj.data.status_code).slice(-1);
|
|
|
|
|
if (lastDigit == "0") {
|
|
|
|
|
window.viewTaskInfo = function (obj) {
|
|
|
|
|
layer.open({
|
|
|
|
|
type: 2,
|
|
|
|
|
title: '查看任务详情',
|
|
|
|
|
shade: 0.1,
|
|
|
|
|
area: ['800px', '400px'],
|
|
|
|
|
content: '../dis/job_view.html?job_id=' + obj.data.job_id + "&status_code=" + obj.data.status_code + "&target_id=" + obj.data.target_id
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
window.viewReportInfo = function (obj) {
|
|
|
|
|
|
|
|
|
|
if (obj.data.job_type === 1) {
|
|
|
|
|
layer.open({
|
|
|
|
|
type: 2,
|
|
|
|
|
title: '查看',
|
|
|
|
|
offset: 'r',
|
|
|
|
|
anim: 'slideLeft',
|
|
|
|
|
area: ['1000px', '100%'],
|
|
|
|
|
shade: 0.1,
|
|
|
|
|
area: ['800px', '400px'],
|
|
|
|
|
content: '../dis/job_view.html?job_id=' + obj.data.job_id + "&status_code=" + obj.data.status_code + "&target_id=" + obj.data.target_id
|
|
|
|
|
shadeClose: true,
|
|
|
|
|
content: "../form/view.html?job_id=" + obj.data.job_id + "&target_id=" + obj.data.target_id + "&status_code=" + obj.data.status_code,
|
|
|
|
|
end: function () {
|
|
|
|
|
tableRender();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
if (obj.data.job_type === 1) {
|
|
|
|
|
layer.open({
|
|
|
|
|
type: 2,
|
|
|
|
|
title: '查看',
|
|
|
|
|
offset: 'r',
|
|
|
|
|
anim: 'slideLeft',
|
|
|
|
|
area: ['1000px', '100%'],
|
|
|
|
|
shade: 0.1,
|
|
|
|
|
shadeClose: true,
|
|
|
|
|
content: "../form/view.html?job_id=" + obj.data.job_id + "&target_id=" + obj.data.target_id + "&status_code=" + obj.data.status_code,
|
|
|
|
|
end: function () {
|
|
|
|
|
tableRender();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
var base64Url = Base64.encode('/QingLong/collect/getJobBureauFillInfo?job_id=' + obj.data.job_id + '&type_id=2' + '&status_code=' + obj.data.status_code);
|
|
|
|
|
window.open('../exportPdf.html?url=' + base64Url, '_blank');
|
|
|
|
|
}
|
|
|
|
|
var base64Url = Base64.encode('/QingLong/collect/getJobBureauFillInfo?job_id=' + obj.data.job_id + '&type_id=2' + '&status_code=' + obj.data.status_code);
|
|
|
|
|
window.open('../exportPdf.html?url=' + base64Url, '_blank');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
window.refresh = function (param) {
|
|
|
|
|