main
kgdxpr 1 year ago
parent 354e2e125c
commit ed5424476e

@ -1573,6 +1573,8 @@
form.on('submit(back)', function () {
if (flag == "11") {
window.location.href = "/QingLong/view/tb/zbdc/examine/examine_city_area_list.html?area_id=" + areaId;
} else if (flag == "12") {
window.location.href = "/QingLong/view/tb/zbdc/examine/examine_city.html?tab=city";
} else {
window.location.href = "/QingLong/view/tb/zbdc/examine/school_list_details.html?flag=2";
}

@ -1545,7 +1545,14 @@
}
form.on('submit(back)', function () {
window.location.href = "/QingLong/view/tb/zbdc/examine/school_list_details.html?flag=2";
if (flag == "11") {
window.location.href = "/QingLong/view/tb/zbdc/examine/examine_city_area_list.html?area_id=" + areaId;
} else if (flag == "12") {
window.location.href = "/QingLong/view/tb/zbdc/examine/examine_city.html?tab=city";
} else {
window.location.href = "/QingLong/view/tb/zbdc/examine/school_list_details.html?flag=2";
}
// 阻止表单的默认提交行为
return false;
});

@ -137,7 +137,7 @@
</div>
<div class="layui-col-xs6">
<div class="layui-form-item">
<label class="layui-form-label" style="width: 115px !important;">单位类型:</label>
<label class="layui-form-label" style="width: 130px !important;">单位类型:</label>
<div class="layui-input-block">
<span class="text" id="school_type_name"></span>
</div>
@ -155,7 +155,7 @@
</div>
<div class="layui-col-xs6">
<div class="layui-form-item">
<label class="layui-form-label" style="width: 115px !important;">小学部班级数:</label>
<label class="layui-form-label" style="width: 130px !important;">小学部班级数:</label>
<div class="layui-input-block">
<span class="text" id="xx_class_count"></span>
</div>
@ -175,7 +175,7 @@
</div>
<div class="layui-col-xs6">
<div class="layui-form-item">
<label class="layui-form-label" style="width: 115px !important;">小学部专任教师数:</label>
<label class="layui-form-label" style="width: 130px !important;">小学部专任教师数:</label>
<div class="layui-input-block">
<span class="text" id="xx_zhuanren_count"></span>
</div>
@ -197,7 +197,7 @@
<div class="layui-col-xs6">
<div class="layui-form-item">
<label class="layui-form-label" style="width: 115px !important;">初中部班级数:</label>
<label class="layui-form-label" style="width: 130px !important;">初中部班级数:</label>
<div class="layui-input-block">
<span class="text" id="cz_class_count"></span>
</div>
@ -218,7 +218,7 @@
<div class="layui-col-xs6">
<div class="layui-form-item">
<label class="layui-form-label" style="width: 115px !important;">初中部专任教师数:</label>
<label class="layui-form-label" style="width: 130px !important;">初中部专任教师数:</label>
<div class="layui-input-block">
<span class="text" id="cz_zhuanren_count"></span>
</div>
@ -2248,6 +2248,8 @@
form.on('submit(back)', function () {
if (flag == "11") {
window.location.href = "/QingLong/view/tb/zbdc/examine/examine_city_area_list.html?area_id=" + areaId;
} else if (flag == "12") {
window.location.href = "/QingLong/view/tb/zbdc/examine/examine_city.html?tab=city";
} else {
window.location.href = "/QingLong/view/tb/zbdc/examine/school_list_details.html?flag=2";
}

@ -137,14 +137,14 @@
</div>
<div class="layui-col-xs6">
<div class="layui-form-item">
<label class="layui-form-label" style="width: 115px !important;">单位类型:</label>
<label class="layui-form-label" style="width: 130px !important;">单位类型:</label>
<div class="layui-input-block">
<span class="text" id="school_type_name"></span>
</div>
</div>
</div>
</div>
<div class="layui-row jcxx-layui-row">
<div class="layui-row jcxx-layui-row">
<div class="layui-col-xs6">
<div class="layui-form-item">
<label class="layui-form-label" style="width: 115px !important;">初中部学生数:</label>
@ -155,7 +155,7 @@
</div>
<div class="layui-col-xs6">
<div class="layui-form-item">
<label class="layui-form-label" style="width: 115px !important;">初中部班级数:</label>
<label class="layui-form-label" style="width: 130px !important;">初中部班级数:</label>
<div class="layui-input-block">
<span class="text" id="cz_class_count"></span>
</div>
@ -164,7 +164,7 @@
</div>
<div class="layui-row jcxx-layui-row">
<div class="layui-col-xs6">
<div class="layui-form-item">
<label class="layui-form-label" style="width: 115px !important;">初中部教职工数:</label>
@ -175,7 +175,7 @@
</div>
<div class="layui-col-xs6">
<div class="layui-form-item">
<label class="layui-form-label" style="width: 115px !important;">初中部专任教师数:</label>
<label class="layui-form-label" style="width: 130px !important;">初中部专任教师数:</label>
<div class="layui-input-block">
<span class="text" id="cz_zhuanren_count"></span>
</div>
@ -194,14 +194,14 @@
</div>
<div class="layui-col-xs6">
<div class="layui-form-item">
<label class="layui-form-label" style="width: 115px !important;">高中部班级数:</label>
<label class="layui-form-label" style="width: 130px !important;">高中部班级数:</label>
<div class="layui-input-block">
<span class="text" id="gz_class_count"></span>
</div>
</div>
</div>
</div>
</div>
<div class="layui-row jcxx-layui-row">
<div class="layui-col-xs6">
<div class="layui-form-item">
@ -213,7 +213,7 @@
</div>
<div class="layui-col-xs6">
<div class="layui-form-item">
<label class="layui-form-label" style="width: 115px !important;">高中部专任教师数:</label>
<label class="layui-form-label" style="width: 130px !important;">高中部专任教师数:</label>
<div class="layui-input-block">
<span class="text" id="gz_zhuanren_count"></span>
</div>
@ -1882,11 +1882,11 @@
$("#top_bureau_name").html(res.bureau_name);
$("#bureau_name").html(res.bureau_name);
$("#school_type_name").html(res.school_type_name);
$("#school_type_name").html(res.school_type_name);
$("#cz_student_count").html(res.cz_student_count);
$("#gz_student_count").html(res.gz_student_count);
$("#gz_student_count").html(res.gz_student_count);
$("#cz_class_count").html(res.cz_class_count);
$("#gz_class_count").html(res.gz_class_count);
$("#gz_class_count").html(res.gz_class_count);
$("#cz_teacher_count").html(res.cz_teacher_count);
$("#gz_teacher_count").html(res.gz_teacher_count);
$("#cz_zhuanren_count").html(res.cz_zhuanren_count);
@ -2245,12 +2245,12 @@
if (flId == 311) {
$("#cz_cgzb").show();
$("#gz_cgzb").hide();
$("#gz_cgzb").hide();
} else {
$("#cz_cgzb").hide();
$("#gz_cgzb").show();
}
});
@ -2492,7 +2492,14 @@
}
form.on('submit(back)', function () {
window.location.href = "/QingLong/view/tb/zbdc/examine/school_list_details.html?flag=2";
if (flag == "11") {
window.location.href = "/QingLong/view/tb/zbdc/examine/examine_city_area_list.html?area_id=" + areaId;
} else if (flag == "12") {
window.location.href = "/QingLong/view/tb/zbdc/examine/examine_city.html?tab=city";
} else {
window.location.href = "/QingLong/view/tb/zbdc/examine/school_list_details.html?flag=2";
}
// 阻止表单的默认提交行为
return false;

@ -1294,9 +1294,11 @@
});
}
form.on('submit(back)', function () {
form.on('submit(back)', function () {
if (flag == "11") {
window.location.href = "/QingLong/view/tb/zbdc/examine/examine_city_area_list.html?area_id=" + areaId;
} else if (flag == "12") {
window.location.href = "/QingLong/view/tb/zbdc/examine/examine_city.html?tab=city";
} else {
window.location.href = "/QingLong/view/tb/zbdc/examine/school_list_details.html?flag=2";
}

@ -97,10 +97,10 @@
</head>
<body class="layui-form">
<div class="layui-tab layui-tab-brief">
<div class="layui-tab layui-tab-brief" lay-filter="tabFilter">
<ul class="layui-tab-title">
<li class="layui-this">区(县)单位</li>
<li>市直单位</li>
<li class="layui-this" lay-id="area">区(县)单位</li>
<li lay-id="city">市直单位</li>
</ul>
<div class="layui-tab-content">
@ -169,10 +169,7 @@
<table class="layui-table" id="myTable1" style="margin-top: 10px !important;"></table>
<script type="text/html" id="table-bar1">
{{# if(d.check_type_id === 0) { }}
<span class="woo-tool-span woo-tool-text-span" style="color: #c2c2c2 !important;cursor:default;">未提交数据,暂无可用操作</span>
{{# } else { }}
{{# 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>
@ -181,6 +178,10 @@
<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>
@ -203,21 +204,30 @@
var form = layui.form;
var laytpl = layui.laytpl;
table.render({
elem: '#myTable',
url: '/QingLong/zbdc/getQueryXzqh',
cellExpandedMode: "tips",
height: 'full-85',
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: []
});
var _tab = GetQueryString("tab");
if (_tab == "city") {
layui.element.tabChange('tabFilter', 'city');
}
tableRender();
function tableRender() {
table.render({
elem: '#myTable',
url: '/QingLong/zbdc/getQueryXzqh',
cellExpandedMode: "tips",
height: 'full-85',
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: []
});
}
$.ajax({
@ -273,10 +283,63 @@
});
table.on('tool(myTable1)', function (obj) {
console.log(obj);
console.log(obj.data)
if (obj.event === 'view') {
if (obj.data.school_type_id == 211) {
window.location.href = "/QingLong/view/tb/zbdc/examine/data_all_xx.html?bureau_id=" + obj.data.bureau_id + "&flag=12";
} else if (obj.data.school_type_id == 311) {
window.location.href = "/QingLong/view/tb/zbdc/examine/data_all_cz.html?bureau_id=" + obj.data.bureau_id + "&flag=12";
} else if (obj.data.school_type_id == 312) {
window.location.href = "/QingLong/view/tb/zbdc/examine/data_all_jnygz.html?bureau_id=" + obj.data.bureau_id + "&flag=12";
} else if (obj.data.school_type_id == 341) {
window.location.href = "/QingLong/view/tb/zbdc/examine/data_all_wqzx.html?bureau_id=" + obj.data.bureau_id + "&flag=12";
} else if (obj.data.school_type_id == 342) {
window.location.href = "/QingLong/view/tb/zbdc/examine/data_all_gz.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: "/QingLong/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
});
} 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) {
@ -294,9 +357,10 @@
$.ajax({
type: "POST",
dataType: "json",
url: "/QingLong/zbdc/ShiCheckQuPass",
url: "/QingLong/zbdc/CheckReport",
data: {
"area_id": areaId
"area_ids": areaId,
"check_type_id": 1,
},
async: false,
success: function (result) {
@ -314,9 +378,35 @@
}
});
});
} 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>

@ -83,7 +83,7 @@
$.ajax({
type: "GET",
async: false,
url: "/QingLong/zbdc/CheckViewByArea",
url: "/QingLong/zbdc/CheckViewRefuseMessage",
success: function (res) {
$("#a1").html(" " + res.data.create_time);
$("#a2").html(" " + res.data.message);

@ -0,0 +1,152 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" href="../../../../component/pear/css/pear.css" />
<style>
html,
body,
form {
height: 100%;
margin: 0;
overflow: hidden;
}
.layui-row {
width: 800px;
margin: 10px auto;
}
.text {
display: block;
padding: 9px 15px;
width: 230px;
font-weight: 400;
line-height: 20px;
}
.layui-input-block {
margin-left: 100px !important;
}
</style>
</head>
<body>
<form class="layui-form" action="">
<div class="layui-row" style="margin-top: 20px;">
<div class="layui-form-item">
<label class="layui-form-label" style="width: 70px !important;">退回意见:</label>
<div class="layui-input-block">
<textarea name="message" placeholder="请输入退回意见" class="layui-textarea"
style="width: 380px;"></textarea>
</div>
</div>
<div class="layui-form-item" style="margin-left: 100px;">
<button type="submit" class="pear-btn pear-btn-primary pear-btn-sm" lay-submit="" lay-filter="save">
<i class="layui-icon layui-icon-ok"></i>
确 定
</button>
</div>
</div>
</form>
<script src="../../../../component/layui/layui.js"></script>
<script src="../../../../component/pear/pear.js"></script>
<script>
layui.use(function () {
var form = layui.form;
var $ = layui.jquery;
var _data = {};
var reLoadFlag = 0;
if (GetQueryString("a") != null) {
reLoadFlag = 1;
_data = {
"area_ids": GetQueryString("a"),
"check_type_id": -1
};
} else {
reLoadFlag = 2;
_data = {
"bureau_ids": GetQueryString("b"),
"check_type_id": -1
};
}
form.on('submit(save)', function (data) {
_data.message = data.field.message;
$.ajax({
type: "POST",
dataType: "json",
url: "/QingLong/zbdc/CheckReport",
data: _data,
async: false,
success: function (result) {
if (result.success) {
layer.msg('退回成功!', {
icon: 1,
time: 1500
}, function () {
parent.layer.close(parent.layer.getFrameIndex(window.name));
if (reLoadFlag == 1) {
parent.reLoadTable();
} else {
parent.reLoadTable1();
}
});
} else {
layer.msg(result.message, {
icon: 2,
time: 2000
});
}
}
});
return false;
});
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…
Cancel
Save