Commit 97dc8fb0 authored by 赵杰's avatar 赵杰

最新净值日,起始日等日期

parent 3b59628c
...@@ -126,6 +126,7 @@ class UserCustomerDataAdaptor: ...@@ -126,6 +126,7 @@ class UserCustomerDataAdaptor:
all_fund_nav = all_fund_nav[all_fund_nav.index <= self.end_date] all_fund_nav = all_fund_nav[all_fund_nav.index <= self.end_date]
all_fund_cnav = all_fund_cnav[all_fund_cnav.index <= self.end_date] all_fund_cnav = all_fund_cnav[all_fund_cnav.index <= self.end_date]
self.last_nav_date = str(all_fund_cnav.dropna(how="all").index.values[-1])[:10]
return all_fund_nav, all_fund_cnav return all_fund_nav, all_fund_cnav
# 获取客户对比指数净值数据 # 获取客户对比指数净值数据
......
...@@ -929,7 +929,7 @@ ...@@ -929,7 +929,7 @@
<img src={{cover_back}} alt="" class="cover_back"> <img src={{cover_back}} alt="" class="cover_back">
<div class="cover_date"> <div class="cover_date">
<div class="cover_time"> <div class="cover_time">
2020.10 {{year_month}}
</div> </div>
</div> </div>
<div class="cover_title dtable"> <div class="cover_title dtable">
...@@ -1279,10 +1279,10 @@ ...@@ -1279,10 +1279,10 @@
<div class="tss3"> <div class="tss3">
<div class="tss3_head dtable"> <div class="tss3_head dtable">
<div class="tss3_title dcell"> <div class="tss3_title dcell">
指标对比<span class="tss3_start_time">(起始日期2019-11-06</span> 指标对比<span class="tss3_start_time">(起始日期{{start_date}}</span>
</div> </div>
<div class="tss3_now_time dcell"> <div class="tss3_now_time dcell">
截止日:最新净值日(2020-11-05 截止日:最新净值日({{latest_worth_day}}
</div> </div>
</div> </div>
<table border="1"> <table border="1">
...@@ -1475,7 +1475,7 @@ ...@@ -1475,7 +1475,7 @@
持仓收益汇总 持仓收益汇总
</div> </div>
<div class="tss3_now_time dcell"> <div class="tss3_now_time dcell">
截止日:最新净值日(2020-11-05 截止日:最新净值日({{latest_worth_day}}
</div> </div>
</div> </div>
<div style="position: relative;"> <div style="position: relative;">
...@@ -1541,7 +1541,7 @@ ...@@ -1541,7 +1541,7 @@
基金净值 基金净值
</div> </div>
<div class="tss3_now_time dcell"> <div class="tss3_now_time dcell">
截止日:最新净值日(2020-11-05 截止日:最新净值日({{latest_worth_day}}
</div> </div>
</div> </div>
<table border="1"> <table border="1">
...@@ -1746,7 +1746,7 @@ ...@@ -1746,7 +1746,7 @@
指标对比<span class="tss3_start_time">(起始日期2019-11-06)</span> 指标对比<span class="tss3_start_time">(起始日期2019-11-06)</span>
</div> </div>
<div class="tss3_now_time dcell"> <div class="tss3_now_time dcell">
截止日:最新净值日(2020-11-05 截止日:最新净值日({{latest_worth_day}}
</div> </div>
</div> </div>
<table border="1"> <table border="1">
......
...@@ -173,7 +173,8 @@ class DataIntegrate: ...@@ -173,7 +173,8 @@ class DataIntegrate:
'team': template_folder + '/v2/img/team.png', 'team': template_folder + '/v2/img/team.png',
'customer_name': self.customer_name, 'customer_name': self.customer_name,
'customer_gender': '女', 'customer_gender': '女',
'year_month': '2020年10月', 'year_month': self.user_customer.month_start_date.strftime("%Y-%m"),
'start_date': self.user_customer.start_date.strftime("%Y-%m-%d"),
'ifa_company': '飞度工作室', 'ifa_company': '飞度工作室',
'title': '10月综述', 'brand_name': '飞度工作室', 'title': '10月综述', 'brand_name': '飞度工作室',
'customer_old': 42, 'customer_level': '平衡型', 'customer_old': 42, 'customer_level': '平衡型',
...@@ -187,7 +188,7 @@ class DataIntegrate: ...@@ -187,7 +188,7 @@ class DataIntegrate:
'month_rise': self.month_rise, 'year_totoal_rate_of_return': self.year_totoal_rate_of_return, 'month_rise': self.month_rise, 'year_totoal_rate_of_return': self.year_totoal_rate_of_return,
'annualised_return': self.annualised_return, 'cost_of_investment': self.cost_of_investment, 'annualised_return': self.annualised_return, 'cost_of_investment': self.cost_of_investment,
'final_balance': self.final_balance, 'total_profit': self.total_profit, 'final_balance': self.final_balance, 'total_profit': self.total_profit,
'latest_worth_day': '2020-11-05', 'latest_worth_day': self.user_customer.last_nav_date,
'index_comparison': {'section_return': self.totoal_rate_of_return, 'annualized_returns': self.annualised_return, 'index_comparison': {'section_return': self.totoal_rate_of_return, 'annualized_returns': self.annualised_return,
'volatility': self.volatility, 'max_withdrawal': self.max_withdrawal, 'volatility': self.volatility, 'max_withdrawal': self.max_withdrawal,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment