Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
杨建斌
/
page
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
1
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
c8c0470f
authored
2018-03-24 13:37:56 +0800
by
Zelig
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
搜索优化
1 parent
7aab96d5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
7 deletions
application/views/common/footer.php
application/views/common/footer.php
View file @
c8c0470
...
...
@@ -99,21 +99,31 @@
return
JSON
.
stringify
(
ret
);
},
data
:
function
(
data
)
{
data
.
startTime
=
$
(
'#min'
).
val
();
data
.
endTime
=
$
(
'#max'
).
val
();
data
.
pageSize
=
data
.
length
;
data
.
currentPage
=
parseFloat
(
data
.
start
/
data
.
length
)
+
1
;
return
data
;
}
},
},
fnServerParams
:
function
(
aoData
)
{
delete
aoData
.
columns
;
aoData
.
startTime
=
$
(
'#min'
).
val
()
||
''
;
aoData
.
endTime
=
$
(
'#max'
).
val
()
||
''
;
aoData
.
departmentId
=
$
(
'[name="departmentId"]'
).
val
()
||
''
;
aoData
.
productId
=
$
(
'[name="productId"]'
).
val
()
||
''
;
aoData
.
createUser
=
$
(
'[name="createUser"]'
).
val
()
||
''
;
aoData
.
status
=
$
(
'[name="status"]'
).
val
()
||
''
;
aoData
.
modifyUser
=
$
(
'[name="modifyUser"]'
).
val
()
||
''
;
},
});
$
(
'.table_search'
).
on
(
'change'
,
function
()
{
search
=
$
(
this
).
val
();
column
=
$
(
this
).
attr
(
'column'
);
$
(
'#table'
).
DataTable
().
draw
();
}
);
$
(
'#table'
).
DataTable
().
column
(
column
).
search
(
search
).
draw
();
$
(
'.table_search'
).
on
(
'keyup'
,
function
()
{
$
(
'#table'
).
DataTable
().
draw
();
});
$
(
'#min, #max'
).
on
(
'keyup'
,
function
()
{
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment