|
@@ -7,23 +7,22 @@
|
7
|
7
|
<div class="app-container">
|
8
|
8
|
<div class="page_patientControlAnalysis">
|
9
|
9
|
<div class="photos">
|
10
|
|
- <div v-for="(item,index) in 3" :key="index" @click="echart_click(index)"
|
|
10
|
+ <div v-for="(item,index) in indicators" :key="index" @click="echart_click(item)"
|
11
|
11
|
style="width: 280px;height: 360px;border:1px solid gainsboro;border-radius: 8px;margin: 0 0 30px 28px"
|
12
|
12
|
>
|
13
|
|
- <div v-if="index+1==1" class="background date_type1" style="background-repeat: no-repeat;"></div>
|
14
|
|
- <div v-if="index+1==2" class="background date_type2" style="background-repeat: no-repeat;"></div>
|
15
|
|
- <div v-if="index+1==3" class="background date_type3" style="background-repeat: no-repeat;"></div>
|
16
|
|
- <p class="title">留治患者透析龄分析</p>
|
|
13
|
+<!-- <div v-if="index+1==1" class="background date_type1" style="background-repeat: no-repeat;"></div>-->
|
|
14
|
+ <div v-if="item.check_type == 1" class="background date_type2" style="background-repeat: no-repeat;"></div>
|
|
15
|
+ <div v-if="item.check_type == 2" class="background date_type3" style="background-repeat: no-repeat;"></div>
|
|
16
|
+ <p class="title">{{item.item_name}}</p>
|
17
|
17
|
<div class="tag">
|
18
|
18
|
<span class="tags">留治患者</span>
|
19
|
19
|
<span class="tags">转归</span>
|
20
|
20
|
<span class="tags">死亡</span>
|
21
|
21
|
</div>
|
22
|
|
- <span class="use">已使用14次</span>
|
23
|
|
- <!-- <span class="shoucang" style="background-repeat: no-repeat;"></span> -->
|
|
22
|
+<!-- <span class="use">已使用14次</span>-->
|
|
23
|
+ <span class="shoucang" style="background-repeat: no-repeat;"></span>
|
|
24
|
+ </div>
|
24
|
25
|
</div>
|
25
|
|
- </div>
|
26
|
|
-
|
27
|
26
|
</div>
|
28
|
27
|
</div>
|
29
|
28
|
</div>
|
|
@@ -39,19 +38,7 @@ export default {
|
39
|
38
|
},
|
40
|
39
|
data() {
|
41
|
40
|
return {
|
42
|
|
- indicators:[{
|
43
|
|
- name:"钾离子",
|
44
|
|
- project_id:0,
|
45
|
|
- item_id:0,
|
46
|
|
- },{
|
47
|
|
- name:"钠离子",
|
48
|
|
- project_id:0,
|
49
|
|
- item_id:0,
|
50
|
|
- },{
|
51
|
|
- name:"无机磷",
|
52
|
|
- project_id:0,
|
53
|
|
- item_id:0,
|
54
|
|
- }],
|
|
41
|
+ indicators:[],
|
55
|
42
|
activeName: 'first'
|
56
|
43
|
}
|
57
|
44
|
},
|
|
@@ -63,6 +50,29 @@ export default {
|
63
|
50
|
getStatisticsList(params).then(response => {
|
64
|
51
|
if (response.data.state == 1) {
|
65
|
52
|
this.indicators = this.indicators.concat(response.data.data.configurationlist)
|
|
53
|
+ for(let i = 0; i < this.indicators.length; i++){
|
|
54
|
+ this.indicators[i]["check_type"] = 1
|
|
55
|
+ this.indicators[i]["sub_check_type"] = 1
|
|
56
|
+
|
|
57
|
+ }
|
|
58
|
+ let obj = {
|
|
59
|
+ "check_type":1,
|
|
60
|
+ "item_name":"KTV/URR",
|
|
61
|
+ "sub_check_type":2
|
|
62
|
+ }
|
|
63
|
+ this.indicators.push(obj)
|
|
64
|
+
|
|
65
|
+ let obj2 = {
|
|
66
|
+ "check_type":2,
|
|
67
|
+ "item_name":"指标汇总",
|
|
68
|
+ "sub_check_type":3
|
|
69
|
+
|
|
70
|
+ }
|
|
71
|
+ this.indicators.push(obj2)
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+ console.log( this.indicators)
|
|
75
|
+ // this.indicators.push("")
|
66
|
76
|
} else {
|
67
|
77
|
this.$message.error(response.data.msg)
|
68
|
78
|
}
|
|
@@ -74,17 +84,21 @@ export default {
|
74
|
84
|
handleClick(tab, event) {
|
75
|
85
|
console.log(tab, event);
|
76
|
86
|
},
|
77
|
|
- echart_click(num){
|
78
|
|
- console.log(num)
|
79
|
|
- if(num==0){
|
80
|
|
- this.$router.push('/Dialysisanalysis/qualitycontrol/otherIndicators/components/columnarTotal')
|
81
|
|
- }else if(num==1){
|
82
|
|
- this.$router.push('/Dialysisanalysis/qualitycontrol/otherIndicators/components/CakeshapeTotal')
|
83
|
|
- }else{
|
84
|
|
- this.$router.push('/Dialysisanalysis/qualitycontrol/otherIndicators/components/tableTotal')
|
|
87
|
+ echart_click(item){
|
|
88
|
+ if(item.check_type == 1){
|
|
89
|
+ if(item.sub_check_type == 1){
|
|
90
|
+ this.$router.push('/Dialysisanalysis/qualitycontrol/Indicatorsdetail?project_id='+item.inspection_major+"&item_id="+item.inspection_minor+"&project_type="+parseInt(item.id))
|
|
91
|
+
|
|
92
|
+ // this.$router.push('/Dialysisanalysis/qualitycontrol/otherIndicators/components/columnarTotal')
|
|
93
|
+
|
|
94
|
+ }else if(item.sub_check_type == 2){
|
|
95
|
+ this.$router.push('/Dialysisanalysis/qualitycontrol/platelets')
|
|
96
|
+ }
|
|
97
|
+ }else if(item.check_type == 2){
|
|
98
|
+ this.$router.push('/Dialysisanalysis/qualitycontrol/summary')
|
85
|
99
|
}
|
86
|
|
-
|
87
|
|
-
|
|
100
|
+
|
|
101
|
+
|
88
|
102
|
}
|
89
|
103
|
},
|
90
|
104
|
created(){
|
|
@@ -111,7 +125,7 @@ export default {
|
111
|
125
|
.date_type3{
|
112
|
126
|
background: url('../../../assets/img/biaoge.png');
|
113
|
127
|
}
|
114
|
|
-
|
|
128
|
+
|
115
|
129
|
.title{
|
116
|
130
|
font-size: 18px;
|
117
|
131
|
margin: 15px 10px;
|