|
@@ -1670,7 +1670,7 @@
|
1670
|
1670
|
<td width="40">其他:</td>
|
1671
|
1671
|
<td width="">
|
1672
|
1672
|
<div class="under-line">
|
1673
|
|
- {{ record.assessment_after_dislysis.complication && ['无','头晕','头痛','呕吐','低血压','发热','抽搐','高血压','心律失常'].indexOf(record.assessment_after_dislysis.complication) == -1 ? record.assessment_after_dislysis.complication : '' }}
|
|
1673
|
+ {{ record.assessment_after_dislysis.complication ? getComplication(record.assessment_after_dislysis.complication) : '' }}
|
1674
|
1674
|
</div>
|
1675
|
1675
|
</td>
|
1676
|
1676
|
</tr>
|
|
@@ -2585,6 +2585,25 @@ export default {
|
2585
|
2585
|
console.log('weight', weight)
|
2586
|
2586
|
}
|
2587
|
2587
|
})
|
|
2588
|
+ },
|
|
2589
|
+ getComplication(complication){
|
|
2590
|
+ if(complication.indexOf(',') == -1){
|
|
2591
|
+ let str = complication
|
|
2592
|
+ if(['无','头晕','头痛','呕吐','低血压','发热','抽搐','高血压','心律失常'].indexOf(str) == -1){
|
|
2593
|
+ return str
|
|
2594
|
+ }
|
|
2595
|
+ }else if(complication.indexOf(',') > -1){
|
|
2596
|
+ let str = complication
|
|
2597
|
+ if(['无','头晕','头痛','呕吐','低血压','发热','抽搐','高血压','心律失常'].indexOf(str) == -1){
|
|
2598
|
+ let newStr = ''
|
|
2599
|
+ str.split(',').map(item => {
|
|
2600
|
+ if(['无','头晕','头痛','呕吐','低血压','发热','抽搐','高血压','心律失常'].indexOf(item) == -1){
|
|
2601
|
+ newStr += item + ','
|
|
2602
|
+ }
|
|
2603
|
+ })
|
|
2604
|
+ return newStr.substring(0, newStr.length - 1)
|
|
2605
|
+ }
|
|
2606
|
+ }
|
2588
|
2607
|
}
|
2589
|
2608
|
}
|
2590
|
2609
|
}
|