parent
21156428dc
commit
1774dc70ef
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,160 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title></title>
|
||||
<link rel="stylesheet" href="../../../component/pear/css/pear.css" />
|
||||
<link rel="stylesheet" href="../iconfont/iconfont.css" />
|
||||
|
||||
</head>
|
||||
|
||||
<body class="pear-container layui-form">
|
||||
|
||||
<div class="layui-card" style="margin-bottom: 10px !important;">
|
||||
<div class="layui-card-body">
|
||||
<div class="layui-form-item" style="margin: 10px 0 5px 0 !important;">
|
||||
<div class="layui-form-item layui-inline">
|
||||
<label class="layui-form-label" style="width: auto;">填报状态:</label>
|
||||
<div class="layui-input-inline">
|
||||
<select id="status" lay-filter="status">
|
||||
<option value="-1">全部</option>
|
||||
<option value="1">已填报</option>
|
||||
<option value="0">未填报</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item layui-inline">
|
||||
<label class="layui-form-label" style="width: auto;">单位名称:</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="org_name" lay-affix="clear" lay-filter="clear" placeholder="请输入单位名称"
|
||||
class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item layui-inline">
|
||||
<button class="pear-btn pear-btn-md pear-btn-primary" lay-submit lay-filter="user-query">
|
||||
<i class="layui-icon layui-icon-search"></i>
|
||||
查询
|
||||
</button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-card">
|
||||
<div class="layui-card-body">
|
||||
<table id="data-table"></table>
|
||||
<script type="text/html" id="status-Templet">
|
||||
{{# if(d.is_finish === 0){ }}
|
||||
未填报
|
||||
{{# } else { }}
|
||||
<span style="color: #16BAAA;">已填报</span>
|
||||
{{# } }}
|
||||
</script>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<script type="text/html" id="table-bar">
|
||||
|
||||
{{# if(d.is_finish === 1){ }}
|
||||
<button type="button" class="layui-btn layui-btn-sm" title="填报" lay-event="view" style="font-size: 12px !important;">
|
||||
<i class="iconfont icon-chakan"></i> 查看
|
||||
</button>
|
||||
<button type="button" class="layui-btn layui-btn-sm" title="填报" lay-event="download" style="font-size: 12px !important;">
|
||||
<i class="iconfont icon-xiazai"></i> 下载
|
||||
</button>
|
||||
{{# } }}
|
||||
|
||||
</script>
|
||||
|
||||
<script src="../../../component/layui/layui.js"></script>
|
||||
<script src="../../../component/pear/pear.js"></script>
|
||||
<script src="../../../component/pear/base64.js"></script>
|
||||
|
||||
<script>
|
||||
layui.use(['table', 'form', 'jquery', 'common', 'dtree', 'laytpl'], function () {
|
||||
var table = layui.table;
|
||||
var form = layui.form;
|
||||
var $ = layui.jquery;
|
||||
var common = layui.common;
|
||||
var laytpl = layui.laytpl;
|
||||
|
||||
var jobId = GetQueryString("job_id");
|
||||
|
||||
tableRender();
|
||||
|
||||
form.on('submit(user-query)', function () {
|
||||
tableRender();
|
||||
return false;
|
||||
});
|
||||
|
||||
form.on('input-affix(clear)', function (data) {
|
||||
tableRender();
|
||||
});
|
||||
|
||||
function tableRender() {
|
||||
table.render({
|
||||
elem: '#data-table',
|
||||
url: '/QingLong/collect/viewJob',
|
||||
where: {
|
||||
job_id: jobId,
|
||||
is_finish: $("#status").val(),
|
||||
keyword: $("#org_name").val()
|
||||
},
|
||||
height: 'full-130',
|
||||
page: {
|
||||
limit: 15
|
||||
, layout: ['count', 'prev', 'page', 'next', 'skip']
|
||||
, prev: "上一页"
|
||||
, next: "下一页"
|
||||
},
|
||||
cols: [[
|
||||
{ title: '序号', align: 'center', width: "5%", type: 'numbers' },
|
||||
{ title: '单位名称', field: 'bureau_name', align: 'center' },
|
||||
{ title: '填报状态', align: 'center', width: "10%", templet: '#status-Templet' },
|
||||
{ title: '填报时间', field: 'fill_time', align: 'center', width: "20%" },
|
||||
{ title: '操作', align: 'center', width: "20%", toolbar: '#table-bar' }
|
||||
]],
|
||||
skin: 'line',
|
||||
defaultToolbar: []
|
||||
});
|
||||
}
|
||||
|
||||
table.on('tool(data-table)', function (obj) {
|
||||
if (obj.event === 'view') {
|
||||
window.view(obj);
|
||||
} else if (obj.event === 'download') {
|
||||
window.download(obj);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
window.download = function (obj) {
|
||||
window.location = '/QingLong/collect/getJobBureauFillInfo?job_id=' + obj.data.job_id + '&bureau_id=' + obj.data.bureau_id + '&type_id=1';
|
||||
}
|
||||
|
||||
window.view = function (obj) {
|
||||
var base64Url = Base64.encode('/QingLong/collect/getJobBureauFillInfo?job_id=' + obj.data.job_id + '&bureau_id=' + obj.data.bureau_id + '&type_id=2');
|
||||
window.open('../exportPdf.html?url=' + base64Url, '_blank');
|
||||
}
|
||||
|
||||
function GetQueryString(name, istop) {
|
||||
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
|
||||
var r = window.location.search.substr(1).match(reg);
|
||||
if (typeof (istop) != "undefined") r = top.location.search.substr(1).match(reg);
|
||||
|
||||
if (r != null) return unescape(r[2]);
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
Loading…
Reference in new issue