血透系统pad前端

dialysisMonitoring.vue 5.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. <template>
  2. <div class="plate-box" >
  3. <h2 class="title border"><span class="line"></span><p>{{title}}</p><span class="line"></span> </h2>
  4. <div class="dm" style="width:100%;overflow:hildden;overflow-x:auto;">
  5. <table class="table" style="">
  6. <tr>
  7. <th v-if="isShow('监测时间')" width="124px">时间</th>
  8. <th v-if="isShow('体温')" width="80px">体温(℃)</th>
  9. <th v-if="isShow('血压')" width="72px">血压(mmHg)</th>
  10. <th v-if="isShow('脉搏')" width="80px">脉搏(次/分)</th>
  11. <th v-if="isShow('呼吸频率')" width="110px">呼吸频率(次/分)</th>
  12. <th width="76px">静脉压/动脉压(mmHg)</th>
  13. <th v-if="isShow('血流量')" width="92px">血流量(ml/min)</th>
  14. <th v-if="isShow('跨膜压')" width="76px">跨膜压(mmHg)</th>
  15. <th v-if="isShow('超滤量') && template_id ==6" width="76px">超滤量(ml)</th>
  16. <th v-if="isShow('超滤量') && template_id !=6" width="76px">超滤量(L)</th>
  17. <th v-if="isShow('钠浓度')" width="92px">钠浓度(mmol/L)</th>
  18. <th v-if="isShow('透析液温度')" width="92px">透析液温度(℃)</th>
  19. <th v-if="isShow('置换率')" width="92px">置换率(L/h)</th>
  20. <th v-if="isShow('置换量')" width="92px">置换量(L)</th>
  21. <th v-if="isShow('电导度')" width="92px">电导度(mS/m)</th>
  22. <th v-if="isShow('置换液流量')" width="92px">置换液流量(ml/h)</th>
  23. <th v-if="isShow('病情变化')" width="92px">病情变化</th>
  24. <th v-if="isShow('处理')" width="92px">处理</th>
  25. <th v-if="isShow('结果')" width="92px">结果</th>
  26. </tr>
  27. <tr v-for="(item,index) in tableDate" :key="index" :value="item.value">
  28. <td v-if="isShow('监测时间')">{{parseTime(item.operate_time, "{y}-{m}-{d} {h}:{i}")}}</td>
  29. <td v-if="isShow('体温')">{{item.temperature?item.temperature:''}}</td>
  30. <td v-if="isShow('血压')">{{item.systolic_blood_pressure?item.systolic_blood_pressure:''}}/{{item.diastolic_blood_pressure?item.diastolic_blood_pressure:''}}</td>
  31. <td v-if="isShow('脉搏')">{{item.pulse_frequency?item.pulse_frequency:''}}</td>
  32. <td v-if="isShow('呼吸频率')">{{item.breathing_rate?item.breathing_rate:''}}</td>
  33. <td>{{item.venous_pressure?item.venous_pressure:''}}/{{item.arterial_pressure?item.arterial_pressure:''}}</td>
  34. <td v-if="isShow('血流量')">{{item.blood_flow_volume?item.blood_flow_volume:''}}</td>
  35. <td v-if="isShow('跨膜压')">{{item.transmembrane_pressure?item.transmembrane_pressure:''}}</td>
  36. <td v-if="isShow('超滤量')">{{item.ultrafiltration_volume?item.ultrafiltration_volume:''}}</td>
  37. <td v-if="isShow('钠浓度')">{{item.sodium_concentration?item.sodium_concentration:''}}</td>
  38. <td v-if="isShow('透析液温度')">{{item.dialysate_temperature?item.dialysate_temperature:''}}</td>
  39. <td v-if="isShow('置换率')">{{item.replacement_rate?item.replacement_rate:''}}</td>
  40. <td v-if="isShow('置换量')">{{item.displacement_quantity?item.displacement_quantity:''}}</td>
  41. <th v-if="isShow('电导度')" >{{item.conductivity?item.conductivity:''}}</th>
  42. <th v-if="isShow('置换液流量')" >{{item.displacement_flow_quantity?item.displacement_flow_quantity:''}}</th>
  43. <td v-if="isShow('病情变化')">{{item.symptom}}</td>
  44. <td v-if="isShow('处理')">{{item.dispose}}</td>
  45. <td v-if="isShow('结果')">{{item.result}}</td>
  46. </tr>
  47. </table>
  48. <div class="NoData" v-show="tableDate.length == 0"><img style="margin-top: 50px; margin-bottom: 50px" src="@/assets/login/data.jpg" alt=""></div>
  49. </div>
  50. </div>
  51. </template>
  52. <script>
  53. import { parseTime } from '@/utils';
  54. export default {
  55. name: 'statOrder',
  56. data () {
  57. return {
  58. title: '透析监测 ',
  59. template_id: 0,
  60. tableDate: []
  61. }
  62. },
  63. created () {
  64. this.template_id = this.$store.getters.user.template_info.template_id
  65. },
  66. methods: {
  67. isShow (name) {
  68. var filedList = this.$store.getters.user.fileds
  69. for (let i = 0; i < filedList.length; i++) {
  70. if (filedList[i].module == 4 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1) {
  71. return true
  72. }
  73. }
  74. return false
  75. },
  76. setRecords (records) {
  77. if (records == null) {
  78. records = []
  79. }
  80. this.tableDate.splice(0, this.tableDate.length)
  81. this.tableDate.push(...records)
  82. },
  83. parseTime (time, layout) {
  84. return parseTime(time, layout)
  85. },
  86. addRecords (records) {
  87. this.tableDate.push(...records)
  88. }
  89. }
  90. }
  91. </script>
  92. <style rel="stylesheet/scss" lang="scss" scoped>
  93. .dm {
  94. /* 针对缺省样式 (必须的) */
  95. &::-webkit-scrollbar {
  96. width: 3px;
  97. height: 5px;
  98. }
  99. /* 滚动条的滑轨背景颜色 */
  100. &::-webkit-scrollbar-track {
  101. background-color: #fff;
  102. border-radius: 3px;
  103. -moz-border-radius: 3px;
  104. -webkit-border-radius: 3px;
  105. }
  106. /* 滑块颜色 */
  107. &::-webkit-scrollbar-thumb {
  108. background: #d7dce2;
  109. border-radius: 3px;
  110. -moz-border-radius: 3px;
  111. -webkit-border-radius: 3px;
  112. }
  113. /*内层轨道的颜色*/
  114. &::-webkit-scrollbar-track-piece {
  115. background-color: #fff;
  116. border-radius: 3px;
  117. -moz-border-radius: 3px;
  118. -webkit-border-radius: 3px;
  119. }
  120. /* 滑轨两头的监听按钮颜色 */
  121. &::-webkit-scrollbar-button {
  122. background-color: #eee;
  123. width: 0;
  124. height: 0;
  125. }
  126. /* 横向滚动条和纵向滚动条相交处尖角的颜色 */
  127. &::-webkit-scrollbar-corner {
  128. background-color: #eee;
  129. }
  130. }
  131. </style>