|
@@ -8,10 +8,10 @@
|
|
|
<p>年化出血率:{{year_bleed_rate}}</p>
|
|
|
<p>年化关节出血率:{{year_gj_bleed_rate}}</p>
|
|
|
<ul class="tabs">
|
|
|
- <li @click="tabChange(1)" :class="tab==1?'act':''">近1个月</li>
|
|
|
- <li @click="tabChange(3)" :class="tab==3?'act':''">近3个月</li>
|
|
|
- <li @click="tabChange(6)" :class="tab==6?'act':''">近6个月</li>
|
|
|
- <li @click="tabChange(12)" :class="tab==12?'act':''">近12个月</li>
|
|
|
+ <li @click="tabChange(1)" :class="tab==1?'act':''">近1个月</li>
|
|
|
+ <li v-if='days>=90' @click="tabChange(3)" :class="tab==3?'act':''">近3个月</li>
|
|
|
+ <li v-if='days>=180' @click="tabChange(6)" :class="tab==6?'act':''">近6个月</li>
|
|
|
+ <li v-if='days>=360' @click="tabChange(12)" :class="tab==12?'act':''">近12个月</li>
|
|
|
</ul>
|
|
|
<v-chart :option="barOption" style="height: 350px">
|
|
|
</v-chart>
|
|
@@ -52,7 +52,8 @@
|
|
|
barOption:{},
|
|
|
name:'',
|
|
|
year_bleed_rate:'',
|
|
|
- year_gj_bleed_rate:''
|
|
|
+ year_gj_bleed_rate:'',
|
|
|
+ days:0
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
@@ -81,6 +82,7 @@
|
|
|
this.$api.get_patient_bleed_statistics(query_form).then(res => {
|
|
|
if (!res.data.code) {
|
|
|
let data=res.data.data
|
|
|
+ this.days=data.first_bleed_time_interval
|
|
|
this.year_bleed_rate = data.year_bleed_rate;
|
|
|
this.year_gj_bleed_rate = data.year_gj_bleed_rate;
|
|
|
this.barOption={
|