Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
finance-manage
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
finance-oa
finance-manage
Commits
ee823b83
Commit
ee823b83
authored
Sep 02, 2021
by
RuoYi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
防止表格最后页最后项删除变成暂无数据
parent
57178e72
Changes
17
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
50 additions
and
2 deletions
+50
-2
ruoyi-common/src/main/java/com/ruoyi/common/core/controller/BaseController.java
...java/com/ruoyi/common/core/controller/BaseController.java
+2
-1
ruoyi-common/src/main/java/com/ruoyi/common/core/page/PageDomain.java
.../src/main/java/com/ruoyi/common/core/page/PageDomain.java
+13
-0
ruoyi-common/src/main/java/com/ruoyi/common/core/page/TableSupport.java
...rc/main/java/com/ruoyi/common/core/page/TableSupport.java
+6
-0
ruoyi-common/src/main/java/com/ruoyi/common/utils/ServletUtils.java
...on/src/main/java/com/ruoyi/common/utils/ServletUtils.java
+16
-0
ruoyi-ui/src/api/login.js
ruoyi-ui/src/api/login.js
+1
-1
ruoyi-ui/src/views/monitor/job/index.vue
ruoyi-ui/src/views/monitor/job/index.vue
+1
-0
ruoyi-ui/src/views/monitor/job/log.vue
ruoyi-ui/src/views/monitor/job/log.vue
+1
-0
ruoyi-ui/src/views/monitor/logininfor/index.vue
ruoyi-ui/src/views/monitor/logininfor/index.vue
+1
-0
ruoyi-ui/src/views/system/config/index.vue
ruoyi-ui/src/views/system/config/index.vue
+1
-0
ruoyi-ui/src/views/system/dict/data.vue
ruoyi-ui/src/views/system/dict/data.vue
+1
-0
ruoyi-ui/src/views/system/dict/index.vue
ruoyi-ui/src/views/system/dict/index.vue
+1
-0
ruoyi-ui/src/views/system/notice/index.vue
ruoyi-ui/src/views/system/notice/index.vue
+1
-0
ruoyi-ui/src/views/system/post/index.vue
ruoyi-ui/src/views/system/post/index.vue
+1
-0
ruoyi-ui/src/views/system/role/authUser.vue
ruoyi-ui/src/views/system/role/authUser.vue
+1
-0
ruoyi-ui/src/views/system/role/index.vue
ruoyi-ui/src/views/system/role/index.vue
+1
-0
ruoyi-ui/src/views/system/user/index.vue
ruoyi-ui/src/views/system/user/index.vue
+1
-0
ruoyi-ui/src/views/tool/gen/index.vue
ruoyi-ui/src/views/tool/gen/index.vue
+1
-0
No files found.
ruoyi-common/src/main/java/com/ruoyi/common/core/controller/BaseController.java
View file @
ee823b83
...
...
@@ -57,7 +57,8 @@ public class BaseController
if
(
StringUtils
.
isNotNull
(
pageNum
)
&&
StringUtils
.
isNotNull
(
pageSize
))
{
String
orderBy
=
SqlUtil
.
escapeOrderBySql
(
pageDomain
.
getOrderBy
());
PageHelper
.
startPage
(
pageNum
,
pageSize
,
orderBy
);
Boolean
reasonable
=
pageDomain
.
getReasonable
();
PageHelper
.
startPage
(
pageNum
,
pageSize
,
orderBy
).
setReasonable
(
reasonable
);
}
}
...
...
ruoyi-common/src/main/java/com/ruoyi/common/core/page/PageDomain.java
View file @
ee823b83
...
...
@@ -21,6 +21,9 @@ public class PageDomain
/** 排序的方向desc或者asc */
private
String
isAsc
=
"asc"
;
/** 分页参数合理化 */
private
Boolean
reasonable
=
false
;
public
String
getOrderBy
()
{
if
(
StringUtils
.
isEmpty
(
orderByColumn
))
...
...
@@ -81,4 +84,14 @@ public class PageDomain
this
.
isAsc
=
isAsc
;
}
}
public
Boolean
getReasonable
()
{
return
reasonable
;
}
public
void
setReasonable
(
Boolean
reasonable
)
{
this
.
reasonable
=
reasonable
;
}
}
ruoyi-common/src/main/java/com/ruoyi/common/core/page/TableSupport.java
View file @
ee823b83
...
...
@@ -29,6 +29,11 @@ public class TableSupport
*/
public
static
final
String
IS_ASC
=
"isAsc"
;
/**
* 分页参数合理化
*/
public
static
final
String
REASONABLE
=
"reasonable"
;
/**
* 封装分页对象
*/
...
...
@@ -39,6 +44,7 @@ public class TableSupport
pageDomain
.
setPageSize
(
ServletUtils
.
getParameterToInt
(
PAGE_SIZE
));
pageDomain
.
setOrderByColumn
(
ServletUtils
.
getParameter
(
ORDER_BY_COLUMN
));
pageDomain
.
setIsAsc
(
ServletUtils
.
getParameter
(
IS_ASC
));
pageDomain
.
setReasonable
(
ServletUtils
.
getParameterToBool
(
REASONABLE
));
return
pageDomain
;
}
...
...
ruoyi-common/src/main/java/com/ruoyi/common/utils/ServletUtils.java
View file @
ee823b83
...
...
@@ -48,6 +48,22 @@ public class ServletUtils
return
Convert
.
toInt
(
getRequest
().
getParameter
(
name
),
defaultValue
);
}
/**
* 获取Boolean参数
*/
public
static
Boolean
getParameterToBool
(
String
name
)
{
return
Convert
.
toBool
(
getRequest
().
getParameter
(
name
));
}
/**
* 获取Boolean参数
*/
public
static
Boolean
getParameterToBool
(
String
name
,
Boolean
defaultValue
)
{
return
Convert
.
toBool
(
getRequest
().
getParameter
(
name
),
defaultValue
);
}
/**
* 获取request
*/
...
...
ruoyi-ui/src/api/login.js
View file @
ee823b83
...
...
@@ -48,6 +48,6 @@ export function getCodeImg() {
return
request
({
url
:
'
/captchaImage
'
,
method
:
'
get
'
,
timeout
:
20000
timeout
:
20000
})
}
\ No newline at end of file
ruoyi-ui/src/views/monitor/job/index.vue
View file @
ee823b83
...
...
@@ -320,6 +320,7 @@ export default {
queryParams
:
{
pageNum
:
1
,
pageSize
:
10
,
reasonable
:
true
,
jobName
:
undefined
,
jobGroup
:
undefined
,
status
:
undefined
...
...
ruoyi-ui/src/views/monitor/job/log.vue
View file @
ee823b83
...
...
@@ -220,6 +220,7 @@ export default {
queryParams
:
{
pageNum
:
1
,
pageSize
:
10
,
reasonable
:
true
,
jobName
:
undefined
,
jobGroup
:
undefined
,
status
:
undefined
...
...
ruoyi-ui/src/views/monitor/logininfor/index.vue
View file @
ee823b83
...
...
@@ -153,6 +153,7 @@ export default {
queryParams
:
{
pageNum
:
1
,
pageSize
:
10
,
reasonable
:
true
,
ipaddr
:
undefined
,
userName
:
undefined
,
status
:
undefined
...
...
ruoyi-ui/src/views/system/config/index.vue
View file @
ee823b83
...
...
@@ -219,6 +219,7 @@ export default {
queryParams
:
{
pageNum
:
1
,
pageSize
:
10
,
reasonable
:
true
,
configName
:
undefined
,
configKey
:
undefined
,
configType
:
undefined
...
...
ruoyi-ui/src/views/system/dict/data.vue
View file @
ee823b83
...
...
@@ -247,6 +247,7 @@ export default {
queryParams
:
{
pageNum
:
1
,
pageSize
:
10
,
reasonable
:
true
,
dictName
:
undefined
,
dictType
:
undefined
,
status
:
undefined
...
...
ruoyi-ui/src/views/system/dict/index.vue
View file @
ee823b83
...
...
@@ -227,6 +227,7 @@ export default {
queryParams
:
{
pageNum
:
1
,
pageSize
:
10
,
reasonable
:
true
,
dictName
:
undefined
,
dictType
:
undefined
,
status
:
undefined
...
...
ruoyi-ui/src/views/system/notice/index.vue
View file @
ee823b83
...
...
@@ -204,6 +204,7 @@ export default {
queryParams
:
{
pageNum
:
1
,
pageSize
:
10
,
reasonable
:
true
,
noticeTitle
:
undefined
,
createBy
:
undefined
,
status
:
undefined
...
...
ruoyi-ui/src/views/system/post/index.vue
View file @
ee823b83
...
...
@@ -192,6 +192,7 @@ export default {
queryParams
:
{
pageNum
:
1
,
pageSize
:
10
,
reasonable
:
true
,
postCode
:
undefined
,
postName
:
undefined
,
status
:
undefined
...
...
ruoyi-ui/src/views/system/role/authUser.vue
View file @
ee823b83
...
...
@@ -128,6 +128,7 @@ export default {
queryParams
:
{
pageNum
:
1
,
pageSize
:
10
,
reasonable
:
true
,
roleId
:
undefined
,
userName
:
undefined
,
phonenumber
:
undefined
...
...
ruoyi-ui/src/views/system/role/index.vue
View file @
ee823b83
...
...
@@ -328,6 +328,7 @@ export default {
queryParams
:
{
pageNum
:
1
,
pageSize
:
10
,
reasonable
:
true
,
roleName
:
undefined
,
roleKey
:
undefined
,
status
:
undefined
...
...
ruoyi-ui/src/views/system/user/index.vue
View file @
ee823b83
...
...
@@ -418,6 +418,7 @@ export default {
queryParams
:
{
pageNum
:
1
,
pageSize
:
10
,
reasonable
:
true
,
userName
:
undefined
,
phonenumber
:
undefined
,
status
:
undefined
,
...
...
ruoyi-ui/src/views/tool/gen/index.vue
View file @
ee823b83
...
...
@@ -219,6 +219,7 @@ export default {
queryParams
:
{
pageNum
:
1
,
pageSize
:
10
,
reasonable
:
true
,
tableName
:
undefined
,
tableComment
:
undefined
},
...
...
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