Skip to content
Snippets Groups Projects
Commit e4e66d8b authored by uutaein's avatar uutaein
Browse files

수익률까지

parent 1811284b
No related branches found
No related tags found
No related merge requests found
......@@ -30,7 +30,7 @@
<div class="card-header-tab card-header">
<div class="card-header-title font-size-lg text-capitalize font-weight-normal">
<i class="header-icon lnr-cloud-download icon-gradient bg-happy-itmeo"> </i>
Technical Support
내 포트폴리오 결과
</div>
</div>
<div class="p-0 card-body">
......@@ -39,14 +39,13 @@
<div class="widget-chat-wrapper-outer">
<div class="widget-chart-content widget-chart-content-lg pb-0">
<div class="widget-chart-flex">
<div class="widget-title opacity-5 text-muted text-uppercase">Helpdesk
Tickets
<div class="widget-title opacity-5 text-muted text-uppercase">최종 수익률
</div>
</div>
<div class="widget-numbers">
<div class="widget-chart-flex">
<div>
<span class="text-warning">34</span>
<span class="text-warning">{{ this.$store.state.SS_profit }}%</span>
</div>
<div
class="widget-title ml-2 font-size-lg font-weight-normal text-dark">
......
......@@ -16,7 +16,8 @@ export default new Vuex.Store({
SS_chart_labels : [],
SS_chart_data1 : [],
SS_chart_data2 : [],
SS_chart_done : false
SS_chart_done : false,
SS_profit : 0
},
// 전체돈 * ration / 주식개별
// 전체돈 * 코스닥 가격
......@@ -88,6 +89,7 @@ export default new Vuex.Store({
}
}
state.SS_chart_data2.reverse();
state.SS_profit = (state.SS_chart_data2[payloadNumSize] - state.SS_init_money ) / state.SS_init_money * 100;
state.SS_chart_done = true;
console.log(state.SS_chart_data2);
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment