Merge branch 'main' of http://10.10.14.176:3000/huanghai/QingLong
commit
0cf6ac2059
@ -0,0 +1,147 @@
|
||||
<!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-tool-span {
|
||||
margin: 0 3px;
|
||||
position: relative;
|
||||
top: -1px;
|
||||
cursor: pointer;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body class="layui-form">
|
||||
|
||||
<div class="layui-card">
|
||||
<div class="layui-card-body">
|
||||
|
||||
<table class="layui-table" id="myTable"></table>
|
||||
|
||||
<script type="text/html" id="table-bar">
|
||||
{{# if(d.id === 0) { }}
|
||||
<span class="woo-tool-span woo-tool-text-span" lay-event="view"><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="view1"><a
|
||||
class="woo-orange-color">审核通过</a></span>
|
||||
{{# } else { }}
|
||||
<span class="woo-tool-span woo-tool-text-span" lay-event="view"><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="view2"><a
|
||||
class="woo-orange-color">审核通过</a></span>
|
||||
|
||||
{{# } }}
|
||||
</script>
|
||||
</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;
|
||||
|
||||
table.render({
|
||||
elem: '#myTable',
|
||||
url: '/QingLong/zbdc/getQueryXzqh',
|
||||
cellExpandedMode: "tips",
|
||||
height: 'full',
|
||||
cols: [[
|
||||
{ title: '序号', align: 'center', width: "10%", type: 'numbers' },
|
||||
{ title: '行政区划', field: 'area_name', align: 'center', width: "35%" },
|
||||
{ title: '下级单位', field: 'count', align: 'center', width: "30%" },
|
||||
{ title: '操作', toolbar: '#table-bar', align: 'center', width: "25%" }
|
||||
]],
|
||||
// skin: 'line',
|
||||
defaultToolbar: []
|
||||
});
|
||||
|
||||
table.on('tool(myTable)', function (obj) {
|
||||
if (obj.event === 'view') {
|
||||
window.location.href = "/QingLong/view/tb/zbdc/examine/examine_city_list.html";
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
@ -0,0 +1,327 @@
|
||||
<!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-tool-span {
|
||||
margin: 0 3px;
|
||||
position: relative;
|
||||
top: -1px;
|
||||
cursor: pointer;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body class="layui-form">
|
||||
|
||||
<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="0">待审核</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>
|
||||
|
||||
<button class="layui-btn layui-bg-orange layui-btn-sm" lay-submit lay-filter="shenhe" id="shenhe"
|
||||
style="position: absolute;top: 15px;right: 17px;z-index: 999;"><i class="layui-icon layui-icon-ok">
|
||||
</i>一键审核</button>
|
||||
|
||||
<button class="layui-btn layui-bg-orange layui-btn-sm" lay-submit lay-filter="shangji" id="shangji"
|
||||
style="position: absolute;top: 15px;right: 17px;z-index: 999;"><i class="layui-icon layui-icon-home">
|
||||
</i>提交上级单位</button>
|
||||
|
||||
<table class="layui-table" id="myTable"></table>
|
||||
|
||||
<script type="text/html" id="table-bar">
|
||||
{{# if(d.check_type_id != -1) { }}
|
||||
<span class="woo-tool-span woo-tool-text-span" lay-event="view"><a
|
||||
class="woo-theme-color">查看详情</a></span>
|
||||
{{# } }}
|
||||
</script>
|
||||
</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;
|
||||
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
async: false,
|
||||
url: "/QingLong/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();
|
||||
}
|
||||
});
|
||||
|
||||
if ($("#statusId").val() == 0) {
|
||||
$("#shenhe").show();
|
||||
$("#shangji").hide();
|
||||
} else if ($("#statusId").val() == 1) {
|
||||
$("#shenhe").hide();
|
||||
$("#shangji").show();
|
||||
} else {
|
||||
$("#shenhe").hide();
|
||||
$("#shangji").hide();
|
||||
}
|
||||
|
||||
tableRender();
|
||||
|
||||
function tableRender() {
|
||||
|
||||
table.render({
|
||||
elem: '#myTable',
|
||||
url: '/QingLong/zbdc/listSchool',
|
||||
where: {
|
||||
check_type_id: $("#statusId").val(),
|
||||
school_type_id: $("#xxlxId").val(),
|
||||
keyword: $("#xxmc").val()
|
||||
},
|
||||
cellExpandedMode: "tips",
|
||||
height: 'full-70',
|
||||
page: {
|
||||
limit: 15
|
||||
, layout: ['count', 'prev', 'page', 'next', 'skip']
|
||||
, prev: "上一页"
|
||||
, next: "下一页"
|
||||
},
|
||||
cols: [[
|
||||
{ title: '序号', align: 'center', width: "10%", type: 'numbers' },
|
||||
{ title: '学校名称', field: 'org_name', align: 'center', width: "25%" },
|
||||
{ title: '学校类型', field: 'school_type_name', align: 'center', width: "20%" },
|
||||
{ title: '状态', field: 'status_name', align: 'center', width: "20%" },
|
||||
{ title: '操作', toolbar: '#table-bar', align: 'center', width: "25%" }
|
||||
|
||||
]],
|
||||
// skin: 'line',
|
||||
defaultToolbar: [],
|
||||
parseData: function (res) {
|
||||
var dataArr = res.data;
|
||||
for (var i = 0; i < dataArr.length; i++) {
|
||||
if (dataArr[i].check_type_id == 0) {
|
||||
dataArr[i].status_name = "待审核";
|
||||
} else if (dataArr[i].check_type_id == 1) {
|
||||
dataArr[i].status_name = "已审核";
|
||||
} else {
|
||||
dataArr[i].status_name = "未提交";
|
||||
}
|
||||
}
|
||||
return res;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
form.on('submit(user-query)', function () {
|
||||
|
||||
tableRender()
|
||||
|
||||
// 阻止表单的默认提交行为
|
||||
return false;
|
||||
});
|
||||
|
||||
form.on('submit(shenhe)', function () {
|
||||
layer.confirm('确定一键审核吗?', {
|
||||
icon: 3,
|
||||
title: '提示'
|
||||
}, function (index) {
|
||||
layer.close(index);
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
dataType: "json",
|
||||
url: "/QingLong/zbdc/oneKeyPass",
|
||||
async: false,
|
||||
success: function (result) {
|
||||
if (result.success) {
|
||||
layer.msg('一键审核成功!', {
|
||||
icon: 1,
|
||||
time: 1500
|
||||
});
|
||||
} else {
|
||||
layer.msg(result.message, {
|
||||
icon: 2,
|
||||
time: 2000
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
// 阻止表单的默认提交行为
|
||||
return false;
|
||||
});
|
||||
|
||||
form.on('submit(shangji)', function () {
|
||||
layer.confirm('确定提交上级单位吗?', {
|
||||
icon: 3,
|
||||
title: '提示'
|
||||
}, function (index) {
|
||||
layer.close(index);
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
dataType: "json",
|
||||
url: "/QingLong/zbdc/saveReport",
|
||||
async: false,
|
||||
success: function (result) {
|
||||
if (result.success) {
|
||||
layer.msg('提交上级单位成功!', {
|
||||
icon: 1,
|
||||
time: 1500
|
||||
});
|
||||
} else {
|
||||
layer.msg(result.message, {
|
||||
icon: 2,
|
||||
time: 2000
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
// 阻止表单的默认提交行为
|
||||
return false;
|
||||
});
|
||||
|
||||
form.on('select(status)', function (data) {
|
||||
if (data.value == 0) {
|
||||
$("#shenhe").show();
|
||||
$("#shangji").hide();
|
||||
} else if (data.value == 1) {
|
||||
$("#shenhe").hide();
|
||||
$("#shangji").show();
|
||||
} else {
|
||||
$("#shenhe").hide();
|
||||
$("#shangji").hide();
|
||||
}
|
||||
|
||||
tableRender();
|
||||
// 阻止表单的默认提交行为
|
||||
return false;
|
||||
});
|
||||
|
||||
form.on('select(xxlx)', function () {
|
||||
tableRender();
|
||||
// 阻止表单的默认提交行为
|
||||
return false;
|
||||
});
|
||||
|
||||
table.on('tool(myTable)', function (obj) {
|
||||
if (obj.event === 'view') {
|
||||
window.location.href = "/QingLong/view/tb/zbdc/examine/data_all.html?bureau_id=" + obj.data.bureau_id;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
});
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
Loading…
Reference in new issue