血透系统pad前端

dialysisMonitoring.vue 12KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330
  1. <template>
  2. <div class="plate-box">
  3. <h2 class="title border">
  4. <span class="line"></span>
  5. <p>{{ title }}</p>
  6. <span class="line"></span>
  7. </h2>
  8. <div class="dm" style="width:100%;overflow:hildden;overflow-x:auto;">
  9. <table class="table dialsisTable" style>
  10. <tr>
  11. <th v-if="isShow('监测时间')" width="80px">时间</th>
  12. <th v-if="isShow('体温')" width="80px">体温(℃)</th>
  13. <th v-if="isShow('血压')" width="72px">血压(mmHg)</th>
  14. <th v-if="isShow('脉搏')" width="80px">脉搏(次/分)</th>
  15. <th v-if="isShow('呼吸频率')" width="110px">呼吸频率(次/分)</th>
  16. <th width="76px">静脉压/动脉压(mmHg)</th>
  17. <th v-if="isShow('血流量')" width="92px">血流量(ml/min)</th>
  18. <th v-if="isShow('跨膜压')" width="76px">跨膜压(mmHg)</th>
  19. <th v-if="isShow('超滤量') && template_id == 6" width="76px">
  20. 超滤量(ml)
  21. </th>
  22. <th v-if="isShow('超滤量') && template_id != 6" width="76px">
  23. 超滤量(L)
  24. </th>
  25. <th v-if="isShow('钠浓度')" width="92px">钠浓度(mmol/L)</th>
  26. <th v-if="isShow('透析液温度')" width="92px">透析液温度(℃)</th>
  27. <th v-if="isShow('置换率')&& template_id == 6" width="92px">置换率(ml/min)</th>
  28. <th v-if="isShow('置换率')&& template_id != 6" width="92px">置换率(L/h)</th>
  29. <th v-if="isShow('置换量')&& template_id == 6" width="50px">置换量(ml)</th>
  30. <th v-if="isShow('置换量')&& template_id != 6" width="50px">置换量(L)</th>
  31. <th v-if="isShow('电导度')" width="92px">电导度(mS/m)</th>
  32. <th v-if="isShow('置换液流量')" width="92px">置换液流量(ml/h)</th>
  33. <th v-if="isShow('病情变化')" width="92px">病情变化</th>
  34. <th v-if="isShow('处理')" width="92px">处理</th>
  35. <th v-if="isShow('结果')" width="92px">结果</th>
  36. </tr>
  37. <tr v-for="(item, index) in tableDate" :key="index" :value="item.value">
  38. <td v-if="isShow('监测时间')">
  39. {{ parseTime(item.operate_time, "{y}-{m}-{d} {h}:{i}") }}
  40. </td>
  41. <td v-if="isShow('体温')">
  42. {{ item.temperature ? item.temperature : "" }}
  43. </td>
  44. <td v-if="isShow('血压')">
  45. {{
  46. item.systolic_blood_pressure ? item.systolic_blood_pressure : ""
  47. }}/{{
  48. item.diastolic_blood_pressure ? item.diastolic_blood_pressure : ""
  49. }}
  50. </td>
  51. <td v-if="isShow('脉搏')">
  52. {{ item.pulse_frequency ? item.pulse_frequency : "" }}
  53. </td>
  54. <td v-if="isShow('呼吸频率')">
  55. {{ item.breathing_rate ? item.breathing_rate : "" }}
  56. </td>
  57. <td>
  58. {{ item.venous_pressure ? item.venous_pressure : "" }}/{{
  59. item.arterial_pressure ? item.arterial_pressure : ""
  60. }}
  61. </td>
  62. <td v-if="isShow('血流量')">
  63. {{ item.blood_flow_volume ? item.blood_flow_volume : "" }}
  64. </td>
  65. <td v-if="isShow('跨膜压')">
  66. {{ item.transmembrane_pressure ? item.transmembrane_pressure : "" }}
  67. </td>
  68. <td v-if="isShow('超滤量')">
  69. {{ item.ultrafiltration_volume ? item.ultrafiltration_volume : "" }}
  70. </td>
  71. <td v-if="isShow('钠浓度')">
  72. {{ item.sodium_concentration ? item.sodium_concentration : "" }}
  73. </td>
  74. <td v-if="isShow('透析液温度')">
  75. {{ item.dialysate_temperature ? item.dialysate_temperature : "" }}
  76. </td>
  77. <td v-if="isShow('置换率')">
  78. {{ item.replacement_rate ? item.replacement_rate : "" }}
  79. </td>
  80. <td v-if="isShow('置换量')">
  81. {{ item.displacement_quantity ? item.displacement_quantity : "" }}
  82. </td>
  83. <th v-if="isShow('电导度')">
  84. {{ item.conductivity ? item.conductivity : "" }}
  85. </th>
  86. <th v-if="isShow('置换液流量')">
  87. {{
  88. item.displacement_flow_quantity
  89. ? item.displacement_flow_quantity
  90. : ""
  91. }}
  92. </th>
  93. <td v-if="isShow('病情变化')">{{ item.symptom }}</td>
  94. <td v-if="isShow('处理')">{{ item.dispose }}</td>
  95. <td v-if="isShow('结果')">{{ item.result }}</td>
  96. </tr>
  97. </table>
  98. <div class="NoData" v-show="tableDate.length == 0">
  99. <img
  100. style="margin-top: 50px; margin-bottom: 50px"
  101. src="@/assets/login/data.jpg"
  102. alt
  103. />
  104. </div>
  105. </div>
  106. <!-- <el-table :data="tableDate" border style="width: 100%" ref="form">
  107. <span v-if="isShow('监测时间')">
  108. <el-table-column fixed prop="date" label="时间" width="100" align="center">
  109. <template slot-scope="scope">{{parseTime(scope.row.operate_time, "{y}-{m}-{d} {h}:{i}")}}</template>
  110. </el-table-column>
  111. </span>
  112. <span v-if="isShow('体温')">
  113. <el-table-column prop="name" label="体温(℃)" width="80" align="center">
  114. <template slot-scope="scope">{{scope.row.temperature?scope.row.temperature:''}}</template>
  115. </el-table-column>
  116. </span>
  117. <span v-if="isShow('血压')">
  118. <el-table-column prop="province" label="血压(mmHg)" width="110" align="center">
  119. <template
  120. slot-scope="scope"
  121. >{{scope.row.systolic_blood_pressure?scope.row.systolic_blood_pressure:''}}/{{scope.row.diastolic_blood_pressure?scope.row.diastolic_blood_pressure:''}}</template>
  122. </el-table-column>
  123. </span>
  124. <span v-if="isShow('脉搏')">
  125. <el-table-column prop="city" label="脉搏(次/分)" width="100" align="center">
  126. <template slot-scope="scope">{{scope.row.pulse_frequency?scope.row.pulse_frequency:''}}</template>
  127. </el-table-column>
  128. </span>
  129. <span v-if="isShow('呼吸频率')">
  130. <el-table-column prop="address" label="呼吸频率(次/分)" width="140" align="center">
  131. <template slot-scope="scope">{{scope.row.breathing_rate?scope.row.breathing_rate:''}}</template>
  132. </el-table-column>
  133. </span>
  134. <el-table-column prop="zip" label="静脉压/动脉压(mmHg)" width="100" align="center">
  135. <template
  136. slot-scope="scope"
  137. >{{scope.row.venous_pressure?scope.row.venous_pressure:''}}/{{scope.row.arterial_pressure?scope.row.arterial_pressure:''}}</template>
  138. </el-table-column>
  139. <span v-if="isShow('血流量')">
  140. <el-table-column prop="zip" label="血流量(ml/min)" width="150" align="center">
  141. <template
  142. slot-scope="scope"
  143. >{{scope.row.blood_flow_volume?scope.row.blood_flow_volume:''}}</template>
  144. </el-table-column>
  145. </span>
  146. <span v-if="isShow('跨膜压')">
  147. <el-table-column prop="zip" label="跨膜压(mmHg)" width="130" align="center">
  148. <template
  149. slot-scope="scope"
  150. >{{scope.row.transmembrane_pressure?scope.row.transmembrane_pressure:''}}</template>
  151. </el-table-column>
  152. </span>
  153. <span v-if="isShow('超滤量')">
  154. <el-table-column prop="zip" label="超滤量(ml)" width="100" align="center">
  155. <template
  156. slot-scope="scope"
  157. >{{scope.row.ultrafiltration_volume?scope.row.ultrafiltration_volume:''}}</template>
  158. </el-table-column>
  159. </span>
  160. <span v-if="isShow('钠浓度')">
  161. <el-table-column prop="zip" label="钠浓度(mmol/L)" width="100" align="center">
  162. <template
  163. slot-scope="scope"
  164. >{{scope.row.sodium_concentration?scope.row.sodium_concentration:''}}</template>
  165. </el-table-column>
  166. </span>
  167. <span v-if="isShow('透析液温度')">
  168. <el-table-column prop="zip" label="透析液温度(℃)" width="100" align="center">
  169. <template
  170. slot-scope="scope"
  171. >{{scope.row.dialysate_temperature?scope.row.dialysate_temperature:''}}</template>
  172. </el-table-column>
  173. </span>
  174. <span v-if="isShow('置换率')">
  175. <el-table-column prop="zip" label="置换率(L/h)" width="200" align="center">
  176. <template slot-scope="scope">{{scope.row.replacement_rate?scope.row.replacement_rate:''}}</template>
  177. </el-table-column>
  178. </span>
  179. <span v-if="isShow('置换量')">
  180. <el-table-column prop="zip" label="置换量(L)" width="200" align="center">
  181. <template
  182. slot-scope="scope"
  183. >{{scope.row.displacement_quantity?scope.row.displacement_quantity:''}}</template>
  184. </el-table-column>
  185. </span>
  186. <span v-if="isShow('电导度')">
  187. <el-table-column prop="zip" label="电导度(mS/m)" width="200" align="center">
  188. <template slot-scope="scope">{{scope.row.conductivity?scope.row.conductivity:''}}</template>
  189. </el-table-column>
  190. </span>
  191. <span v-if="isShow('置换液流量')">
  192. <el-table-column prop="zip" label="置换液流量(ml/h)" width="200" align="center">
  193. <template
  194. slot-scope="scope"
  195. >{{scope.row.displacement_flow_quantity?scope.row.displacement_flow_quantity:''}}</template>
  196. </el-table-column>
  197. </span>
  198. <span v-if="isShow('病情变化')">
  199. <el-table-column prop="zip" label="病情变化" width="200" align="center">
  200. <template slot-scope="scope">{{scope.row.symptom}}</template>
  201. </el-table-column>
  202. </span>
  203. <span v-if="isShow('处理')">
  204. <el-table-column prop="zip" label="处理" width="200" align="center">
  205. <template slot-scope="scope">{{scope.row.dispose}}</template>
  206. </el-table-column>
  207. </span>
  208. <span v-if="isShow('结果')">
  209. <el-table-column prop="zip" label="结果" width="200" align="center">
  210. <template slot-scope="scope">{{scope.row.result}}</template>
  211. </el-table-column>
  212. </span>
  213. </el-table>-->
  214. </div>
  215. </template>
  216. <script>
  217. import { parseTime } from "@/utils";
  218. export default {
  219. name: "statOrder",
  220. data() {
  221. return {
  222. title: "透析监测 ",
  223. template_id: 0,
  224. tableDate: []
  225. };
  226. },
  227. created() {
  228. this.template_id = this.$store.getters.user.template_info.template_id;
  229. },
  230. methods: {
  231. isShow(name) {
  232. var filedList = this.$store.getters.user.fileds;
  233. for (let i = 0; i < filedList.length; i++) {
  234. if (
  235. filedList[i].module == 4 &&
  236. filedList[i].filed_name_cn == name &&
  237. filedList[i].is_show == 1
  238. ) {
  239. return true;
  240. }
  241. }
  242. return false;
  243. },
  244. setRecords(records) {
  245. if (records == null) {
  246. records = [];
  247. }
  248. this.tableDate.splice(0, this.tableDate.length);
  249. this.tableDate.push(...records);
  250. },
  251. parseTime(time, layout) {
  252. return parseTime(time, layout);
  253. },
  254. addRecords(records) {
  255. this.tableDate.push(...records);
  256. }
  257. }
  258. };
  259. </script>
  260. <style rel="stylesheet/scss" lang="scss" scoped>
  261. .dialsisTable {
  262. width: 2400px;
  263. }
  264. .dm {
  265. /* 针对缺省样式 (必须的) */
  266. &::-webkit-scrollbar {
  267. width: 3px;
  268. height: 5px;
  269. }
  270. /* 滚动条的滑轨背景颜色 */
  271. &::-webkit-scrollbar-track {
  272. background-color: #fff;
  273. border-radius: 3px;
  274. -moz-border-radius: 3px;
  275. -webkit-border-radius: 3px;
  276. }
  277. /* 滑块颜色 */
  278. &::-webkit-scrollbar-thumb {
  279. background: #d7dce2;
  280. border-radius: 3px;
  281. -moz-border-radius: 3px;
  282. -webkit-border-radius: 3px;
  283. }
  284. /*内层轨道的颜色*/
  285. &::-webkit-scrollbar-track-piece {
  286. background-color: #fff;
  287. border-radius: 3px;
  288. -moz-border-radius: 3px;
  289. -webkit-border-radius: 3px;
  290. }
  291. /* 滑轨两头的监听按钮颜色 */
  292. &::-webkit-scrollbar-button {
  293. background-color: #eee;
  294. width: 0;
  295. height: 0;
  296. }
  297. /* 横向滚动条和纵向滚动条相交处尖角的颜色 */
  298. &::-webkit-scrollbar-corner {
  299. background-color: #eee;
  300. }
  301. }
  302. </style>
  303. <style lang="scss">
  304. .el-table td {
  305. padding: 0;
  306. }
  307. .el-table th {
  308. padding: 6px 0;
  309. }
  310. </style>