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
f12cdea4
Commit
f12cdea4
authored
Dec 25, 2020
by
赵杰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新模板图片问题
parent
87525fa0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
13 deletions
+13
-13
monthReportV2.1.html
app/templates/v2/monthReportV2.1.html
+10
-12
jinjia2html_v2.py
app/utils/jinjia2html_v2.py
+3
-1
No files found.
app/templates/v2/monthReportV2.1.html
View file @
f12cdea4
...
...
@@ -942,11 +942,11 @@
</div>
<div
class=
"dcell"
>
<div
class=
"cover_text"
>
{{brand_name}}
<!-- {{brand_name}}-->
</div>
</div>
</div>
<img
src=
{{
cover_back
}}
alt=
""
class=
"cover_back fr"
>
<img
src=
{{
sh
}}
alt=
""
class=
"cover_back fr"
>
<div
class=
"cover_title dtable"
>
<div
class=
"cover_people"
>
<span
class=
"cover_pre"
>
...
...
@@ -956,10 +956,10 @@
{{customer_name}}
</span>
<span
class=
"cover_sir"
>
客户
</span>
</div>
<img
class=
"cover_img"
src=
"./img/red-rect.png"
>
<img
class=
"cover_img"
src=
{{red_rect}}
>
<div
class=
"cover_title_text dcell"
>
资产
<br>
存续报告
...
...
@@ -1068,13 +1068,6 @@
</td>
</tr>
<tr>
<td>
{%if (now_yield|float)>=0%}
成立以来累计收益率:
<span
class=
"red"
>
{{now_yield}}%
</span>
{%else%}
成立以来累计收益率:
<span
class=
"green"
>
{{now_yield}}%
</span>
{%endif%}
</td>
<td>
{%if (now_annualised_return|float)>=0%}
年化收益率:
<span
class=
"red"
>
{{now_annualised_return}}%
</span>
...
...
@@ -1089,7 +1082,12 @@
最大回撤:
<span
class=
"green"
>
{{now_withdrawal}}%
</span>
{%endif%}
</td>
<td>
<td
colspan=
"2"
>
{%if (now_yield|float)>=0%}
成立以来累计收益率:
<span
class=
"red"
>
{{now_yield}}%
</span>
{%else%}
成立以来累计收益率:
<span
class=
"green"
>
{{now_yield}}%
</span>
{%endif%}
</td>
</tr>
</table>
...
...
app/utils/jinjia2html_v2.py
View file @
f12cdea4
...
...
@@ -246,9 +246,11 @@ class DataIntegrate:
'logo'
:
template_folder
+
'/v2/img/logo.png'
,
'scene'
:
template_folder
+
'/v2/img/scene.png'
,
'team'
:
template_folder
+
'/v2/img/default-user.png'
,
'red_rect'
:
template_folder
+
'/v2/img/red-rect.png'
,
'sh'
:
template_folder
+
'/v2/img/sh.png'
,
# 全局数据
'customer_name'
:
self
.
customer_name
,
'year_month'
:
self
.
user_customer
.
month_start_date
.
strftime
(
"
%
Y
{}
%
m{}"
)
.
format
(
"年"
,
"月
"
),
'year_month'
:
self
.
user_customer
.
month_start_date
.
strftime
(
"
%
Y
-
%
m
"
),
'month'
:
self
.
user_customer
.
month_start_date
.
strftime
(
"
%
m"
),
'start_date'
:
self
.
user_customer
.
start_date
.
strftime
(
"
%
Y-
%
m-
%
d"
),
'latest_worth_day'
:
self
.
user_customer
.
last_nav_date
,
...
...
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