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.

99 lines
3.2 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" href="../../component/pear/css/pear.css" />
<style>
.woo-templet-url {
display: inline-block;
background: rgba(0, 0, 0, 0.3);
border-radius: 6px;
height: 20px;
line-height: 21px;
padding: 0 5px;
color: #fff;
max-width: 100%;
overflow: hidden;
margin-top: 5px;
}
.layui-card-body .layui-form {
margin-top: 0 !important;
}
</style>
</head>
<body class="pear-container">
<div class="layui-card">
<div class="layui-card-body">
<table id="dataTable"></table>
</div>
</div>
<script type="text/html" id="user-bar">
<button class="pear-btn pear-btn-primary pear-btn-sm" lay-event="match" title="匹配"><i class="layui-icon layui-icon-app"></i></button>
</script>
<script src="../../component/layui/layui.js"></script>
<script src="../../component/pear/pear.js"></script>
<script src="../../component/pear/base64.js"></script>
<script>
layui.use(['table', 'form', 'jquery', 'common'], function () {
var table = layui.table;
var form = layui.form;
var $ = layui.jquery;
var common = layui.common;
table.render({
elem: '#dataTable',
url: '/QingLong/yx/matchSchoolNameList',
height: 'full-45',
request: {
pageName: 'pageNum', // 页码的参数名称默认page
limitName: 'pageSize' // 每页数据条数的参数名默认limit
},
page: {
limit: 20
, layout: ['count', 'prev', 'page', 'next', 'skip']
, prev: "上一页"
, next: "下一页"
},
cols: [[
{ title: '序号', field: 'username', align: 'center', width: "10%", type: 'numbers', },
{ title: '原学校名称', field: 'original_school_name', align: 'center' },
{ title: '操作', toolbar: '#user-bar', align: 'center', width: "15%" }
]],
skin: 'line',
defaultToolbar: [{
title: '刷新',
layEvent: 'refresh',
icon: 'layui-icon-refresh',
}, 'filter', 'print', 'exports']
});
table.on('tool(dataTable)', function (obj) {
if (obj.event === 'match') {
layer.open({
type: 2,
title: '匹配学校名称',
shade: 0.1,
area: ['650px', '400px'],
content: './update_school_name.html?o_name=' + Base64.encode(obj.data.original_school_name)
});
}
});
window.refresh = function (param) {
table.reload('dataTable');
}
})
</script>
</body>
</html>