Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fgqyxxlr
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
yaru
fgqyxxlr
Commits
cc67d57c
Commit
cc67d57c
authored
Feb 15, 2019
by
RuoYi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增表格客户端分页选项
parent
742846b4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
2 deletions
+23
-2
bin/run.bat
+16
-0
ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js
+7
-2
No files found.
bin/run.bat
0 → 100644
View file @
cc67d57c
@echo off
echo.
echo [Ϣ] Web̡
echo.
%~d0
cd %~dp0
cd ../ruoyi-admin/target
set JAVA_OPTS=-Xms256m -Xmx1024m -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=512m
java -jar %JAVA_OPTS% ruoyi-admin.jar
cd bin
pause
\ No newline at end of file
ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js
View file @
cc67d57c
...
...
@@ -14,6 +14,7 @@
init
:
function
(
options
)
{
$
.
table
.
_option
=
options
;
$
.
table
.
_params
=
$
.
common
.
isEmpty
(
options
.
queryParams
)
?
$
.
table
.
queryParams
:
options
.
queryParams
;
_sidePagination
=
$
.
common
.
isEmpty
(
options
.
sidePagination
)
?
"server"
:
options
.
pagination
;
_sortOrder
=
$
.
common
.
isEmpty
(
options
.
sortOrder
)
?
"asc"
:
options
.
sortOrder
;
_sortName
=
$
.
common
.
isEmpty
(
options
.
sortName
)
?
""
:
options
.
sortName
;
_pageSize
=
$
.
common
.
isEmpty
(
options
.
pageSize
)
?
10
:
options
.
pageSize
;
...
...
@@ -42,7 +43,7 @@
showFooter
:
_showFooter
,
// 是否显示表尾
iconSize
:
'outline'
,
// 图标大小:undefined默认的按钮尺寸 xs超小按钮sm小按钮lg大按钮
toolbar
:
'#toolbar'
,
// 指定工作栏
sidePagination
:
"server"
,
// 启用服务
端分页
sidePagination
:
_sidePagination
,
// server启用服务端分页client客户
端分页
search
:
$
.
common
.
visible
(
options
.
search
),
// 是否显示搜索框功能
showSearch
:
$
.
common
.
visible
(
options
.
showSearch
),
// 是否显示检索信息
showRefresh
:
$
.
common
.
visible
(
options
.
showRefresh
),
// 是否显示刷新按钮
...
...
@@ -73,7 +74,11 @@
// 请求获取数据后处理回调函数
responseHandler
:
function
(
res
)
{
if
(
res
.
code
==
0
)
{
return
{
rows
:
res
.
rows
,
total
:
res
.
total
};
if
(
$
.
common
.
isNotEmpty
(
$
.
table
.
_option
.
sidePagination
)
&&
$
.
table
.
_option
.
sidePagination
===
'client'
)
{
return
res
.
rows
;
}
else
{
return
{
rows
:
res
.
rows
,
total
:
res
.
total
};
}
}
else
{
$
.
modal
.
alertWarning
(
res
.
msg
);
return
{
rows
:
[],
total
:
0
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment