Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in
Toggle navigation
F
fund_report
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
彭熊
fund_report
Commits
26979aa4
Commit
26979aa4
authored
Jan 27, 2021
by
pengxiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去掉模版分页
parent
1975f9d4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
template_manage.py
app/controller/template_manage.py
+2
-2
template_manage_service.py
app/service/template_manage_service.py
+1
-1
No files found.
app/controller/template_manage.py
View file @
26979aa4
...
@@ -108,8 +108,8 @@ class TemplateList(Resource):
...
@@ -108,8 +108,8 @@ class TemplateList(Resource):
"""获取模版列表分页数据."""
"""获取模版列表分页数据."""
self
.
parser
.
add_argument
(
'type'
,
type
=
int
,
required
=
True
,
help
=
'0为全部1为持仓报告2为诊断报告'
)
self
.
parser
.
add_argument
(
'type'
,
type
=
int
,
required
=
True
,
help
=
'0为全部1为持仓报告2为诊断报告'
)
self
.
parser
.
add_argument
(
'name'
,
type
=
str
,
required
=
False
,
help
=
'模版名称'
)
self
.
parser
.
add_argument
(
'name'
,
type
=
str
,
required
=
False
,
help
=
'模版名称'
)
self
.
parser
.
add_argument
(
'pageNumber'
,
type
=
int
,
required
=
Tru
e
)
self
.
parser
.
add_argument
(
'pageNumber'
,
type
=
int
,
required
=
Fals
e
)
self
.
parser
.
add_argument
(
'pageSize'
,
type
=
int
,
required
=
Tru
e
)
self
.
parser
.
add_argument
(
'pageSize'
,
type
=
int
,
required
=
Fals
e
)
args
=
self
.
parser
.
parse_args
()
args
=
self
.
parser
.
parse_args
()
args
[
'ifa_id'
]
=
g
.
ifa_id
args
[
'ifa_id'
]
=
g
.
ifa_id
data
=
get_template_list
(
args
)
data
=
get_template_list
(
args
)
...
...
app/service/template_manage_service.py
View file @
26979aa4
...
@@ -173,7 +173,7 @@ def get_template_list(args):
...
@@ -173,7 +173,7 @@ def get_template_list(args):
if
not
res
:
if
not
res
:
return
False
return
False
totalSize
=
res
.
count
()
totalSize
=
res
.
count
()
data
=
res
.
order_by
(
FundReportManange
.
create_time
.
desc
())
.
offset
(
offset
)
.
limit
(
pageSize
)
data
=
res
.
order_by
(
FundReportManange
.
create_time
.
desc
())
data
=
[
r
.
to_dict
()
for
r
in
data
]
data
=
[
r
.
to_dict
()
for
r
in
data
]
return
{
return
{
'content'
:
data
,
'content'
:
data
,
...
...
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