|
|
|
@ -74,11 +74,16 @@
|
|
|
|
|
color: #ffb800 !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.woo-red-color {
|
|
|
|
|
color: #ff5722 !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.woo-tool-span {
|
|
|
|
|
margin: 0 3px;
|
|
|
|
|
position: relative;
|
|
|
|
|
top: -1px;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.layui-table {
|
|
|
|
@ -106,13 +111,20 @@
|
|
|
|
|
<table class="layui-table" id="myTable"></table>
|
|
|
|
|
|
|
|
|
|
<script type="text/html" id="table-bar">
|
|
|
|
|
{{# if(d.pass === 1) { }}
|
|
|
|
|
{{# if(d.check_type_id === 0) { }}
|
|
|
|
|
<span class="woo-tool-span woo-tool-text-span" style="color: #c2c2c2 !important;cursor:default;">未提交数据,暂无可用操作</span>
|
|
|
|
|
|
|
|
|
|
{{# } else { }}
|
|
|
|
|
<span class="woo-tool-span woo-tool-text-span" lay-event="view"><a
|
|
|
|
|
class="woo-theme-color">查看详情</a></span>
|
|
|
|
|
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-orange-color">审核通过</a></span>
|
|
|
|
|
{{# } }}
|
|
|
|
|
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>
|
|
|
|
|
|
|
|
|
|
{{# } }}
|
|
|
|
|
</script>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
@ -122,17 +134,6 @@
|
|
|
|
|
<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>
|
|
|
|
@ -168,13 +169,20 @@
|
|
|
|
|
<table class="layui-table" id="myTable1" style="margin-top: 10px !important;"></table>
|
|
|
|
|
|
|
|
|
|
<script type="text/html" id="table-bar1">
|
|
|
|
|
{{# if(d.pass === 1) { }}
|
|
|
|
|
<span class="woo-tool-span woo-tool-text-span" lay-event="view1"><a
|
|
|
|
|
class="woo-theme-color">查看详情</a></span>
|
|
|
|
|
{{# if(d.check_type_id === 0) { }}
|
|
|
|
|
<span class="woo-tool-span woo-tool-text-span" style="color: #c2c2c2 !important;cursor:default;">未提交数据,暂无可用操作</span>
|
|
|
|
|
|
|
|
|
|
{{# } else { }}
|
|
|
|
|
<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="shenhe1"><a
|
|
|
|
|
class="woo-orange-color">审核通过</a></span>
|
|
|
|
|
{{# } }}
|
|
|
|
|
<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>
|
|
|
|
|
|
|
|
|
|
{{# } }}
|
|
|
|
|
</script>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
@ -202,10 +210,10 @@
|
|
|
|
|
height: 'full-85',
|
|
|
|
|
cols: [[
|
|
|
|
|
{ title: '序号', align: 'center', width: "10%", type: 'numbers' },
|
|
|
|
|
{ title: '行政区划', field: 'area_name', align: 'center', width: "35%" },
|
|
|
|
|
{ title: '下级单位', field: 'count', align: 'center', width: "30%" },
|
|
|
|
|
{ title: '状态', field: 'count', align: 'center', width: "30%" },
|
|
|
|
|
{ title: '操作', toolbar: '#table-bar', align: 'center', width: "25%" }
|
|
|
|
|
{ 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: []
|
|
|
|
@ -226,52 +234,47 @@
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
table.render({
|
|
|
|
|
elem: '#myTable1',
|
|
|
|
|
url: '/QingLong/zbdc/listSchool',
|
|
|
|
|
where: {
|
|
|
|
|
check_type_id: $("#statusId").val(),
|
|
|
|
|
school_type_id: $("#xxlxId").val(),
|
|
|
|
|
keyword: $("#xxmc").val()
|
|
|
|
|
},
|
|
|
|
|
cellExpandedMode: "tips",
|
|
|
|
|
height: 'full-85',
|
|
|
|
|
cols: [[
|
|
|
|
|
{ title: '序号', align: 'center', width: "10%", type: 'numbers' },
|
|
|
|
|
{ title: '学校名称', field: 'area_name', align: 'center', width: "35%" },
|
|
|
|
|
{ title: '学校类型', field: 'count', align: 'center', width: "30%" },
|
|
|
|
|
{ title: '状态', field: 'count', align: 'center', width: "30%" },
|
|
|
|
|
{ title: '操作', toolbar: '#table-bar1', align: 'center', width: "25%" }
|
|
|
|
|
]],
|
|
|
|
|
// skin: 'line',
|
|
|
|
|
defaultToolbar: []
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
form.on('select(status)', function (data) {
|
|
|
|
|
if (data.value == 0) {
|
|
|
|
|
$("#shenhe").show();
|
|
|
|
|
} else {
|
|
|
|
|
$("#shenhe").hide();
|
|
|
|
|
}
|
|
|
|
|
tableRender();
|
|
|
|
|
// 阻止表单的默认提交行为
|
|
|
|
|
return false;
|
|
|
|
|
});
|
|
|
|
|
tableRender1();
|
|
|
|
|
|
|
|
|
|
function tableRender1() {
|
|
|
|
|
|
|
|
|
|
table.render({
|
|
|
|
|
elem: '#myTable1',
|
|
|
|
|
url: '/QingLong/zbdc/listSchool',
|
|
|
|
|
where: {
|
|
|
|
|
page: 1,
|
|
|
|
|
limit: 100,
|
|
|
|
|
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 () {
|
|
|
|
|
|
|
|
|
|
tableRender()
|
|
|
|
|
|
|
|
|
|
// 阻止表单的默认提交行为
|
|
|
|
|
tableRender1();
|
|
|
|
|
return false;
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
form.on('select(xxlx)', function () {
|
|
|
|
|
tableRender();
|
|
|
|
|
// 阻止表单的默认提交行为
|
|
|
|
|
tableRender1();
|
|
|
|
|
return false;
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
table.on('tool(myTable1)', function (obj) {
|
|
|
|
|
console.log(obj);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
table.on('tool(myTable)', function (obj) {
|
|
|
|
|
var areaId = obj.data.id;
|
|
|
|
|
if (obj.event === 'view') {
|
|
|
|
|