血透系统pad前端

dialysisMonitoring.vue 5.3KB

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