|
|
<!DOCTYPE html>
|
|
|
<html>
|
|
|
|
|
|
<head>
|
|
|
<meta charset="utf-8">
|
|
|
<title></title>
|
|
|
<link rel="stylesheet" href="../../../../component/layui/css/layui.css" />
|
|
|
|
|
|
<style>
|
|
|
th {
|
|
|
color: #303133;
|
|
|
background-color: #f5f7fa;
|
|
|
}
|
|
|
|
|
|
.layui-card {
|
|
|
box-shadow: 0 0 0 0 rgba(0, 0, 0, 0) !important;
|
|
|
margin-bottom: 0 !important;
|
|
|
}
|
|
|
|
|
|
.layui-form-item {
|
|
|
margin-bottom: 0;
|
|
|
}
|
|
|
|
|
|
.layui-table td,
|
|
|
.layui-table th {
|
|
|
font-size: 12px;
|
|
|
}
|
|
|
|
|
|
.bp {
|
|
|
background-color: rgba(23, 179, 163, .1);
|
|
|
padding: 5px 10px;
|
|
|
height: 32px;
|
|
|
line-height: 30px;
|
|
|
font-size: 12px;
|
|
|
color: #17b3a3;
|
|
|
border-radius: 4px;
|
|
|
-webkit-box-sizing: border-box;
|
|
|
box-sizing: border-box;
|
|
|
border: 1px solid rgba(23, 179, 163, .2);
|
|
|
white-space: nowrap;
|
|
|
}
|
|
|
|
|
|
.xp {
|
|
|
background-color: rgba(144, 147, 153, .1);
|
|
|
padding: 5px 10px;
|
|
|
height: 32px;
|
|
|
line-height: 30px;
|
|
|
font-size: 12px;
|
|
|
color: #909399;
|
|
|
border-radius: 4px;
|
|
|
-webkit-box-sizing: border-box;
|
|
|
box-sizing: border-box;
|
|
|
border: 1px solid rgba(144, 147, 153, .2);
|
|
|
white-space: nowrap;
|
|
|
}
|
|
|
|
|
|
.woo-tool-text-delimiter {
|
|
|
width: 1px;
|
|
|
height: 12px;
|
|
|
background: #EEEEEE;
|
|
|
display: inline-block;
|
|
|
margin: 0 6px 0 4px;
|
|
|
}
|
|
|
|
|
|
.woo-theme-color {
|
|
|
color: #16baaa !important;
|
|
|
}
|
|
|
|
|
|
.woo-blue-color {
|
|
|
color: #1E9FFF !important;
|
|
|
}
|
|
|
|
|
|
.woo-orange-color {
|
|
|
color: #ffb800 !important;
|
|
|
}
|
|
|
|
|
|
.woo-red-color {
|
|
|
color: #ff5722 !important;
|
|
|
}
|
|
|
|
|
|
.woo-tool-span {
|
|
|
margin: 0 3px;
|
|
|
position: relative;
|
|
|
top: -1px;
|
|
|
cursor: pointer;
|
|
|
|
|
|
}
|
|
|
|
|
|
.layui-table {
|
|
|
margin: 0 !important;
|
|
|
}
|
|
|
|
|
|
.layui-tab-content {
|
|
|
padding: 0 !important;
|
|
|
}
|
|
|
</style>
|
|
|
</head>
|
|
|
|
|
|
<body class="layui-form">
|
|
|
<div class="layui-tab layui-tab-brief" lay-filter="tabFilter">
|
|
|
<ul class="layui-tab-title">
|
|
|
<li class="layui-this" lay-id="area">区(县)单位</li>
|
|
|
<li lay-id="city">市直单位</li>
|
|
|
|
|
|
</ul>
|
|
|
<div class="layui-tab-content">
|
|
|
<div class="layui-tab-item layui-show">
|
|
|
<div class="layui-card">
|
|
|
<div class="layui-card-body">
|
|
|
<div class="layui-form-item layui-inline">
|
|
|
<label class="layui-form-label" style="width: auto;">状态:</label>
|
|
|
<div class="layui-input-inline">
|
|
|
<select id="statusId" lay-filter="status">
|
|
|
<option value="-2">全部</option>
|
|
|
<option value="0">未提交</option>
|
|
|
<option value="2">待审核</option>
|
|
|
<option value="1">已通过</option>
|
|
|
<option value="-1">已退回</option>
|
|
|
|
|
|
</select>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<table class="layui-table" id="myTable" style="margin-top: 10px !important;"></table>
|
|
|
|
|
|
<script type="text/html" id="table-bar">
|
|
|
{{# if(d.check_type_id === 2) { }}
|
|
|
<span class="woo-tool-span woo-tool-text-span" lay-event="view"><a
|
|
|
class="woo-blue-color">查看详情</a></span>
|
|
|
<i class="woo-tool-text-delimiter"></i>
|
|
|
<span class="woo-tool-span woo-tool-text-span" lay-event="shenhe"><a
|
|
|
class="woo-theme-color">审核通过</a></span>
|
|
|
<i class="woo-tool-text-delimiter"></i>
|
|
|
<span class="woo-tool-span woo-tool-text-span" lay-event="tuihui"><a
|
|
|
class="woo-red-color">退回</a></span>
|
|
|
|
|
|
|
|
|
{{# } else { }}
|
|
|
|
|
|
<span class="woo-tool-span woo-tool-text-span" style="color: #c2c2c2 !important;cursor:default;">未提交数据,暂无可用操作</span>
|
|
|
{{# } }}
|
|
|
</script>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="layui-tab-item">
|
|
|
|
|
|
<div class="layui-card">
|
|
|
<div class="layui-card-body">
|
|
|
|
|
|
<div class="layui-form-item layui-inline">
|
|
|
<label class="layui-form-label" style="width: auto;">状态:</label>
|
|
|
<div class="layui-input-inline">
|
|
|
<select id="statusId1" lay-filter="status1">
|
|
|
<option value="-2">全部</option>
|
|
|
<option value="0">未提交</option>
|
|
|
<option value="2">待审核</option>
|
|
|
<option value="1">已通过</option>
|
|
|
<option value="-1">已退回</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" id="xxlxView"></div>
|
|
|
|
|
|
<script id="xxlxScript" type="text/html">
|
|
|
<select id="xxlxId" lay-filter="xxlx">
|
|
|
<option value="0">全部</option>
|
|
|
{{# layui.each(d, function(index, item){ }}
|
|
|
<option value="{{item.school_type_id}}">{{item.school_type_name}}</option>
|
|
|
{{# }); }}
|
|
|
</select>
|
|
|
</script>
|
|
|
</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" lay-affix="clear" id="xxmc" placeholder="请输入学校名称"
|
|
|
class="layui-input">
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
|
|
|
<div class="layui-form-item layui-inline">
|
|
|
<button class="layui-btn layui-btn-sm" lay-submit lay-filter="user-query">
|
|
|
<i class="layui-icon layui-icon-search"></i>
|
|
|
查询
|
|
|
</button>
|
|
|
</div>
|
|
|
|
|
|
|
|
|
<table class="layui-table" id="myTable1" style="margin-top: 10px !important;"></table>
|
|
|
|
|
|
<script type="text/html" id="table-bar1">
|
|
|
{{# if(d.check_type_id === 2) { }}
|
|
|
<span class="woo-tool-span woo-tool-text-span" lay-event="view"><a
|
|
|
class="woo-blue-color">查看详情</a></span>
|
|
|
<i class="woo-tool-text-delimiter"></i>
|
|
|
<span class="woo-tool-span woo-tool-text-span" lay-event="shenhe"><a
|
|
|
class="woo-theme-color">审核通过</a></span>
|
|
|
<i class="woo-tool-text-delimiter"></i>
|
|
|
<span class="woo-tool-span woo-tool-text-span" lay-event="tuihui"><a
|
|
|
class="woo-red-color">退回</a></span>
|
|
|
|
|
|
|
|
|
{{# } else { }}
|
|
|
<span class="woo-tool-span woo-tool-text-span" style="color: #c2c2c2 !important;cursor:default;">未提交数据,暂无可用操作</span>
|
|
|
|
|
|
{{# } }}
|
|
|
</script>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<script src="../../../../component/layui/layui.js"></script>
|
|
|
|
|
|
<script>
|
|
|
layui.use(function () {
|
|
|
var $ = layui.jquery;
|
|
|
var table = layui.table;
|
|
|
var form = layui.form;
|
|
|
var laytpl = layui.laytpl;
|
|
|
|
|
|
var _tab = GetQueryString("tab");
|
|
|
if (_tab == "city") {
|
|
|
layui.element.tabChange('tabFilter', 'city');
|
|
|
}
|
|
|
|
|
|
tableRender();
|
|
|
|
|
|
function tableRender() {
|
|
|
table.render({
|
|
|
elem: '#myTable',
|
|
|
url: '/dsBase/zbdc/getQueryXzqh',
|
|
|
where: {
|
|
|
check_type_id: $("#statusId").val()
|
|
|
},
|
|
|
cellExpandedMode: "tips",
|
|
|
height: 'full-135',
|
|
|
cols: [[
|
|
|
{ title: '序号', align: 'center', width: "10%", type: 'numbers' },
|
|
|
{ title: '行政区划', field: 'area_name', align: 'center', width: "40%" },
|
|
|
{ title: '下级单位', field: 'count', align: 'center', width: "15%" },
|
|
|
{ title: '状态', field: 'check_type_name', align: 'center', width: "15%" },
|
|
|
{ title: '操作', toolbar: '#table-bar', align: 'center', width: "20%" }
|
|
|
]],
|
|
|
// skin: 'line',
|
|
|
defaultToolbar: []
|
|
|
});
|
|
|
}
|
|
|
|
|
|
form.on('select(status)', function () {
|
|
|
tableRender();
|
|
|
return false;
|
|
|
});
|
|
|
|
|
|
|
|
|
$.ajax({
|
|
|
type: "GET",
|
|
|
async: false,
|
|
|
url: "/dsBase/zbdc/getQuerySchoolType",
|
|
|
success: function (res) {
|
|
|
var xxlxTpl = xxlxScript.innerHTML,
|
|
|
xxlxView = document.getElementById('xxlxView');
|
|
|
laytpl(xxlxTpl).render(res.data, function (html) {
|
|
|
xxlxView.innerHTML = html;
|
|
|
});
|
|
|
form.render();
|
|
|
}
|
|
|
});
|
|
|
|
|
|
tableRender1();
|
|
|
|
|
|
function tableRender1() {
|
|
|
|
|
|
table.render({
|
|
|
elem: '#myTable1',
|
|
|
url: '/dsBase/zbdc/listSchool',
|
|
|
where: {
|
|
|
page: 1,
|
|
|
limit: 100,
|
|
|
check_type_id: $("#statusId1").val(),
|
|
|
school_type_id: $("#xxlxId").val(),
|
|
|
keyword: $("#xxmc").val()
|
|
|
},
|
|
|
cellExpandedMode: "tips",
|
|
|
height: 'full-135',
|
|
|
cols: [[
|
|
|
{ title: '序号', align: 'center', width: "10%", type: 'numbers' },
|
|
|
{ title: '学校名称', field: 'org_name', align: 'center', width: "40%" },
|
|
|
{ title: '学校类型', field: 'school_type_name', align: 'center', width: "15%" },
|
|
|
{ title: '状态', field: 'check_type_name', align: 'center', width: "15%" },
|
|
|
{ title: '操作', toolbar: '#table-bar1', align: 'center', width: "20%" }
|
|
|
]],
|
|
|
// skin: 'line',
|
|
|
defaultToolbar: []
|
|
|
});
|
|
|
}
|
|
|
|
|
|
form.on('submit(user-query)', function () {
|
|
|
tableRender1();
|
|
|
return false;
|
|
|
});
|
|
|
|
|
|
form.on('select(xxlx)', function () {
|
|
|
tableRender1();
|
|
|
return false;
|
|
|
});
|
|
|
|
|
|
form.on('select(status1)', function () {
|
|
|
tableRender1();
|
|
|
return false;
|
|
|
});
|
|
|
|
|
|
table.on('tool(myTable1)', function (obj) {
|
|
|
console.log(obj.data)
|
|
|
if (obj.event === 'view') {
|
|
|
if (obj.data.school_type_id == 211) {
|
|
|
window.location.href = "/dsBase/view/tb/zbdc/examine/data_all_xx_new.html?bureau_id=" + obj.data.bureau_id + "&flag=12";
|
|
|
} else if (obj.data.school_type_id == 311) {
|
|
|
window.location.href = "/dsBase/view/tb/zbdc/examine/data_all_cz_new.html?bureau_id=" + obj.data.bureau_id + "&flag=12";
|
|
|
} else if (obj.data.school_type_id == 312) {
|
|
|
window.location.href = "/dsBase/view/tb/zbdc/examine/data_all_jnygz_new.html?bureau_id=" + obj.data.bureau_id + "&flag=12";
|
|
|
} else if (obj.data.school_type_id == 341) {
|
|
|
window.location.href = "/dsBase/view/tb/zbdc/examine/data_all_wqzx_new.html?bureau_id=" + obj.data.bureau_id + "&flag=12";
|
|
|
} else if (obj.data.school_type_id == 342) {
|
|
|
window.location.href = "/dsBase/view/tb/zbdc/examine/data_all_gz_new.html?bureau_id=" + obj.data.bureau_id + "&flag=12";
|
|
|
}
|
|
|
} else if (obj.event === 'shenhe') {
|
|
|
layer.confirm('确定审核通过吗?', {
|
|
|
icon: 3,
|
|
|
title: '提示'
|
|
|
}, function (index) {
|
|
|
layer.close(index);
|
|
|
$.ajax({
|
|
|
type: "POST",
|
|
|
dataType: "json",
|
|
|
url: "/dsBase/zbdc/CheckReport",
|
|
|
data: {
|
|
|
"bureau_ids": obj.data.bureau_id,
|
|
|
"check_type_id": 1,
|
|
|
},
|
|
|
async: false,
|
|
|
success: function (result) {
|
|
|
if (result.success) {
|
|
|
layer.msg('审核通过成功!', {
|
|
|
icon: 1,
|
|
|
time: 1500
|
|
|
}, function () {
|
|
|
tableRender1();
|
|
|
});
|
|
|
} else {
|
|
|
layer.msg(result.message, {
|
|
|
icon: 2,
|
|
|
time: 2000
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
});
|
|
|
} else if (obj.event === 'tuihui') {
|
|
|
layer.open({
|
|
|
type: 2,
|
|
|
title: "退回",
|
|
|
shade: 0.1,
|
|
|
area: ['500px', '235px'],
|
|
|
content: './send_back.html?b=' + obj.data.bureau_id
|
|
|
});
|
|
|
return false;
|
|
|
}
|
|
|
});
|
|
|
|
|
|
table.on('tool(myTable)', function (obj) {
|
|
|
console.log(obj.data)
|
|
|
var areaId = obj.data.id;
|
|
|
if (obj.event === 'view') {
|
|
|
if (areaId == 0) {
|
|
|
window.location.href = "/dsBase/view/tb/zbdc/examine/examine_city_list.html?area_id=" + areaId;
|
|
|
} else {
|
|
|
window.location.href = "/dsBase/view/tb/zbdc/examine/examine_city_area_list.html?area_id=" + areaId;
|
|
|
}
|
|
|
|
|
|
} else if (obj.event === 'shenhe') {
|
|
|
layer.confirm('确定审核通过吗?', {
|
|
|
icon: 3,
|
|
|
title: '提示'
|
|
|
}, function (index) {
|
|
|
layer.close(index);
|
|
|
$.ajax({
|
|
|
type: "POST",
|
|
|
dataType: "json",
|
|
|
url: "/dsBase/zbdc/CheckReport",
|
|
|
data: {
|
|
|
"area_ids": areaId,
|
|
|
"check_type_id": 1,
|
|
|
},
|
|
|
async: false,
|
|
|
success: function (result) {
|
|
|
if (result.success) {
|
|
|
layer.msg('审核通过成功!', {
|
|
|
icon: 1,
|
|
|
time: 1500
|
|
|
}, function () {
|
|
|
tableRender();
|
|
|
});
|
|
|
} else {
|
|
|
layer.msg(result.message, {
|
|
|
icon: 2,
|
|
|
time: 2000
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
});
|
|
|
} else if (obj.event === 'tuihui') {
|
|
|
layer.open({
|
|
|
type: 2,
|
|
|
title: "退回",
|
|
|
shade: 0.1,
|
|
|
area: ['500px', '235px'],
|
|
|
content: './send_back.html?a=' + areaId
|
|
|
});
|
|
|
return false;
|
|
|
}
|
|
|
});
|
|
|
|
|
|
window.reLoadTable = function () {
|
|
|
tableRender();
|
|
|
}
|
|
|
|
|
|
window.reLoadTable1 = function () {
|
|
|
tableRender1();
|
|
|
}
|
|
|
|
|
|
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> |