You've already forked qlg.tsgz.moe
Init Repo
This commit is contained in:
25
hyhproject/admin/view/hooks/hooks.js
Executable file
25
hyhproject/admin/view/hooks/hooks.js
Executable file
@ -0,0 +1,25 @@
|
||||
var mmg;
|
||||
function initGrid(){
|
||||
var h = WST.pageHeight();
|
||||
var cols = [
|
||||
{title:'名称', name:'name', width: 100},
|
||||
{title:'描述', name:'hookRemarks', width: 100},
|
||||
{title:'对应插件', name:'addons' ,width:70, align:'center'}
|
||||
];
|
||||
|
||||
mmg = $('.mmg').mmGrid({height: h-85,indexCol: true, cols: cols,method:'POST',
|
||||
url: WST.U('admin/hooks/pageQuery'), fullWidthRows: true, autoLoad: true,
|
||||
plugins: [
|
||||
$('#pg').mmPaginator({})
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
//查询
|
||||
function hooksQuery(){
|
||||
var query = WST.getParams('.query');
|
||||
query.page = 1;
|
||||
mmg.load(query);
|
||||
}
|
||||
|
26
hyhproject/admin/view/hooks/list.html
Executable file
26
hyhproject/admin/view/hooks/list.html
Executable file
@ -0,0 +1,26 @@
|
||||
{extend name="base" /}
|
||||
{block name="css"}
|
||||
<link rel="stylesheet" type="text/css" href="__ADMIN__/js/mmgrid/mmGrid.css?v={$v}" />
|
||||
{/block}
|
||||
{block name="js"}
|
||||
<script src="__ADMIN__/js/mmgrid/mmGrid.js?v={$v}" type="text/javascript"></script>
|
||||
<script src="__ADMIN__/hooks/hooks.js?v={$v}" type="text/javascript"></script>
|
||||
{/block}
|
||||
{block name="main"}
|
||||
<div class="wst-toolbar">
|
||||
<div id="query" style="float:left;">
|
||||
<input type="text" name="keyWords" placeholder="钩子名称" id="keyWords" class="j-ipt query">
|
||||
<button type="button" class='btn btn-primary btn-mright' onclick="javascript:hooksQuery()" ><i class="fa fa-search"></i>查询</button>
|
||||
</div>
|
||||
|
||||
<div style="clear:both"></div>
|
||||
</div>
|
||||
<div class='wst-grid'>
|
||||
<div id="mmg" class="mmg"></div>
|
||||
<div id="pg" style="text-align: right;"></div>
|
||||
</div>
|
||||
<script>
|
||||
$(function(){initGrid()});
|
||||
</script>
|
||||
|
||||
{/block}
|
Reference in New Issue
Block a user