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
d71dbfb6
authored
2018-03-17 23:23:49 +0800
by
yangjianbin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
init
1 parent
494a4fdd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
application/views/work/index.php
application/views/work/index.php
View file @
d71dbfb
...
...
@@ -101,6 +101,7 @@
<?php
$this
->
load
->
view
(
'common/footer'
);
?>
<script>
var draw = null;
var table = $('#table').dataTable({
aaSorting: [[1, "desc"]],
serverSide: true,
...
...
@@ -119,10 +120,12 @@
// },
ajax
:
{
url
:
apiBaseUrl
+
'/order/into/getAllApplyOrder'
,
dataFilter
:
function
(
json
,
a
,
b
)
{
console
.
log
(
json
,
a
,
b
)
dataFilter
:
function
(
json
)
{
var
ret
=
{},
json
=
jQuery
.
parseJSON
(
json
);
ret
.
data
=
json
.
data
;
if
(
draw
)
{
ret
.
draw
=
draw
;
}
// ret.draw = parseInt(json.page.currentPage);
ret
.
recordsTotal
=
parseInt
(
json
.
page
.
totalNumber
);
ret
.
recordsFiltered
=
parseInt
(
json
.
page
.
totalNumber
);
...
...
@@ -131,6 +134,7 @@
data
:
function
(
data
)
{
data
.
pageSize
=
data
.
length
;
data
.
currentPage
=
parseFloat
(
data
.
start
/
data
.
length
)
+
1
;
draw
=
data
.
draw
;
return
data
;
}
/*,
...
...
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