parent
3dbc626304
commit
f9b72607d7
@ -0,0 +1,134 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title></title>
|
||||
<link rel="stylesheet" href="../../../../component/pear/css/pear.css" />
|
||||
<style>
|
||||
.woo-tool-text-delimiter {
|
||||
width: 1px;
|
||||
height: 12px;
|
||||
background: #EEEEEE;
|
||||
display: inline-block;
|
||||
margin: 0 6px 0 4px;
|
||||
}
|
||||
|
||||
.woo-theme-color {
|
||||
color: #2d8cf0 !important;
|
||||
}
|
||||
|
||||
.woo-tool-span {
|
||||
margin: 0 3px;
|
||||
position: relative;
|
||||
top: -1px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.layui-table-tool-temp {
|
||||
padding-right: 0;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body class="pear-container layui-form">
|
||||
|
||||
<div class="layui-card">
|
||||
<div class="layui-card-body">
|
||||
<table id="data-table"></table>
|
||||
|
||||
<script type="text/html" id="table-toolbar">
|
||||
<button class="pear-btn pear-btn-primary pear-btn-md" lay-event="zhinengMatch">
|
||||
<i class="layui-icon layui-icon-search"></i>
|
||||
智能匹配
|
||||
</button>
|
||||
</script>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<script type="text/html" id="table-bar">
|
||||
<span class="woo-tool-span woo-tool-text-span" lay-event="shoudongMatch"><a
|
||||
class="woo-theme-color">手功匹配</a></span>
|
||||
</script>
|
||||
|
||||
<script src="../../../../component/layui/layui.js"></script>
|
||||
<script src="../../../../component/pear/pear.js"></script>
|
||||
|
||||
<script>
|
||||
layui.use(['table', 'form', 'jquery', 'common', 'laytpl'], function () {
|
||||
var table = layui.table;
|
||||
var form = layui.form;
|
||||
var $ = layui.jquery;
|
||||
var common = layui.common;
|
||||
var laytpl = layui.laytpl;
|
||||
|
||||
tableRender();
|
||||
|
||||
function tableRender() {
|
||||
table.render({
|
||||
elem: '#data-table',
|
||||
url: '/QingLong/yunxiao/getTop10',
|
||||
where: {
|
||||
page: 1,
|
||||
limit: 100,
|
||||
system_id: 0
|
||||
},
|
||||
height: 'full-60',
|
||||
page: {
|
||||
limit: 15
|
||||
, layout: ['count', 'prev', 'page', 'next', 'skip']
|
||||
, prev: "上一页"
|
||||
, next: "下一页"
|
||||
},
|
||||
cols: [[
|
||||
{ title: '序号', unresize: true, align: 'center', width: "5%", type: 'numbers' },
|
||||
{ title: '单位名称', unresize: true, align: 'center', field: 'st' },
|
||||
{ title: '操作', unresize: true, align: 'center', width: "10%", toolbar: '#table-bar' }
|
||||
]],
|
||||
skin: 'line',
|
||||
toolbar: '#table-toolbar',
|
||||
defaultToolbar: []
|
||||
});
|
||||
}
|
||||
|
||||
table.on('tool(data-table)', function (obj) {
|
||||
if (obj.event === 'shoudongMatch') {
|
||||
window.shoudongMatch(obj);
|
||||
}
|
||||
});
|
||||
|
||||
table.on('toolbar(data-table)', function (obj) {
|
||||
if (obj.event === 'zhinengMatch') {
|
||||
window.zhinengMatch(obj);
|
||||
}
|
||||
});
|
||||
|
||||
window.shoudongMatch = function (obj) {
|
||||
console.log(obj);
|
||||
refresh();
|
||||
}
|
||||
|
||||
window.zhinengMatch = function (obj) {
|
||||
console.log(obj);
|
||||
refresh();
|
||||
}
|
||||
|
||||
window.refresh = function (param) {
|
||||
table.reload('data-table');
|
||||
}
|
||||
|
||||
function GetQueryString(name, istop) {
|
||||
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
|
||||
var r = window.location.search.substr(1).match(reg);
|
||||
if (typeof (istop) != "undefined") r = top.location.search.substr(1).match(reg);
|
||||
|
||||
if (r != null) return unescape(r[2]);
|
||||
return null;
|
||||
}
|
||||
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
@ -0,0 +1,115 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title></title>
|
||||
<link rel="stylesheet" href="../../../../component/pear/css/pear.css" />
|
||||
<style>
|
||||
.woo-tool-text-delimiter {
|
||||
width: 1px;
|
||||
height: 12px;
|
||||
background: #EEEEEE;
|
||||
display: inline-block;
|
||||
margin: 0 6px 0 4px;
|
||||
}
|
||||
|
||||
.woo-theme-color {
|
||||
color: #2d8cf0 !important;
|
||||
}
|
||||
|
||||
.woo-tool-span {
|
||||
margin: 0 3px;
|
||||
position: relative;
|
||||
top: -1px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.layui-table-tool-temp {
|
||||
padding-right: 0;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body class="pear-container layui-form">
|
||||
|
||||
<div class="layui-card">
|
||||
<div class="layui-card-body">
|
||||
<table id="data-table"></table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<script type="text/html" id="table-bar">
|
||||
<span class="woo-tool-span woo-tool-text-span" lay-event="unMatch"><a
|
||||
class="woo-theme-color">取消匹配</a></span>
|
||||
</script>
|
||||
|
||||
<script src="../../../../component/layui/layui.js"></script>
|
||||
<script src="../../../../component/pear/pear.js"></script>
|
||||
|
||||
<script>
|
||||
layui.use(['table', 'form', 'jquery', 'common', 'laytpl'], function () {
|
||||
var table = layui.table;
|
||||
var form = layui.form;
|
||||
var $ = layui.jquery;
|
||||
var common = layui.common;
|
||||
var laytpl = layui.laytpl;
|
||||
|
||||
tableRender();
|
||||
|
||||
function tableRender() {
|
||||
table.render({
|
||||
elem: '#data-table',
|
||||
url: '/QingLong/yunxiao/getTop10',
|
||||
where: {
|
||||
page: 1,
|
||||
limit: 100,
|
||||
system_id: 0
|
||||
},
|
||||
height: 'full-60',
|
||||
page: {
|
||||
limit: 15
|
||||
, layout: ['count', 'prev', 'page', 'next', 'skip']
|
||||
, prev: "上一页"
|
||||
, next: "下一页"
|
||||
},
|
||||
cols: [[
|
||||
{ title: '序号', unresize: true, align: 'center', width: "5%", type: 'numbers' },
|
||||
{ title: '单位名称', unresize: true, align: 'center', field: 'st' },
|
||||
{ title: '操作', unresize: true, align: 'center', width: "10%", toolbar: '#table-bar' }
|
||||
]],
|
||||
skin: 'line',
|
||||
defaultToolbar: []
|
||||
});
|
||||
}
|
||||
|
||||
table.on('tool(data-table)', function (obj) {
|
||||
if (obj.event === 'unMatch') {
|
||||
window.unMatch(obj);
|
||||
}
|
||||
});
|
||||
|
||||
window.unMatch = function (obj) {
|
||||
console.log(obj);
|
||||
refresh();
|
||||
}
|
||||
|
||||
window.refresh = function (param) {
|
||||
table.reload('data-table');
|
||||
}
|
||||
|
||||
function GetQueryString(name, istop) {
|
||||
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
|
||||
var r = window.location.search.substr(1).match(reg);
|
||||
if (typeof (istop) != "undefined") r = top.location.search.substr(1).match(reg);
|
||||
|
||||
if (r != null) return unescape(r[2]);
|
||||
return null;
|
||||
}
|
||||
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
Loading…
Reference in new issue