2025-11-27 16:55:35 +08:00
|
|
|
|
<!DOCTYPE html>
|
|
|
|
|
|
<html lang="en">
|
|
|
|
|
|
<head>
|
|
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
|
|
<title>人才交易市场-用工公告审核</title>
|
|
|
|
|
|
<link rel="stylesheet" type="text/css" media="screen" href="../../../css/bootstrap.min.css">
|
|
|
|
|
|
<link rel="stylesheet" type="text/css" media="screen" href="../../../css/dataTables.bootstrap.min.css">
|
|
|
|
|
|
<link rel="stylesheet" type="text/css" media="screen" href="../../../layui/css/layui.css">
|
|
|
|
|
|
<link rel="stylesheet" type="text/css" media="screen" href="../../../css/work/basic/proManager.css">
|
|
|
|
|
|
<style>
|
|
|
|
|
|
.layui-form input[type=checkbox], .layui-form input[type=radio], .layui-form select {
|
|
|
|
|
|
display: inline !important;
|
|
|
|
|
|
}
|
|
|
|
|
|
</style>
|
|
|
|
|
|
</head>
|
|
|
|
|
|
<body>
|
|
|
|
|
|
<div>
|
|
|
|
|
|
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
|
|
|
|
|
|
<header style="height: 100%">
|
|
|
|
|
|
<div align="left">
|
|
|
|
|
|
<table style="width: 100%">
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
<td>
|
|
|
|
|
|
<form class="form-inline layui-form" onsubmit="return false">
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
|
<div class="layui-inline" >
|
|
|
|
|
|
<div class="layui-input-inline" style="display: flex;align-items: center;">
|
|
|
|
|
|
<input id="keyWord" name="keyWord" lay-verify="required" lay-search="" lay-filter="keyWord" style="height: 26px" placeholder="请输入关键字..."/>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<button id="searchBt" style="margin-top: -0.6%;margin-left: 10px;" class="layui-btn layui-btn-sm"
|
|
|
|
|
|
permission="sys:releaseWorkInfoAudit:query"><i class="layui-icon"></i>搜索
|
|
|
|
|
|
</button>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</form>
|
|
|
|
|
|
</td>
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
</table>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</header>
|
|
|
|
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
|
<div class="widget-body no-padding">
|
|
|
|
|
|
<table id="dt-table" class="table table-striped table-bordered table-hover" style="width:100%">
|
|
|
|
|
|
<thead>
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
<th>序号</th>
|
|
|
|
|
|
<th>项目</th>
|
|
|
|
|
|
<th>分包</th>
|
|
|
|
|
|
<th>班组类别</th>
|
|
|
|
|
|
<th>人员数量</th>
|
|
|
|
|
|
<th>班组数量</th>
|
|
|
|
|
|
<th>持证要求</th>
|
|
|
|
|
|
<th>联系负责人</th>
|
|
|
|
|
|
<th>联系方式</th>
|
|
|
|
|
|
<th>备注</th>
|
|
|
|
|
|
<th>发布时间</th>
|
|
|
|
|
|
<th>操作</th>
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
</thead>
|
|
|
|
|
|
<tbody>
|
|
|
|
|
|
</tbody>
|
|
|
|
|
|
</table>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</body>
|
|
|
|
|
|
</html>
|
|
|
|
|
|
<script type="text/javascript" src="../../../js/libs/jquery-3.7.1.min.js"></script>
|
|
|
|
|
|
<script type="text/javascript" src="../../../js/jq.js"></script>
|
|
|
|
|
|
<script type="text/javascript" src="../../../js/plugin/datatables/jquery.dataTables.min.js"></script>
|
|
|
|
|
|
<script type="text/javascript" src="../../../js/plugin/datatables/dataTables.bootstrap.min.js"></script>
|
|
|
|
|
|
<script type="text/javascript" src="../../../js/my/permission.js"></script>
|
|
|
|
|
|
<script type="text/javascript" src="../../../layui/layui.js"></script>
|
2025-12-09 18:44:29 +08:00
|
|
|
|
<script type="text/javascript" src="../../../../public/public.js"></script>
|
2025-11-27 16:55:35 +08:00
|
|
|
|
<script type="text/javascript" src="../../../js/publicJs.js"></script>
|
|
|
|
|
|
<script type="text/javascript" src="../../../js/select.js" ></script>
|
|
|
|
|
|
<script type="text/javascript" src="../../../js/dict.js"></script>
|
|
|
|
|
|
<script>
|
|
|
|
|
|
var example = null;
|
|
|
|
|
|
var pers = null;
|
|
|
|
|
|
$(function () {
|
|
|
|
|
|
layui.use(['layer'], function () {
|
|
|
|
|
|
var layer = layui.layer;
|
|
|
|
|
|
});
|
|
|
|
|
|
pers = checkPermission();
|
|
|
|
|
|
init();
|
|
|
|
|
|
$("#searchBt").click(function () {
|
|
|
|
|
|
example.ajax.reload();
|
|
|
|
|
|
});
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
function init() {
|
|
|
|
|
|
example =
|
|
|
|
|
|
$('#dt-table').DataTable({
|
|
|
|
|
|
"sort": false,
|
|
|
|
|
|
"searching": false,
|
|
|
|
|
|
"processing": true, //加载数据时显示进度状态
|
|
|
|
|
|
"serverSide": true,
|
|
|
|
|
|
"pagingType": "full_numbers", //首页|尾页
|
|
|
|
|
|
"language": {
|
2025-12-02 14:22:34 +08:00
|
|
|
|
"url": contentPath + "/js/plugin/datatables/Chinese.lang"
|
2025-11-27 16:55:35 +08:00
|
|
|
|
},
|
|
|
|
|
|
"ajax": {
|
2025-12-09 18:44:29 +08:00
|
|
|
|
"url": smz_ht_url + "/releaseWorkInfoAudit",
|
2025-11-27 16:55:35 +08:00
|
|
|
|
"type": "get",
|
|
|
|
|
|
"data": function (d) {
|
|
|
|
|
|
d.keyWord = $("#keyWord").val();
|
|
|
|
|
|
},
|
|
|
|
|
|
"error": function (xhr, textStatus, errorThrown) {
|
|
|
|
|
|
var msg = xhr.responseText;
|
|
|
|
|
|
console.log(msg);
|
|
|
|
|
|
var response = JSON.parse(msg);
|
|
|
|
|
|
var code = response.code;
|
|
|
|
|
|
var message = response.message;
|
|
|
|
|
|
if (code == 400) {
|
|
|
|
|
|
layer.msg(message);
|
|
|
|
|
|
} else if (code == 401) {
|
|
|
|
|
|
localStorage.removeItem("token");
|
|
|
|
|
|
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
2025-12-09 18:44:29 +08:00
|
|
|
|
location.href = smz_ht_url + '/login.html';
|
2025-11-27 16:55:35 +08:00
|
|
|
|
});
|
|
|
|
|
|
} else if (code == 403) {
|
|
|
|
|
|
console.log("未授权:" + message);
|
|
|
|
|
|
layer.msg('未授权');
|
|
|
|
|
|
} else if (code == 500) {
|
|
|
|
|
|
console.log('系统错误:' + message);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"drawCallback": function() {
|
|
|
|
|
|
// alert( '表格重绘了' );
|
|
|
|
|
|
var thisDataTable = $('#dt-table').DataTable();
|
|
|
|
|
|
$(".pagination").append("<li>" +
|
|
|
|
|
|
"<a class='paginate_button' style='padding:4px;' href='#' tabindex='0'>到 <input style='margin:0px;width:40px;' id='changePage'> 页</a>" +
|
|
|
|
|
|
"<a class='paginate_button' style='margin-bottom:1px' href='#' tabindex='0' id='dataTable-btn'>确认</a></li>");
|
|
|
|
|
|
//点击按钮跳转指定页数
|
|
|
|
|
|
$('#dataTable-btn').click(function (e) {
|
|
|
|
|
|
if ($("#changePage").val() && $("#changePage").val() > 0) {
|
|
|
|
|
|
var redirectpage = $("#changePage").val() - 1;
|
|
|
|
|
|
} else {
|
|
|
|
|
|
var redirectpage = 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
thisDataTable.page(redirectpage).draw( 'page' );
|
|
|
|
|
|
});
|
|
|
|
|
|
//敲击回车键跳转指定页数
|
|
|
|
|
|
$("#changePage").keypress(function (e) {
|
|
|
|
|
|
if(event.keyCode==13){
|
|
|
|
|
|
if ($("#changePage").val() && $("#changePage").val() > 0) {
|
|
|
|
|
|
var redirectpage = $("#changePage").val() - 1;
|
|
|
|
|
|
} else {
|
|
|
|
|
|
var redirectpage = 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
thisDataTable.page(redirectpage).draw( 'page' );
|
|
|
|
|
|
}
|
|
|
|
|
|
});
|
|
|
|
|
|
},
|
|
|
|
|
|
"dom": "<'dt-toolbar'r>t<'dt-toolbar-footer'<'col-sm-4 col-xs-4 hidden-xs'i><'col-xs-8 col-sm-8' p v>>",
|
|
|
|
|
|
"columns": [
|
|
|
|
|
|
{
|
|
|
|
|
|
width: '40px',
|
|
|
|
|
|
data: function (row, type, set, meta) {
|
|
|
|
|
|
var c = meta.settings._iDisplayStart + meta.row + 1;
|
|
|
|
|
|
return c;
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
{"data": "project",'width': '60px'},
|
|
|
|
|
|
{"data": "subcontract",'width': '150px'},
|
|
|
|
|
|
{"data": "teamCategory",'width': '40px'},
|
|
|
|
|
|
{"data": "numberPeople",'width': '40px'},
|
|
|
|
|
|
{"data": "teamNumber",'width': '40px'},
|
|
|
|
|
|
{"data": "holderReq",'width': '90px'},
|
|
|
|
|
|
{"data": "contactPerson",'width': '150px'},
|
|
|
|
|
|
{"data": "contactWay",'width': '210px'},
|
|
|
|
|
|
{"data": "remark",'width': '110px'},
|
|
|
|
|
|
{"data": "releaseTime",'width': '110px'},
|
|
|
|
|
|
{
|
|
|
|
|
|
"data": "",
|
|
|
|
|
|
'width': '200px',
|
|
|
|
|
|
"defaultContent": "",
|
|
|
|
|
|
"orderable": false,
|
|
|
|
|
|
"render": function (data, type, row) {
|
|
|
|
|
|
var id = row['id'];
|
|
|
|
|
|
var html = '';
|
|
|
|
|
|
html += buttonAudit(id, "", pers);
|
|
|
|
|
|
return html;
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
"order": [[0, "desc"], [1, "asc"]] //在栏目列上显示排序功能
|
|
|
|
|
|
});
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function buttonAudit(id, permission, pers) {
|
|
|
|
|
|
if (permission != "") {
|
|
|
|
|
|
if ($.inArray(permission, pers) < 0) {
|
|
|
|
|
|
return "";
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
var btn = $("<button class='layui-btn layui-btn-xs' title='审核' onclick='audit(\""+id+"\")'>审核</button>");
|
|
|
|
|
|
return btn.prop("outerHTML");
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 审核
|
|
|
|
|
|
* */
|
|
|
|
|
|
function audit(id) {
|
|
|
|
|
|
$.ajax({
|
|
|
|
|
|
type: 'POST',
|
|
|
|
|
|
contentType: "application/x-www-form-urlencoded",
|
2025-12-09 18:44:29 +08:00
|
|
|
|
url: smz_ht_url + '/releaseWorkInfo/getReleaseWorkInfoById',
|
2025-11-27 16:55:35 +08:00
|
|
|
|
data:{"id":id},
|
|
|
|
|
|
dataType: 'json',
|
|
|
|
|
|
success: function (data) {
|
|
|
|
|
|
var height = '80%';
|
|
|
|
|
|
var width = '60%';
|
|
|
|
|
|
var index = layer.open({
|
|
|
|
|
|
title: ['审核','color:#3B70A1;background-color:#E8ECEB;font-size:20px'],
|
|
|
|
|
|
type: 2,
|
|
|
|
|
|
content: 'releaseWorkViewAudit.html',
|
|
|
|
|
|
area: [width, height],
|
|
|
|
|
|
maxmin: false,
|
|
|
|
|
|
btn: ['确定','关闭'],
|
|
|
|
|
|
success:function(layero,index){
|
|
|
|
|
|
var myIframe = window[layero.find('iframe')[0]['name']];
|
|
|
|
|
|
var fnc = myIframe.setData(data); //aaa()为子页面的方法
|
|
|
|
|
|
},
|
|
|
|
|
|
yes: function (index, layero) {
|
|
|
|
|
|
// 获取弹出层中的form表单元素
|
|
|
|
|
|
var formSubmit = layer.getChildFrame('form', index);
|
|
|
|
|
|
var submited = formSubmit.find('button')[0];
|
|
|
|
|
|
// 触发点击事件,会对表单进行验证,验证成功则提交表单,失败则返回错误信息
|
|
|
|
|
|
submited.click();
|
|
|
|
|
|
example.ajax.reload(); // 刷新页面
|
|
|
|
|
|
},
|
|
|
|
|
|
});
|
|
|
|
|
|
}
|
|
|
|
|
|
})
|
|
|
|
|
|
}
|
|
|
|
|
|
</script>
|