Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
guns-vip
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenjunxiong
guns-vip
Commits
e67926e3
Commit
e67926e3
authored
Jun 27, 2017
by
naan1993
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
2db9295c
5001bfad
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
5 deletions
+25
-5
src/main/webapp/static/js/common/bootstrap-table-object.js
+12
-2
src/main/webapp/static/modular/system/log/log.js
+13
-3
No files found.
src/main/webapp/static/js/common/bootstrap-table-object.js
View file @
e67926e3
...
@@ -14,8 +14,9 @@
...
@@ -14,8 +14,9 @@
this
.
paginationType
=
"server"
;
//默认分页方式是服务器分页,可选项"client"
this
.
paginationType
=
"server"
;
//默认分页方式是服务器分页,可选项"client"
this
.
toolbarId
=
bstableId
+
"Toolbar"
;
this
.
toolbarId
=
bstableId
+
"Toolbar"
;
this
.
columns
=
columns
;
this
.
columns
=
columns
;
this
.
height
=
665
,
//默认表格高度665
this
.
height
=
665
;
//默认表格高度665
this
.
data
=
{};
this
.
data
=
{};
this
.
queryParams
=
{};
// 向后台传递的自定义参数
};
};
BSTable
.
prototype
=
{
BSTable
.
prototype
=
{
...
@@ -42,6 +43,9 @@
...
@@ -42,6 +43,9 @@
pageSize
:
14
,
//每页的记录行数(*)
pageSize
:
14
,
//每页的记录行数(*)
pageList
:
[
14
,
50
,
100
],
//可供选择的每页的行数(*)
pageList
:
[
14
,
50
,
100
],
//可供选择的每页的行数(*)
queryParamsType
:
'limit'
,
//默认值为 'limit' ,在默认情况下 传给服务端的参数为:offset,limit,sort
queryParamsType
:
'limit'
,
//默认值为 'limit' ,在默认情况下 传给服务端的参数为:offset,limit,sort
queryParams
:
function
(
param
)
{
return
$
.
extend
(
this
.
queryParams
,
param
);
},
// 向后台传递的自定义参数
sidePagination
:
this
.
paginationType
,
//分页方式:client客户端分页,server服务端分页(*)
sidePagination
:
this
.
paginationType
,
//分页方式:client客户端分页,server服务端分页(*)
search
:
false
,
//是否显示表格搜索,此搜索是客户端搜索,不会进服务端
search
:
false
,
//是否显示表格搜索,此搜索是客户端搜索,不会进服务端
strictSearch
:
true
,
//设置为 true启用 全匹配搜索,否则为模糊搜索
strictSearch
:
true
,
//设置为 true启用 全匹配搜索,否则为模糊搜索
...
@@ -62,7 +66,13 @@
...
@@ -62,7 +66,13 @@
});
});
return
this
;
return
this
;
},
},
/**
* 向后台传递的自定义参数
* @param param
*/
setQueryParams
:
function
(
param
)
{
this
.
queryParams
=
param
;
},
/**
/**
* 设置分页方式:server 或者 client
* 设置分页方式:server 或者 client
*/
*/
...
...
src/main/webapp/static/modular/system/log/log.js
View file @
e67926e3
...
@@ -66,9 +66,10 @@ OptLog.delLog = function () {
...
@@ -66,9 +66,10 @@ OptLog.delLog = function () {
}
}
/**
/**
* 查询日志列表
* 查询表单提交参数对象
* @returns {{}}
*/
*/
OptLog
.
search
=
function
()
{
OptLog
.
formParams
=
function
()
{
var
queryData
=
{};
var
queryData
=
{};
queryData
[
'logName'
]
=
$
(
"#logName"
).
val
();
queryData
[
'logName'
]
=
$
(
"#logName"
).
val
();
...
@@ -76,12 +77,21 @@ OptLog.search = function () {
...
@@ -76,12 +77,21 @@ OptLog.search = function () {
queryData
[
'endTime'
]
=
$
(
"#endTime"
).
val
();
queryData
[
'endTime'
]
=
$
(
"#endTime"
).
val
();
queryData
[
'logType'
]
=
$
(
"#logType"
).
val
();
queryData
[
'logType'
]
=
$
(
"#logType"
).
val
();
OptLog
.
table
.
refresh
({
query
:
queryData
});
return
queryData
;
}
/**
* 查询日志列表
*/
OptLog
.
search
=
function
()
{
OptLog
.
table
.
refresh
({
query
:
OptLog
.
formParams
()});
};
};
$
(
function
()
{
$
(
function
()
{
var
defaultColunms
=
OptLog
.
initColumn
();
var
defaultColunms
=
OptLog
.
initColumn
();
var
table
=
new
BSTable
(
OptLog
.
id
,
"/log/list"
,
defaultColunms
);
var
table
=
new
BSTable
(
OptLog
.
id
,
"/log/list"
,
defaultColunms
);
table
.
setPaginationType
(
"server"
);
table
.
setPaginationType
(
"server"
);
table
.
setQueryParams
(
OptLog
.
formParams
());
OptLog
.
table
=
table
.
init
();
OptLog
.
table
=
table
.
init
();
});
});
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