parent
5ab98115be
commit
6ea133b036
@ -0,0 +1,171 @@
|
||||
<!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">
|
||||
|
||||
<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;
|
||||
|
||||
|
||||
|
||||
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;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
table.on('tool(myTable)', function (obj) {
|
||||
console.log(obj.data.school_type_id)
|
||||
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=1";
|
||||
} 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=1";
|
||||
}
|
||||
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=1";
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
});
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
Binary file not shown.
Loading…
Reference in new issue