Files
dsProject/dsBase/WebRoot/view/yunxiao/match_school_name.html
2025-08-14 15:45:08 +08:00

99 lines
3.2 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!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: '/dsBase/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>