血透系统PC前端

dialysisMonitoring.vue 4.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. <template>
  2. <div class="plate-box" >
  3. <h2 class="DetailsTit"><span>{{ title }}</span></h2>
  4. <div 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="72px">血压(mmhg)</th>
  9. <th v-if="isShow('体温')" width="72px">体温(℃)</th>
  10. <th v-if="isShow('心率')" width="80px">心率(次/分)</th>
  11. <th v-if="isShow('呼吸')" width="110px">呼吸(次/分)</th>
  12. <th v-if="isShow('血流量')" width="92px">血流量(ml/min)</th>
  13. <th width="76px">静脉压/动脉压(mmhg)</th>
  14. <th v-if="isShow('跨膜压')" width="76px">跨膜压(mmhg)</th>
  15. <th v-if="isShow('超滤量')" width="76px">超滤量(L)</th>
  16. <th v-if="isShow('钠浓度')" width="92px">钠浓度(mmol/L)</th>
  17. <th v-if="isShow('透析液温度')" width="92px">透析液温度(℃)</th>
  18. <th v-if="isShow('置换率')" width="92px">置换率(L/h)</th>
  19. <th v-if="isShow('置换量')" width="92px">置换量(L)</th>
  20. <th v-if="isShow('病情变化')" width="92px">病情变化</th>
  21. <th v-if="isShow('处理')" width="92px">处理</th>
  22. <th v-if="isShow('结果')" width="92px">结果</th>
  23. </tr>
  24. <tr v-for="(monitor, index) in monitores" :key="index">
  25. <td v-if="isShow('监测时间')">{{ parseTime(monitor.operate_time, "{y}-{m}-{d} {h}:{i}") }}</td>
  26. <td v-if="isShow('血压')">{{ monitor.systolic_blood_pressure?monitor.systolic_blood_pressure:'' }}/{{ monitor.diastolic_blood_pressure?monitor.diastolic_blood_pressure:'' }}</td>
  27. <td v-if="isShow('体温')">{{ monitor.temperature?monitor.temperature:'' }}</td>
  28. <td v-if="isShow('心率')">{{ monitor.pulse_frequency?monitor.pulse_frequency:'' }}</td>
  29. <td v-if="isShow('呼吸')">{{ monitor.breathing_rate?monitor.breathing_rate:'' }}</td>
  30. <td v-if="isShow('血流量')">{{ monitor.blood_flow_volume?monitor.blood_flow_volume:'' }}</td>
  31. <td>{{ monitor.venous_pressure?monitor.venous_pressure:'' }} /{{ monitor.arterial_pressure?monitor.arterial_pressure:'' }} </td>
  32. <td v-if="isShow('跨膜压')">{{ monitor.transmembrane_pressure?monitor.transmembrane_pressure:'' }}</td>
  33. <td v-if="isShow('超滤量')">{{ monitor.ultrafiltration_volume?monitor.ultrafiltration_volume:'' }}</td>
  34. <td v-if="isShow('钠浓度')">{{ monitor.sodium_concentration?monitor.sodium_concentration:'' }}</td>
  35. <td v-if="isShow('透析液温度')">{{ monitor.dialysate_temperature?monitor.dialysate_temperature:'' }}</td>
  36. <td v-if="isShow('置换率')">{{ monitor.replacement_rate?monitor.replacement_rate:'' }}</td>
  37. <td v-if="isShow('置换量')">{{ monitor.displacement_quantity?monitor.displacement_quantity:'' }}</td>
  38. <td v-if="isShow('病情变化')">{{ monitor.symptom }}</td>
  39. <td v-if="isShow('处理')">{{ monitor.dispose }}</td>
  40. <td v-if="isShow('结果')">{{ monitor.result }}</td>
  41. </tr>
  42. </table>
  43. </div>
  44. <div class="middleLine"></div>
  45. </div>
  46. </template>
  47. <script>
  48. import store from "@/store";
  49. import { parseTime } from '@/utils'
  50. export default {
  51. name: 'statOrder',
  52. data() {
  53. return {
  54. title: '透析监测 '
  55. }
  56. },
  57. props: {
  58. monitores: {
  59. type: Array
  60. }
  61. },
  62. methods: {
  63. parseTime(time, layout) {
  64. return parseTime(time, layout)
  65. },isShow(name){
  66. var filedList = store.getters.xt_user.fileds
  67. for (let i = 0; i < filedList.length; i++){
  68. if(filedList[i].module == 4 && filedList[i].filed_name_cn == name&&filedList[i].is_show == 1){
  69. return true
  70. }
  71. }
  72. return false
  73. },
  74. }
  75. }
  76. </script>
  77. <style rel="stylesheet/scss" lang="scss" scoped>
  78. .table {
  79. width: 1500px;
  80. overflow: auto;
  81. font-size: 14px;
  82. text-align: center;
  83. border: $border-color;
  84. padding-bottom: 2px;
  85. tr {
  86. padding: 0;
  87. margin: 0;
  88. padding: 10px 0;
  89. th {
  90. background: $main-color;
  91. border: none;
  92. color: #fff;
  93. padding: 0;
  94. margin: 0;
  95. height: 44px;
  96. font-weight: normal;
  97. padding: 18px 0;
  98. }
  99. td {
  100. background: #f0f5fa;
  101. border: none;
  102. padding: 18px 0;
  103. }
  104. }
  105. }
  106. </style>