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
af4c8471
Commit
af4c8471
authored
Jan 13, 2021
by
赵杰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新模板
parent
289c5763
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
4 deletions
+23
-4
monthReportV2.1.html
app/templates/v2/monthReportV2.1.html
+22
-3
jinjia2html_v2.py
app/utils/jinjia2html_v2.py
+1
-1
No files found.
app/templates/v2/monthReportV2.1.html
View file @
af4c8471
...
@@ -218,6 +218,14 @@
...
@@ -218,6 +218,14 @@
line-height
:
56px
;
line-height
:
56px
;
color
:
#333333
;
color
:
#333333
;
font-weight
:
bold
;
font-weight
:
bold
;
text-align
:
baseline
;
}
.page
.page_head
.page_time
{
font-size
:
28px
;
line-height
:
48px
;
color
:
#333333
;
font-weight
:
normal
;
}
}
.page
.page_head
.page_logo
{
.page
.page_head
.page_logo
{
...
@@ -303,6 +311,13 @@
...
@@ -303,6 +311,13 @@
margin
:
0
0
15px
0
;
margin
:
0
0
15px
0
;
}
}
.tss2
.tss2_title
.page_time
{
font-size
:
20px
;
line-height
:
33px
;
color
:
#333333
;
font-weight
:
normal
;
}
.tss2
.tss2_content
{
.tss2
.tss2_content
{
margin
:
18px
0
0
0
;
margin
:
18px
0
0
0
;
border
:
1px
solid
#E4E4E4
;
border
:
1px
solid
#E4E4E4
;
...
@@ -1016,6 +1031,7 @@
...
@@ -1016,6 +1031,7 @@
投资总览
投资总览
</div>
</div>
<div
class=
"page_head dcell"
>
<div
class=
"page_head dcell"
>
<span
class=
"page_time"
>
{{latest_worth_day}}
</span>
<!-- <div class="dcell">-->
<!-- <div class="dcell">-->
<!-- <img src={{logo}} alt="" class="page_logo">-->
<!-- <img src={{logo}} alt="" class="page_logo">-->
<!-- </div>-->
<!-- </div>-->
...
@@ -1296,6 +1312,7 @@
...
@@ -1296,6 +1312,7 @@
{%endif%}
{%endif%}
</div>
</div>
<div
class=
"page_head dcell"
>
<div
class=
"page_head dcell"
>
<span
class=
"page_time"
>
{{latest_worth_day}}
</span>
<!-- <div class="dcell">-->
<!-- <div class="dcell">-->
<!-- <img src={{logo}} alt="" class="page_logo">-->
<!-- <img src={{logo}} alt="" class="page_logo">-->
<!-- </div>-->
<!-- </div>-->
...
@@ -1544,7 +1561,7 @@
...
@@ -1544,7 +1561,7 @@
持仓收益汇总
持仓收益汇总
</div>
</div>
<div
class=
"tss3_now_time dcell"
>
<div
class=
"tss3_now_time dcell"
>
截止日
:最新净值日
({{latest_worth_day}})
截止日
期:
({{latest_worth_day}})
</div>
</div>
</div>
</div>
<div
style=
"position: relative;"
>
<div
style=
"position: relative;"
>
...
@@ -1610,7 +1627,7 @@
...
@@ -1610,7 +1627,7 @@
基金净值
基金净值
</div>
</div>
<div
class=
"tss3_now_time dcell"
>
<div
class=
"tss3_now_time dcell"
>
截止日
:最新净值日
({{latest_worth_day}})
截止日
期:
({{latest_worth_day}})
</div>
</div>
</div>
</div>
<table
border=
"1"
>
<table
border=
"1"
>
...
@@ -1671,8 +1688,10 @@
...
@@ -1671,8 +1688,10 @@
</div>
</div>
</div>
</div>
<div
class=
"tss2"
>
<div
class=
"tss2"
>
<div
class=
"tss2_title"
>
<div
class=
"tss2_title
clearfix
"
>
贡献分解
贡献分解
<span
class=
"fr page_time"
>
{{latest_worth_day}}
</span>
</div>
</div>
<div
class=
"tss2_content"
>
<div
class=
"tss2_content"
>
<img
src=
{{group_result["contribution_decomposition"]}}
alt=
""
class=
"tss2_img"
>
<img
src=
{{group_result["contribution_decomposition"]}}
alt=
""
class=
"tss2_img"
>
...
...
app/utils/jinjia2html_v2.py
View file @
af4c8471
...
@@ -251,7 +251,7 @@ class DataIntegrate:
...
@@ -251,7 +251,7 @@ class DataIntegrate:
'sh'
:
template_folder
+
'/v2/img/sh.png'
,
'sh'
:
template_folder
+
'/v2/img/sh.png'
,
# 全局数据
# 全局数据
'customer_name'
:
self
.
customer_name
,
'customer_name'
:
self
.
customer_name
,
'year_month'
:
self
.
user_customer
.
month_start_date
.
strftime
(
"
%
Y-
%
m"
),
'year_month'
:
self
.
user_customer
.
month_start_date
.
strftime
(
"
%
Y-
%
m
-
%
d
"
),
'month'
:
self
.
user_customer
.
month_start_date
.
strftime
(
"
%
m"
),
'month'
:
self
.
user_customer
.
month_start_date
.
strftime
(
"
%
m"
),
'start_date'
:
self
.
user_customer
.
start_date
.
strftime
(
"
%
Y-
%
m-
%
d"
),
'start_date'
:
self
.
user_customer
.
start_date
.
strftime
(
"
%
Y-
%
m-
%
d"
),
'latest_worth_day'
:
self
.
user_customer
.
last_nav_date
,
'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