diff --git a/app/admin/controller/Post.php b/app/admin/controller/Post.php index dc277d2..c3bfb71 100644 --- a/app/admin/controller/Post.php +++ b/app/admin/controller/Post.php @@ -38,7 +38,9 @@ class Post extends Common $list = ModelPost::with(['categorys.category', 'tags.tag']) ->where('type', $this->request->param('type', 1)) ->order('id desc') - ->paginate(); + ->paginate([ + 'query' => $this->request->get() + ]); View::assign('list', $list); diff --git a/demo/form.html b/demo/form.html new file mode 100644 index 0000000..d488652 --- /dev/null +++ b/demo/form.html @@ -0,0 +1,57 @@ +
\ No newline at end of file diff --git a/public/cdn/layui-ul.css b/public/cdn/layui-ul.css index b06dcb4..1cfa2f8 100644 --- a/public/cdn/layui-ul.css +++ b/public/cdn/layui-ul.css @@ -564,7 +564,7 @@ .ul-note-item.current, .ul-note-item:hover { - background-color: #eee; + background-color: #dedede; } .ul-note-item .ul-note-item-icon { @@ -573,8 +573,8 @@ } .ul-note-item .ul-note-item-desc { - color : #999; - font-size: 12px; + color : #999; + font-size : 12px; margin-top: 5px; } @@ -588,4 +588,18 @@ font-size : 12px; color : #bbb; margin-top: 5px; +} + + +.ul-input-table { + text-align: center; +} + +.ul-input-table td, +.ul-input-table th { + padding: 2px 4px; +} + +.ul-input-table .layui-form-checkbox[lay-skin="primary"] { + margin-top: 0px; } \ No newline at end of file