You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
572 lines
26 KiB
572 lines
26 KiB
<!DOCTYPE html>
|
|
<html>
|
|
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title></title>
|
|
<link rel="stylesheet" href="../../../component/layui/css/layui.css" />
|
|
<link rel="stylesheet" href="../../../component/pear/css/module/toast.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;
|
|
}
|
|
</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" id="xzqhView"></div>
|
|
|
|
<script id="xzqhScript" type="text/html">
|
|
<select id="xzqhId" lay-filter="xzqh">
|
|
<option value="">全部</option>
|
|
{{# layui.each(d, function(index, item){ }}
|
|
<option value="{{item.id}}">{{item.area_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" id="xxlxView"></div>
|
|
|
|
<script id="xxlxScript" type="text/html">
|
|
<select id="xxlxId" lay-filter="xxlx">
|
|
{{# layui.each(d, function(index, item){ }}
|
|
<option value="{{item.school_type_id}}">{{item.school_type_name}}</option>
|
|
{{# }); }}
|
|
</select>
|
|
</script>
|
|
|
|
<div class="layui-input-inline" id="jnygzCheck" style="width: 209px;margin-right: 0;">
|
|
<input type="checkbox" name="jnygz" value="1" title="小学" lay-filter="jnygzClick" checked>
|
|
<input type="checkbox" name="jnygz" value="2" title="初中" lay-filter="jnygzClick" checked>
|
|
<input type="checkbox" name="jnygz" value="3" title="汇总" lay-filter="jnygzClick" checked>
|
|
</div>
|
|
<div class="layui-input-inline" id="wqzxCheck" style="width: 209px;margin-right: 0;">
|
|
<input type="checkbox" name="wqzx" value="4" title="初中" lay-filter="wqzxClick" checked>
|
|
<input type="checkbox" name="wqzx" value="5" title="高中" lay-filter="wqzxClick" checked>
|
|
<input type="checkbox" name="wqzx" value="6" title="汇总" lay-filter="wqzxClick" checked>
|
|
</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" 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-btn-sm layui-bg-orange" lay-submit lay-filter="export"
|
|
style="position: fixed;right: 20px;top:15px">
|
|
<i class="layui-icon layui-icon-download-circle"></i>
|
|
导出
|
|
</button>
|
|
|
|
<table class="layui-table" id="myTable"></table>
|
|
|
|
<script type="text/html" id="xx_kxsysshshu_tpl">
|
|
{{# if(d.xx_kxsysshshu_need > d.xx_kxsysshshu){ }}
|
|
<span style="color:red">{{d.xx_kxsysshshu}}</span>
|
|
{{# } else { }}
|
|
<span>{{d.xx_kxsysshshu}}</span>
|
|
{{# } }}
|
|
</script>
|
|
|
|
<script type="text/html" id="cz_wllshshshu_tpl">
|
|
{{# if(d.cz_wllshshshu_need > d.cz_wllshshshu){ }}
|
|
<span style="color:red">{{d.cz_wllshshshu}}</span>
|
|
{{# } else { }}
|
|
<span>{{d.cz_wllshshshu}}</span>
|
|
{{# } }}
|
|
</script>
|
|
|
|
<script type="text/html" id="cz_wllyqshshu_tpl">
|
|
{{# if(d.cz_wllyqshshu_need > d.cz_wllyqshshu){ }}
|
|
<span style="color:red">{{d.cz_wllyqshshu}}</span>
|
|
{{# } else { }}
|
|
<span>{{d.cz_wllyqshshu}}</span>
|
|
{{# } }}
|
|
</script>
|
|
|
|
<script type="text/html" id="cz_wllzbrshshu_tpl">
|
|
{{# if(d.cz_wllzbrshshu_need > d.cz_wllzbrshshu){ }}
|
|
<span style="color:red">{{d.cz_wllzbrshshu}}</span>
|
|
{{# } else { }}
|
|
<span>{{d.cz_wllzbrshshu}}</span>
|
|
{{# } }}
|
|
</script>
|
|
|
|
<script type="text/html" id="cz_hxlshshshu_tpl">
|
|
{{# if(d.cz_hxlshshshu_need > d.cz_hxlshshshu){ }}
|
|
<span style="color:red">{{d.cz_hxlshshshu}}</span>
|
|
{{# } else { }}
|
|
<span>{{d.cz_hxlshshshu}}</span>
|
|
{{# } }}
|
|
</script>
|
|
|
|
<script type="text/html" id="cz_hxyqshshu_tpl">
|
|
{{# if(d.cz_hxyqshshu_need > d.cz_hxyqshshu){ }}
|
|
<span style="color:red">{{d.cz_hxyqshshu}}</span>
|
|
{{# } else { }}
|
|
<span>{{d.cz_hxyqshshu}}</span>
|
|
{{# } }}
|
|
</script>
|
|
|
|
<script type="text/html" id="cz_hxypsshu_tpl">
|
|
{{# if(d.cz_hxypsshu_need > d.cz_hxypsshu){ }}
|
|
<span style="color:red">{{d.cz_hxypsshu}}</span>
|
|
{{# } else { }}
|
|
<span>{{d.cz_hxypsshu}}</span>
|
|
{{# } }}
|
|
</script>
|
|
|
|
<script type="text/html" id="cz_hxzbrshshu_tpl">
|
|
{{# if(d.cz_hxzbrshshu_need > d.cz_hxzbrshshu){ }}
|
|
<span style="color:red">{{d.cz_hxzbrshshu}}</span>
|
|
{{# } else { }}
|
|
<span>{{d.cz_hxzbrshshu}}</span>
|
|
{{# } }}
|
|
</script>
|
|
|
|
<script type="text/html" id="cz_swlshshshu_tpl">
|
|
{{# if(d.cz_swlshshshu_need > d.cz_swlshshshu){ }}
|
|
<span style="color:red">{{d.cz_swlshshshu}}</span>
|
|
{{# } else { }}
|
|
<span>{{d.cz_swlshshshu}}</span>
|
|
{{# } }}
|
|
</script>
|
|
|
|
<script type="text/html" id="cz_swyqshshu_tpl">
|
|
{{# if(d.cz_swyqshshu_need > d.cz_swyqshshu){ }}
|
|
<span style="color:red">{{d.cz_swyqshshu}}</span>
|
|
{{# } else { }}
|
|
<span>{{d.cz_swyqshshu}}</span>
|
|
{{# } }}
|
|
</script>
|
|
|
|
<script type="text/html" id="cz_swypsshu_tpl">
|
|
{{# if(d.cz_swypsshu_need > d.cz_swypsshu){ }}
|
|
<span style="color:red">{{d.cz_swypsshu}}</span>
|
|
{{# } else { }}
|
|
<span>{{d.cz_swypsshu}}</span>
|
|
{{# } }}
|
|
</script>
|
|
|
|
<script type="text/html" id="cz_swzbrshshu_tpl">
|
|
{{# if(d.cz_swzbrshshu_need > d.cz_swzbrshshu){ }}
|
|
<span style="color:red">{{d.cz_swzbrshshu}}</span>
|
|
{{# } else { }}
|
|
<span>{{d.cz_swzbrshshu}}</span>
|
|
{{# } }}
|
|
</script>
|
|
|
|
<script type="text/html" id="gz_wllshshshu_tpl">
|
|
{{# if(d.gz_wllshshshu_need > d.gz_wllshshshu){ }}
|
|
<span style="color:red">{{d.gz_wllshshshu}}</span>
|
|
{{# } else { }}
|
|
<span>{{d.gz_wllshshshu}}</span>
|
|
{{# } }}
|
|
</script>
|
|
|
|
<script type="text/html" id="gz_wllyqshshu_tpl">
|
|
{{# if(d.gz_wllyqshshu_need > d.gz_wllyqshshu){ }}
|
|
<span style="color:red">{{d.gz_wllyqshshu}}</span>
|
|
{{# } else { }}
|
|
<span>{{d.gz_wllyqshshu}}</span>
|
|
{{# } }}
|
|
</script>
|
|
|
|
<script type="text/html" id="gz_wllzbrshshu_tpl">
|
|
{{# if(d.gz_wllzbrshshu_need > d.gz_wllzbrshshu){ }}
|
|
<span style="color:red">{{d.gz_wllzbrshshu}}</span>
|
|
{{# } else { }}
|
|
<span>{{d.gz_wllzbrshshu}}</span>
|
|
{{# } }}
|
|
</script>
|
|
|
|
<script type="text/html" id="gz_hxlshshshu_tpl">
|
|
{{# if(d.gz_hxlshshshu_need > d.gz_hxlshshshu){ }}
|
|
<span style="color:red">{{d.gz_hxlshshshu}}</span>
|
|
{{# } else { }}
|
|
<span>{{d.gz_hxlshshshu}}</span>
|
|
{{# } }}
|
|
</script>
|
|
|
|
<script type="text/html" id="gz_hxyqshshu_tpl">
|
|
{{# if(d.gz_hxyqshshu_need > d.gz_hxyqshshu){ }}
|
|
<span style="color:red">{{d.gz_hxyqshshu}}</span>
|
|
{{# } else { }}
|
|
<span>{{d.gz_hxyqshshu}}</span>
|
|
{{# } }}
|
|
</script>
|
|
|
|
<script type="text/html" id="gz_hxypsshu_tpl">
|
|
{{# if(d.gz_hxypsshu_need > d.gz_hxypsshu){ }}
|
|
<span style="color:red">{{d.gz_hxypsshu}}</span>
|
|
{{# } else { }}
|
|
<span>{{d.gz_hxypsshu}}</span>
|
|
{{# } }}
|
|
</script>
|
|
|
|
<script type="text/html" id="gz_hxzbrshshu_tpl">
|
|
{{# if(d.gz_hxzbrshshu_need > d.gz_hxzbrshshu){ }}
|
|
<span style="color:red">{{d.gz_hxzbrshshu}}</span>
|
|
{{# } else { }}
|
|
<span>{{d.gz_hxzbrshshu}}</span>
|
|
{{# } }}
|
|
</script>
|
|
|
|
<script type="text/html" id="gz_swlshshshu_tpl">
|
|
{{# if(d.gz_swlshshshu_need > d.gz_swlshshshu){ }}
|
|
<span style="color:red">{{d.gz_swlshshshu}}</span>
|
|
{{# } else { }}
|
|
<span>{{d.gz_swlshshshu}}</span>
|
|
{{# } }}
|
|
</script>
|
|
|
|
<script type="text/html" id="gz_swyqshshu_tpl">
|
|
{{# if(d.gz_swyqshshu_need > d.gz_swyqshshu){ }}
|
|
<span style="color:red">{{d.gz_swyqshshu}}</span>
|
|
{{# } else { }}
|
|
<span>{{d.gz_swyqshshu}}</span>
|
|
{{# } }}
|
|
</script>
|
|
|
|
<script type="text/html" id="gz_swypsshu_tpl">
|
|
{{# if(d.gz_swypsshu_need > d.gz_swypsshu){ }}
|
|
<span style="color:red">{{d.gz_swypsshu}}</span>
|
|
{{# } else { }}
|
|
<span>{{d.gz_swypsshu}}</span>
|
|
{{# } }}
|
|
</script>
|
|
|
|
<script type="text/html" id="gz_swzbrshshu_tpl">
|
|
{{# if(d.gz_swzbrshshu_need > d.gz_swzbrshshu){ }}
|
|
<span style="color:red">{{d.gz_swzbrshshu}}</span>
|
|
{{# } else { }}
|
|
<span>{{d.gz_swzbrshshu}}</span>
|
|
{{# } }}
|
|
</script>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<script src="../../../component/layui/layui.js"></script>
|
|
<script src="../../../component/pear/xm-select.js"></script>
|
|
<script src="./cols/colsData.js"></script>
|
|
|
|
<script>
|
|
layui.use(function () {
|
|
var $ = layui.jquery;
|
|
var table = layui.table;
|
|
var toast = layui.toast;
|
|
var form = layui.form;
|
|
var laytpl = layui.laytpl;
|
|
|
|
var jnygzCheckFlag = false;
|
|
var wqzxCheckFlag = false;
|
|
|
|
$("#jnygzCheck").hide();
|
|
$("#wqzxCheck").hide();
|
|
|
|
$.ajax({
|
|
type: "GET",
|
|
async: false,
|
|
url: "/QingLong/zbdc/getXzqhList",
|
|
success: function (res) {
|
|
var xzqhTpl = xzqhScript.innerHTML,
|
|
xzqhView = document.getElementById('xzqhView');
|
|
laytpl(xzqhTpl).render(res.data, function (html) {
|
|
xzqhView.innerHTML = html;
|
|
});
|
|
form.render();
|
|
}
|
|
});
|
|
|
|
$.ajax({
|
|
type: "GET",
|
|
async: false,
|
|
url: "/QingLong/zbdc/getCurrentPersonAreaInfo",
|
|
success: function (res) {
|
|
if (res.shi_master != 1) {
|
|
|
|
$("#xzqhId").val(res.area_id);
|
|
$("#xzqhId").prop('disabled', true);
|
|
}
|
|
}
|
|
});
|
|
|
|
|
|
$.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();
|
|
}
|
|
});
|
|
|
|
tableRender();
|
|
|
|
function tableRender() {
|
|
|
|
var customCols;
|
|
|
|
var lv1Arr = [];
|
|
var lv2Arr = [];
|
|
|
|
switch ($("#xxlxId").val()) {
|
|
case '211':
|
|
customCols = [
|
|
common_Cols.concat(xx_kexue_Cols[0], xx_yinyue_Cols[0], xx_tiyu_Cols[0], xx_meishu_Cols[0], xx_laoji_Cols[0], xx_chuangke_Cols[0], xx_tushuguan_Cols[0], xx_xinli_Cols[0], xx_weisheng_Cols[0], xx_huyandeng_Cols[0]),
|
|
xx_kexue_Cols[1].concat(xx_yinyue_Cols[1], xx_tiyu_Cols[1], xx_meishu_Cols[1], xx_laoji_Cols[1], xx_chuangke_Cols[1], xx_tushuguan_Cols[1], xx_xinli_Cols[1], xx_weisheng_Cols[1], xx_huyandeng_Cols[1])
|
|
];
|
|
break;
|
|
case '311':
|
|
customCols = [
|
|
common_Cols.concat(cz_wuli_Cols[0], cz_huaxue_Cols[0], cz_shengwu_Cols[0], cz_yinyue_Cols[0], cz_tiyu_Cols[0], cz_meishu_Cols[0], cz_laoji_Cols[0], cz_chuangke_Cols[0], cz_tushuguan_Cols[0], cz_xinli_Cols[0], cz_weisheng_Cols[0], cz_qita_Cols[0], cz_huyandeng_Cols[0]),
|
|
cz_wuli_Cols[1].concat(cz_huaxue_Cols[1], cz_shengwu_Cols[1], cz_yinyue_Cols[1], cz_tiyu_Cols[1], cz_meishu_Cols[1], cz_laoji_Cols[1], cz_chuangke_Cols[1], cz_tushuguan_Cols[1], cz_xinli_Cols[1], cz_weisheng_Cols[1], cz_qita_Cols[1], cz_huyandeng_Cols[1])
|
|
];
|
|
break;
|
|
case '312':
|
|
var checkboxVal = [];
|
|
$('input[name="jnygz"]:checked').each(function () {
|
|
checkboxVal.push($(this).val());
|
|
});
|
|
|
|
var allArr = ["xx_kexue_Cols", "xx_yinyue_Cols", "cz_yinyue_Cols", "sum_yinyue_Cols", "xx_tiyu_Cols", "cz_tiyu_Cols", "sum_tiyu_Cols", "xx_meishu_Cols", "cz_meishu_Cols", "sum_meishu_Cols", "cz_wuli_Cols", "sum_wuli_Cols", "cz_huaxue_Cols", "sum_huaxue_Cols", "cz_shengwu_Cols", "sum_shengwu_Cols", "xx_laoji_Cols", "cz_laoji_Cols", "sum_laoji_Cols", "xx_chuangke_Cols", "cz_chuangke_Cols", "sum_chuangke_Cols", "xx_tushuguan_Cols", "cz_tushuguan_Cols", "sum_tushuguan_Cols", "xx_xinli_Cols", "cz_xinli_Cols", "sum_xinli_Cols", "xx_weisheng_Cols", "cz_weisheng_Cols", "sum_weisheng_Cols", "cz_qita_Cols", "sum_qita_Cols", "xx_huyandeng_Cols", "cz_huyandeng_Cols", "sum_huyandeng_Cols"];
|
|
|
|
if (!checkboxVal.includes("1")) {
|
|
var xxArr = ["xx_kexue_Cols", "xx_yinyue_Cols", "xx_tiyu_Cols", "xx_meishu_Cols", "xx_laoji_Cols", "xx_chuangke_Cols", "xx_tushuguan_Cols", "xx_xinli_Cols", "xx_weisheng_Cols", "xx_huyandeng_Cols"];
|
|
allArr = allArr.filter(item => !xxArr.includes(item));
|
|
}
|
|
if (!checkboxVal.includes("2")) {
|
|
var czArr = ["cz_wuli_Cols", "cz_huaxue_Cols", "cz_shengwu_Cols", "cz_yinyue_Cols", "cz_tiyu_Cols", "cz_meishu_Cols", "cz_laoji_Cols", "cz_chuangke_Cols", "cz_tushuguan_Cols", "cz_xinli_Cols", "cz_weisheng_Cols", "cz_qita_Cols", "cz_huyandeng_Cols"];
|
|
allArr = allArr.filter(item => !czArr.includes(item));
|
|
}
|
|
if (!checkboxVal.includes("3")) {
|
|
var sumArr = ["sum_yinyue_Cols", "sum_tiyu_Cols", "sum_meishu_Cols", "sum_wuli_Cols", "sum_huaxue_Cols", "sum_shengwu_Cols", "sum_laoji_Cols", "sum_chuangke_Cols", "sum_tushuguan_Cols", "sum_xinli_Cols", "sum_weisheng_Cols", "sum_qita_Cols", "sum_huyandeng_Cols"];
|
|
allArr = allArr.filter(item => !sumArr.includes(item));
|
|
}
|
|
|
|
lv1Arr.push(...common_Cols);
|
|
|
|
allArr.forEach(name => {
|
|
if (window[name]) {
|
|
lv1Arr.push(...window[name][0]);
|
|
lv2Arr.push(...window[name][1]);
|
|
}
|
|
});
|
|
|
|
customCols = [
|
|
lv1Arr,
|
|
lv2Arr
|
|
];
|
|
|
|
break;
|
|
case '341':
|
|
var checkboxVal = [];
|
|
$('input[name="wqzx"]:checked').each(function () {
|
|
checkboxVal.push($(this).val());
|
|
});
|
|
|
|
var allArr = ["cz_wuli_Cols", "gz_wuli_Cols", "sum_wuli_Cols", "cz_huaxue_Cols", "gz_huaxue_Cols", "sum_huaxue_Cols", "cz_shengwu_Cols", "gz_shengwu_Cols", "sum_shengwu_Cols", "cz_yinyue_Cols", "gz_yinyue_Cols", "sum_yinyue_Cols", "cz_tiyu_Cols", "gz_tiyu_Cols", "sum_tiyu_Cols", "cz_meishu_Cols", "gz_meishu_Cols", "sum_meishu_Cols", "cz_laoji_Cols", "sum_laoji_Cols", "cz_chuangke_Cols", "gz_chuangke_Cols", "sum_chuangke_Cols", "cz_tushuguan_Cols", "gz_tushuguan_Cols", "sum_tushuguan_Cols", "cz_xinli_Cols", "gz_xinli_Cols", "sum_xinli_Cols", "cz_weisheng_Cols", "gz_weisheng_Cols", "sum_weisheng_Cols", "cz_qita_Cols", "gz_qita_Cols", "sum_qita_Cols", "cz_huyandeng_Cols", "gz_huyandeng_Cols", "sum_huyandeng_Cols", "gz_tongyongjishu_Cols"];
|
|
|
|
|
|
if (!checkboxVal.includes("4")) {
|
|
var czArr = ["cz_wuli_Cols", "cz_huaxue_Cols", "cz_shengwu_Cols", "cz_yinyue_Cols", "cz_tiyu_Cols", "cz_meishu_Cols", "cz_laoji_Cols", "cz_chuangke_Cols", "cz_tushuguan_Cols", "cz_xinli_Cols", "cz_weisheng_Cols", "cz_qita_Cols", "cz_huyandeng_Cols"];
|
|
allArr = allArr.filter(item => !czArr.includes(item));
|
|
}
|
|
if (!checkboxVal.includes("5")) {
|
|
var gzArr = ["gz_wuli_Cols", "gz_huaxue_Cols", "gz_shengwu_Cols", "gz_yinyue_Cols", "gz_tiyu_Cols", "gz_meishu_Cols", "gz_chuangke_Cols", "gz_tushuguan_Cols", "gz_xinli_Cols", "gz_weisheng_Cols", "gz_qita_Cols", "gz_huyandeng_Cols", "gz_tongyongjishu_Cols"];
|
|
allArr = allArr.filter(item => !gzArr.includes(item));
|
|
}
|
|
if (!checkboxVal.includes("6")) {
|
|
var sumArr = ["sum_yinyue_Cols", "sum_tiyu_Cols", "sum_meishu_Cols", "sum_wuli_Cols", "sum_huaxue_Cols", "sum_shengwu_Cols", "sum_laoji_Cols", "sum_chuangke_Cols", "sum_tushuguan_Cols", "sum_xinli_Cols", "sum_weisheng_Cols", "sum_qita_Cols", "sum_huyandeng_Cols"];
|
|
allArr = allArr.filter(item => !sumArr.includes(item));
|
|
}
|
|
|
|
lv1Arr.push(...common_Cols);
|
|
|
|
allArr.forEach(name => {
|
|
if (window[name]) {
|
|
lv1Arr.push(...window[name][0]);
|
|
lv2Arr.push(...window[name][1]);
|
|
}
|
|
});
|
|
|
|
customCols = [
|
|
lv1Arr,
|
|
lv2Arr
|
|
];
|
|
break;
|
|
case '342':
|
|
customCols = [
|
|
common_Cols.concat(gz_wuli_Cols[0], gz_huaxue_Cols[0], cz_shengwu_Cols[0], gz_yinyue_Cols[0], gz_tiyu_Cols[0], gz_meishu_Cols[0], gz_chuangke_Cols[0], gz_tushuguan_Cols[0], gz_xinli_Cols[0], gz_weisheng_Cols[0], gz_tongyongjishu_Cols[0], gz_qita_Cols[0], gz_huyandeng_Cols[0]),
|
|
gz_wuli_Cols[1].concat(gz_huaxue_Cols[1], cz_shengwu_Cols[1], gz_yinyue_Cols[1], gz_tiyu_Cols[1], gz_meishu_Cols[1], gz_chuangke_Cols[1], gz_tushuguan_Cols[1], gz_xinli_Cols[1], gz_weisheng_Cols[1], gz_tongyongjishu_Cols[1], gz_qita_Cols[1], gz_huyandeng_Cols[1])
|
|
];
|
|
break;
|
|
}
|
|
|
|
|
|
table.render({
|
|
elem: '#myTable',
|
|
url: '/QingLong/zbdc/getQueryCgzb',
|
|
where: {
|
|
area_id: $("#xzqhId").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:
|
|
customCols
|
|
,
|
|
// skin: 'line',
|
|
defaultToolbar: []
|
|
});
|
|
}
|
|
|
|
form.on('submit(user-query)', function () {
|
|
|
|
tableRender()
|
|
|
|
// 阻止表单的默认提交行为
|
|
return false;
|
|
});
|
|
|
|
form.on('submit(export)', function () {
|
|
var url = "/QingLong/zbdc/getQueryCgzb?export_flag=1&page=1&limit=1000&area_id=" + $("#xzqhId").val() + "&school_type_id=" + $("#xxlxId").val() + "&keyword=" + $("#xxmc").val();
|
|
window.location.href = url;
|
|
// 阻止表单的默认提交行为
|
|
return false;
|
|
});
|
|
|
|
form.on('select(xzqh)', function () {
|
|
tableRender();
|
|
// 阻止表单的默认提交行为
|
|
return false;
|
|
});
|
|
|
|
form.on('select(xxlx)', function (data) {
|
|
jnygzCheckFlag = false;
|
|
wqzxCheckFlag = false;
|
|
$("#jnygzCheck").hide();
|
|
$("#wqzxCheck").hide();
|
|
|
|
if (data.value == '312') {
|
|
$("#jnygzCheck").show();
|
|
jnygzCheckFlag = true;
|
|
}
|
|
if (data.value == '341') {
|
|
$("#wqzxCheck").show();
|
|
wqzxCheckFlag = true;
|
|
}
|
|
tableRender();
|
|
// 阻止表单的默认提交行为
|
|
return false;
|
|
});
|
|
|
|
form.on('checkbox(jnygzClick)', function (data) {
|
|
var checkboxes = $('input[name="jnygz"]:checked');
|
|
if (checkboxes.length == 0) {
|
|
$('input[type="checkbox"][value="' + data.value + '"]').prop('checked', true);
|
|
form.render('checkbox');
|
|
layer.msg("至少选择一个!", {
|
|
time: 1000 // 设置 2 秒后自动关闭
|
|
});
|
|
} else {
|
|
tableRender();
|
|
}
|
|
});
|
|
|
|
form.on('checkbox(wqzxClick)', function (data) {
|
|
var checkboxes = $('input[name="wqzx"]:checked');
|
|
if (checkboxes.length == 0) {
|
|
$('input[type="checkbox"][value="' + data.value + '"]').prop('checked', true);
|
|
form.render('checkbox');
|
|
layer.msg("至少选择一个!", {
|
|
time: 1000 // 设置 2 秒后自动关闭
|
|
});
|
|
} else {
|
|
tableRender();
|
|
}
|
|
});
|
|
|
|
});
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html> |