Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
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
hujun
tl_estate
Commits
d61db0bc
Commit
d61db0bc
authored
Dec 19, 2018
by
duxinyuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
ca0f60e9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
6 deletions
+18
-6
adjustment.js
public/resource/js/adjustment.js
+18
-6
No files found.
public/resource/js/adjustment.js
View file @
d61db0bc
...
@@ -182,15 +182,27 @@ define(['doT', 'text!temp/adjustment_template_tpl.html', 'css!style/home.css', '
...
@@ -182,15 +182,27 @@ define(['doT', 'text!temp/adjustment_template_tpl.html', 'css!style/home.css', '
*/
*/
getList
:
function
(
no
){
getList
:
function
(
no
){
var
that
=
adjustment
;
var
that
=
adjustment
;
that
.
pageNo
=
no
;
var
params
=
that
.
buildSearchParams
();
var
params
=
that
.
buildSearchParams
();
console
.
log
(
params
)
;
console
.
log
(
params
)
;
params
.
pageNo
=
that
.
pageNo
;
params
.
pageSize
=
that
.
pageSize
;
$
.
get
(
'/index/adjustment'
,
params
,
function
(
data
){
$
.
get
(
'/index/adjustment'
,
params
,
function
(
data
){
that
.
listData
=
data
.
data
.
list
;
if
(
typeof
data
===
'object'
)
{
console
.
log
(
data
.
data
.
list
)
if
(
data
.
code
==
200
)
{
var
temp
=
document
.
getElementById
(
'adjustment_template_tpl'
).
innerHTML
;
that
.
listData
=
data
.
data
.
list
;
var
doTtmpl
=
doT
.
template
(
temp
);
var
temp
=
document
.
getElementById
(
'adjustment_template_tpl'
).
innerHTML
;
var
doTtmpl
=
doT
.
template
(
temp
);
$
(
"#order_list"
).
html
(
doTtmpl
(
data
.
data
.
list
));
$
(
"#order_list"
).
html
(
doTtmpl
(
data
.
data
.
list
));
/*分页代码*/
add_page
(
data
.
data
.
total
,
no
,
that
.
pageSize
,
that
.
getList
);
}
else
{
alert
(
data
[
'msg'
]);
};
}
else
{
alert
(
'数据错误'
);
};
},
'json'
);
},
'json'
);
//功能模拟
//功能模拟
...
...
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