monitor_dialog.vue 46KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252
  1. <template>
  2. <div class="dialog_box">
  3. <el-dialog
  4. title="透析监测"
  5. :visible.sync="visible"
  6. width="1100px"
  7. @close="reset"
  8. :modal-append-to-body="false" >
  9. <div v-show="edit == false">
  10. <div class="txsj">
  11. <el-button round :disabled="!is_has_create" @click="newRecordAction"
  12. >新增监测</el-button
  13. >
  14. <el-button
  15. round
  16. :disabled="!is_has_modify && !is_has_modify_other"
  17. @click="modifyRecordAction"
  18. >修改监测</el-button
  19. >
  20. <el-button
  21. round
  22. :disabled="!is_has_del && !is_has_del_other"
  23. @click="deleteRecordAction"
  24. >删除监测</el-button
  25. >
  26. </div>
  27. <el-table
  28. :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }"
  29. ref="table"
  30. :data="monitors"
  31. border
  32. highlight-current-row
  33. @current-change="tableCurrentRowChange"
  34. style="width: 100%"
  35. :class="current_row_class"
  36. >
  37. <el-table-column
  38. label="监测时间"
  39. align="center"
  40. width="144"
  41. v-if="isShow('监测时间')"
  42. >
  43. <template slot-scope="scope">
  44. {{ getMonitorDate(scope.row) }}
  45. </template>
  46. </el-table-column>
  47. <el-table-column
  48. prop="temperature"
  49. align="center"
  50. width="100"
  51. label="体温(℃)"
  52. v-if="isShow('体温')"
  53. >
  54. <template slot-scope="scope">
  55. {{ scope.row.temperature ? scope.row.temperature : "" }}
  56. </template>
  57. </el-table-column>
  58. <el-table-column
  59. align="center"
  60. label="血压(mmHg)"
  61. width="110"
  62. v-if="isShow('血压')"
  63. >
  64. <template slot-scope="scope">
  65. {{
  66. scope.row.systolic_blood_pressure
  67. ? scope.row.systolic_blood_pressure
  68. : ""
  69. }}/{{
  70. scope.row.diastolic_blood_pressure
  71. ? scope.row.diastolic_blood_pressure
  72. : ""
  73. }}
  74. </template>
  75. </el-table-column>
  76. <el-table-column
  77. prop="pulse_frequency"
  78. align="center"
  79. width="100"
  80. label="脉搏(次/分)"
  81. v-if="isShow('脉搏')"
  82. >
  83. <template slot-scope="scope">
  84. {{ scope.row.pulse_frequency ? scope.row.pulse_frequency : "" }}
  85. </template>
  86. </el-table-column>
  87. <el-table-column
  88. prop="breathing_rate"
  89. align="center"
  90. label="呼吸频率(次/分)"
  91. width="100"
  92. v-if="isShow('呼吸频率')"
  93. >
  94. <template slot-scope="scope">
  95. {{ scope.row.breathing_rate ? scope.row.breathing_rate : "" }}
  96. </template>
  97. </el-table-column>
  98. <el-table-column
  99. prop="venous_pressure"
  100. align="center"
  101. label="静脉压/动脉压(mmHg)"
  102. width="120"
  103. >
  104. <template slot-scope="scope">
  105. <span
  106. >{{
  107. scope.row.venous_pressure ? scope.row.venous_pressure : ""
  108. }}/
  109. {{
  110. scope.row.arterial_pressure ? scope.row.arterial_pressure : ""
  111. }}</span
  112. >
  113. </template>
  114. </el-table-column>
  115. <el-table-column
  116. prop="blood_flow_volume"
  117. align="center"
  118. label="血流量(ml/min)"
  119. width="120"
  120. v-if="isShow('血流量')"
  121. >
  122. <template slot-scope="scope">
  123. {{
  124. scope.row.blood_flow_volume ? scope.row.blood_flow_volume : ""
  125. }}
  126. </template>
  127. </el-table-column>
  128. <el-table-column
  129. prop="transmembrane_pressure"
  130. align="center"
  131. label="跨膜压(mmHg)"
  132. width="120"
  133. v-if="isShow('跨膜压')"
  134. >
  135. <template slot-scope="scope">
  136. {{
  137. scope.row.transmembrane_pressure
  138. ? scope.row.transmembrane_pressure
  139. : ""
  140. }}
  141. </template>
  142. </el-table-column>
  143. <el-table-column
  144. prop="ultrafiltration_volume"
  145. align="center"
  146. label="超滤量(ml)"
  147. width="110"
  148. v-if="
  149. isShow('超滤量') &&
  150. (template_id == 6 ||
  151. template_id == 10 ||
  152. template_id == 11 ||
  153. template_id == 12 ||
  154. template_id == 13 ||
  155. template_id == 17)
  156. "
  157. >
  158. <template slot-scope="scope">
  159. {{
  160. scope.row.ultrafiltration_volume
  161. ? scope.row.ultrafiltration_volume
  162. : ""
  163. }}
  164. </template>
  165. </el-table-column>
  166. <el-table-column
  167. prop="ultrafiltration_volume"
  168. align="center"
  169. label="超滤量(L)"
  170. width="110"
  171. v-if="
  172. isShow('超滤量') &&
  173. template_id != 6 &&
  174. template_id != 10 &&
  175. template_id != 11 &&
  176. template_id != 12 &&
  177. template_id != 13 &&
  178. template_id != 17
  179. "
  180. >
  181. <template slot-scope="scope">
  182. {{
  183. scope.row.ultrafiltration_volume
  184. ? scope.row.ultrafiltration_volume
  185. : ""
  186. }}
  187. </template>
  188. </el-table-column>
  189. <el-table-column
  190. prop="sodium_concentration"
  191. align="center"
  192. label="钠浓度(mmol/L)"
  193. width="126"
  194. v-if="isShow('钠浓度')"
  195. >
  196. <template slot-scope="scope">
  197. {{
  198. scope.row.sodium_concentration
  199. ? scope.row.sodium_concentration
  200. : ""
  201. }}
  202. </template>
  203. </el-table-column>
  204. <el-table-column
  205. prop="dialysate_temperature"
  206. align="center"
  207. label="透析液温度(℃)"
  208. width="120"
  209. v-if="isShow('透析液温度')"
  210. >
  211. <template slot-scope="scope">
  212. {{
  213. scope.row.dialysate_temperature
  214. ? scope.row.dialysate_temperature
  215. : ""
  216. }}
  217. </template>
  218. </el-table-column>
  219. <el-table-column
  220. prop="replacement_rate"
  221. align="center"
  222. label="置换率(ml/min)"
  223. width="120"
  224. v-if=" isShow('置换率') && (template_id == 6 || template_id == 10 || template_id == 11)" >
  225. <template slot-scope="scope">
  226. {{ scope.row.replacement_rate ? scope.row.replacement_rate : "" }}
  227. </template>
  228. </el-table-column>
  229. <el-table-column
  230. prop="replacement_rate"
  231. align="center"
  232. label="置换率(L/h)"
  233. width="120"
  234. v-if=" isShow('置换率') && template_id != 6 && template_id != 10 && template_id != 11">
  235. <template slot-scope="scope">
  236. {{ scope.row.replacement_rate ? scope.row.replacement_rate : "" }}
  237. </template>
  238. </el-table-column>
  239. <el-table-column
  240. prop="displacement_quantity"
  241. align="center"
  242. label="置换量(ml)"
  243. width="100"
  244. v-if=" isShow('置换量') && (template_id == 6 || template_id == 10 || template_id == 11) " >
  245. <template slot-scope="scope">
  246. {{ scope.row.displacement_quantity ? scope.row.displacement_quantity : "" }}
  247. </template>
  248. </el-table-column>
  249. <el-table-column
  250. prop="displacement_quantity"
  251. align="center"
  252. label="置换量(L)"
  253. width="100"
  254. v-if=" isShow('置换量') && template_id != 6 && template_id != 10 && template_id != 11 " >
  255. <template slot-scope="scope">
  256. {{ scope.row.displacement_quantity ? scope.row.displacement_quantity : "" }}
  257. </template>
  258. </el-table-column>
  259. <el-table-column
  260. prop="displacement_quantity"
  261. align="center"
  262. label="SpO₂(%)"
  263. width="100"
  264. v-if=" isShow('SpO₂') && template_id != 6 && template_id != 10 && template_id != 11 " >
  265. <template slot-scope="scope">
  266. {{ scope.row.blood_oxygen_saturation ? scope.row.blood_oxygen_saturation : "" }}
  267. </template>
  268. </el-table-column>
  269. <el-table-column
  270. prop="displacement_flow_quantity"
  271. align="center"
  272. label="电导度(mS/m)"
  273. width="100"
  274. v-if="isShow('电导度')"
  275. >
  276. <template slot-scope="scope">
  277. {{ scope.row.conductivity ? scope.row.conductivity : "" }}
  278. </template>
  279. </el-table-column>
  280. <el-table-column
  281. prop="displacement_flow_quantity"
  282. align="center"
  283. label="置换液流量(ml/h)"
  284. width="100"
  285. v-if="isShow('置换液流量')"
  286. >
  287. <template slot-scope="scope">
  288. {{ scope.row.displacement_flow_quantity ? scope.row.displacement_flow_quantity : "" }}
  289. </template>
  290. </el-table-column>
  291. <el-table-column
  292. prop="displacement_flow_quantity"
  293. align="center"
  294. label="透析液流量(ml/h)"
  295. width="100"
  296. v-if="isShow('透析液流量')"
  297. >
  298. <template slot-scope="scope">
  299. {{ scope.row.dialysate_flow ? scope.row.dialysate_flow : "" }}
  300. </template>
  301. </el-table-column>
  302. <el-table-column
  303. prop="displacement_flow_quantity"
  304. align="center"
  305. label="超滤率(ml/h)"
  306. width="100"
  307. v-if="isShow('超滤率') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13) "
  308. >
  309. <template slot-scope="scope">
  310. {{ scope.row.ultrafiltration_rate ? scope.row.ultrafiltration_rate : "" }}
  311. </template>
  312. </el-table-column>
  313. <el-table-column
  314. prop="displacement_flow_quantity"
  315. align="center"
  316. label="超滤率(L/h)"
  317. width="100"
  318. v-if="isShow('超滤率') && template_id != 6 && template_id != 10 && template_id != 11 && template_id != 12 && template_id != 13 "
  319. >
  320. <template slot-scope="scope">
  321. {{ scope.row.ultrafiltration_rate ? scope.row.ultrafiltration_rate : "" }}
  322. </template>
  323. </el-table-column>
  324. <el-table-column
  325. prop="heparin"
  326. align="center"
  327. label="肝素用量余量(ml)"
  328. width="140"
  329. v-if="isShow('肝素用量余量')"
  330. >
  331. </el-table-column>
  332. <el-table-column
  333. prop="symptom"
  334. align="center"
  335. label="病情变化"
  336. width="130"
  337. v-if="isShow('病情变化')"
  338. >
  339. </el-table-column>
  340. <el-table-column
  341. prop="dispose"
  342. align="center"
  343. label="处理"
  344. width="130"
  345. v-if="isShow('处理')"
  346. >
  347. </el-table-column>
  348. <el-table-column
  349. prop="result"
  350. align="center"
  351. label="结果"
  352. width="130"
  353. v-if="isShow('结果')"
  354. >
  355. </el-table-column>
  356. </el-table>
  357. </div>
  358. <!--<div v-show="edit">-->
  359. <el-form v-show="edit" ref="form" :model="form" label-width="130px">
  360. <el-row :gutter="20">
  361. <el-col :span="8" v-if="isShow('监测时间')">
  362. <el-form-item label="监测时间:">
  363. <!-- {{ monitor_date_str }}
  364. <el-time-picker v-model="form.monitoring_time" :clearable="false" arrow-control :picker-options="{format: 'HH:mm'}" prefix-icon="" value-format="HH:mm" style="width: 60%;">
  365. </el-time-picker> -->
  366. <el-date-picker
  367. v-model="form.operate_time"
  368. type="datetime"
  369. prefix-icon=""
  370. style="width: 100%"
  371. format="yyyy-MM-dd HH:mm"
  372. value-format="timestamp"
  373. ></el-date-picker>
  374. </el-form-item>
  375. </el-col>
  376. <el-col :span="8" v-if="isShow('体温')">
  377. <el-form-item label="体温(℃):">
  378. <el-input v-model="form.temperature"></el-input>
  379. </el-form-item>
  380. </el-col>
  381. <el-col :span="8" v-if="isShow('收缩压')">
  382. <el-form-item label="收缩压(mmHg):">
  383. <el-input v-model="form.systolic_bp"></el-input>
  384. </el-form-item>
  385. </el-col>
  386. <el-col :span="8" v-if="isShow('舒张压')">
  387. <el-form-item label="舒张压(mmHg):">
  388. <el-input v-model="form.diastolic_bp"></el-input>
  389. </el-form-item>
  390. </el-col>
  391. <el-col :span="8" v-if="isShow('脉搏')">
  392. <el-form-item label="脉搏(次/分):">
  393. <el-input v-model="form.pulse_frequency"></el-input>
  394. </el-form-item>
  395. </el-col>
  396. <el-col :span="8" v-if="isShow('呼吸频率')">
  397. <el-form-item label="呼吸频率(次/分):">
  398. <el-input v-model="form.breathing_rated"></el-input>
  399. </el-form-item>
  400. </el-col>
  401. <el-col :span="8" v-if="isShow('静脉压')">
  402. <el-form-item label="静脉压(mmHg):">
  403. <el-input
  404. style="width: 140px"
  405. v-model="form.venous_pressure"
  406. ></el-input>
  407. <el-button
  408. size="mini"
  409. type="primary"
  410. @click="venousPressureChangeOne"
  411. >转换</el-button
  412. >
  413. </el-form-item>
  414. </el-col>
  415. <el-col :span="8" v-if="isShow('动脉压')">
  416. <el-form-item label="动脉压(mmHg):">
  417. <el-input
  418. style="width: 140px"
  419. v-model="form.arterial_pressure"
  420. ></el-input>
  421. <el-button
  422. size="mini"
  423. type="primary"
  424. @click="venousPressureChangeThree"
  425. >转换</el-button
  426. >
  427. </el-form-item>
  428. </el-col>
  429. <el-col :span="8" v-if="isShow('血流量')">
  430. <el-form-item label="血流量(ml/min):">
  431. <el-input v-model="form.blood_flow_volume"></el-input>
  432. </el-form-item>
  433. </el-col>
  434. <el-col :span="8" v-if="isShow('跨膜压')">
  435. <el-form-item label="跨膜压(mmHg):">
  436. <el-input
  437. style="width: 140px"
  438. v-model="form.transmembrane_pressure"
  439. ></el-input>
  440. <el-button
  441. size="mini"
  442. type="primary"
  443. @click="venousPressureChangeTwo"
  444. >转换</el-button
  445. >
  446. </el-form-item>
  447. </el-col>
  448. <el-col :span="8" v-if="isShow('超滤率') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13) ">
  449. <el-form-item label="超滤率(ml/h)">
  450. <el-input v-model="form.ultrafiltration_rate"></el-input>
  451. </el-form-item>
  452. </el-col>
  453. <el-col :span="8" v-if="isShow('超滤率') && template_id != 6 && template_id != 10 && template_id != 11 && template_id != 12 && template_id != 13 ">
  454. <el-form-item label="超滤率(L/h)">
  455. <el-input v-model="form.ultrafiltration_rate"></el-input>
  456. </el-form-item>
  457. </el-col>
  458. <el-col
  459. :span="8"
  460. v-if=" isShow('超滤量') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17) " >
  461. <el-form-item label="超滤量(ml):">
  462. <el-input v-model="form.ultrafiltration_volume"></el-input>
  463. </el-form-item>
  464. </el-col>
  465. <el-col
  466. :span="8"
  467. v-if=" isShow('超滤量') && template_id != 6 && template_id != 10 && template_id != 11 && template_id != 12 && template_id != 13 && template_id != 17" >
  468. <el-form-item label="超滤量(L):">
  469. <el-input v-model="form.ultrafiltration_volume"></el-input>
  470. </el-form-item>
  471. </el-col>
  472. <el-col :span="8" v-if="isShow('钠浓度')">
  473. <el-form-item label="钠浓度(mmol/L):">
  474. <el-input v-model="form.sodium_concentration"></el-input>
  475. </el-form-item>
  476. </el-col>
  477. <!-- </el-row>
  478. <el-row :gutter="20"> -->
  479. <el-col :span="8" v-if="isShow('透析液温度')">
  480. <el-form-item label="透析液温度(℃):">
  481. <el-input v-model="form.dialysate_temperature"></el-input>
  482. </el-form-item>
  483. </el-col>
  484. <el-col :span="8" v-if="isShow('置换率')">
  485. <el-form-item label="置换率(L/h):">
  486. <el-input v-model="form.replacement_rate"></el-input>
  487. </el-form-item>
  488. </el-col>
  489. <el-col :span="8" v-if="isShow('置换量')">
  490. <el-form-item label="置换量(L):">
  491. <el-input v-model="form.displacement_quantity"></el-input>
  492. </el-form-item>
  493. </el-col>
  494. <el-col :span="8" v-if="isShow('电导度')">
  495. <el-form-item label="电导度(mS/m):">
  496. <el-input v-model="form.conductivity"></el-input>
  497. </el-form-item>
  498. </el-col>
  499. <el-col :span="8" v-if="isShow('置换液流量')">
  500. <el-form-item label="置换液流量(ml/h):">
  501. <el-input v-model="form.displacement_flow_quantity"></el-input>
  502. </el-form-item>
  503. </el-col>
  504. <el-col :span="8" v-if="isShow('透析液流量')">
  505. <el-form-item label="透析液流量(ml/h):">
  506. <el-input v-model="form.dialysate_flow"></el-input>
  507. </el-form-item>
  508. </el-col>
  509. <el-col :span="8" v-if="isShow('SpO₂')">
  510. <el-form-item label="SpO₂(%):">
  511. <el-input v-model="form.blood_oxygen_saturation"></el-input>
  512. </el-form-item>
  513. </el-col>
  514. <el-col :span="8" v-if="isShow('肝素用量余量')">
  515. <el-form-item label="肝素用量余量(ml):">
  516. <el-input v-model="form.heparin"></el-input>
  517. </el-form-item>
  518. </el-col>
  519. <!-- </el-row>
  520. <el-row :gutter="20"> -->
  521. <el-col :span="24" v-if="isShow('KT/V')">
  522. <el-form-item label="KT/V(在线):">
  523. <el-input type="textarea" :rows="4" v-model="form.ktv"></el-input>
  524. </el-form-item>
  525. </el-col>
  526. <!-- </el-row>
  527. <el-row :gutter="20"> -->
  528. <el-col :span="24" v-if="isShow('病情变化')">
  529. <el-form-item label="病情变化:">
  530. <el-select
  531. v-model="symptom_selecteds"
  532. style="width: 100%"
  533. :multiple="true"
  534. collapse-tags
  535. @change="symptomSelectorChange"
  536. >
  537. <el-option
  538. v-for="(symptom, index) in symptom_options"
  539. :key="index"
  540. :label="symptom.name"
  541. :value="symptom.name"
  542. ></el-option>
  543. </el-select>
  544. </el-form-item>
  545. </el-col>
  546. <!-- </el-row>
  547. <el-row :gutter="20"> -->
  548. <el-col :span="24" v-if="isShow('病情变化')">
  549. <el-form-item>
  550. <el-input
  551. type="textarea"
  552. :rows="4"
  553. v-model="form.symptom"
  554. @blur="symptomTextareaBlur"
  555. ></el-input>
  556. </el-form-item>
  557. </el-col>
  558. <!-- </el-row>
  559. <el-row :gutter="20"> -->
  560. <el-col :span="24" v-if="isShow('处理')">
  561. <el-form-item label="处理:">
  562. <el-select
  563. v-model="dispose_selecteds"
  564. style="width: 100%"
  565. :multiple="true"
  566. collapse-tags
  567. @change="disposeSelectorChange"
  568. >
  569. <el-option
  570. v-for="(dispose, index) in dispose_options"
  571. :key="index"
  572. :label="dispose.name"
  573. :value="dispose.name"
  574. ></el-option>
  575. </el-select>
  576. </el-form-item>
  577. </el-col>
  578. <!-- </el-row>
  579. <el-row :gutter="20"> -->
  580. <el-col :span="24" v-if="isShow('处理')">
  581. <el-form-item>
  582. <el-input
  583. type="textarea"
  584. :rows="4"
  585. v-model="form.dispose"
  586. @blur="disposeTextareaBlur"
  587. ></el-input>
  588. </el-form-item>
  589. </el-col>
  590. <!-- </el-row>
  591. <el-row :gutter="20"> -->
  592. <el-col :span="24" v-if="isShow('结果')">
  593. <el-form-item label="结果:">
  594. <el-select
  595. v-model="result_selecteds"
  596. style="width: 100%"
  597. :multiple="true"
  598. collapse-tags
  599. @change="resultSelectorChange"
  600. >
  601. <el-option
  602. v-for="(result, index) in result_options"
  603. :key="index"
  604. :label="result.name"
  605. :value="result.name"
  606. ></el-option>
  607. </el-select>
  608. </el-form-item>
  609. </el-col>
  610. <!-- </el-row>
  611. <el-row :gutter="20"> -->
  612. <el-col :span="24" v-if="isShow('结果')">
  613. <el-form-item>
  614. <el-input
  615. type="textarea"
  616. :rows="4"
  617. v-model="form.result"
  618. @blur="resultTextareaBlur"
  619. ></el-input>
  620. </el-form-item>
  621. </el-col>
  622. </el-row>
  623. </el-form>
  624. <div slot="footer" class="dialog-footer" v-show="edit">
  625. <el-button @click="cancelEditAction">取 消</el-button>
  626. <el-button type="primary" @click="submitAction">保 存</el-button>
  627. </div>
  628. <!--</div>-->
  629. </el-dialog>
  630. </div>
  631. </template>
  632. <script>
  633. import { parseTime } from '@/utils'
  634. import { getDataConfig } from '@/utils/data'
  635. import { editMonitor, postDelMonitorInfo, getTodayMonitor } from '@/api/dialysis_record'
  636. import store from '@/store'
  637. import request from '@/utils/request'
  638. export default {
  639. name: 'MonitorDialog',
  640. data() {
  641. return {
  642. is_has_create: true,
  643. is_has_modify: true,
  644. is_has_modify_other: true,
  645. is_has_del: true,
  646. is_has_del_other: true,
  647. visible: false,
  648. edit: false,
  649. current_row_class: 'current-box-class',
  650. creator: 0,
  651. patient_id: 0,
  652. schedule_date: 0,
  653. template_id: 0,
  654. isAdd: false,
  655. // monitoring_date: 0,
  656. form: {
  657. id: 0,
  658. monitoring_date: 0, // 监测日期
  659. // operate_date: 0, // 实际测量日期
  660. // monitoring_time: "", // 监测时间 HH:mm
  661. operate_time: 0,
  662. systolic_bp: '', // 收缩压
  663. diastolic_bp: '', // 舒张压
  664. pulse_frequency: '', // 心率
  665. temperature: '', // 体温
  666. breathing_rated: '', // 呼吸频率
  667. blood_flow_volume: '', // 血流量
  668. venous_pressure: '', // 静脉压
  669. transmembrane_pressure: '', // 跨膜压
  670. ultrafiltration_volume: '', // 超滤量
  671. ultrafiltration_rate: '', // 超滤率
  672. arterial_pressure: '', // 动脉压
  673. sodium_concentration: '', // 钠浓度
  674. dialysate_temperature: '', // 透析液温度
  675. replacement_rate: '', // 置换率
  676. displacement_quantity: '', // 置换量
  677. conductivity: '', // 电导度
  678. displacement_flow_quantity: '', // 置换液流量
  679. dialysate_flow: '', // 透析液流量
  680. heparin: '', // 肝素用量余量
  681. ktv: '', // KT/V
  682. symptom: '', // 病情变化
  683. dispose: '', // 处理
  684. result: '', // 结果,
  685. blood_oxygen_saturation: '' // 血氧饱和度
  686. },
  687. table_current_row: null,
  688. symptom_selecteds: [],
  689. symptom_options: getDataConfig('hemodialysis', 'symptoms'),
  690. dispose_selecteds: [],
  691. dispose_options: getDataConfig('hemodialysis', 'deals'),
  692. result_selecteds: [],
  693. result_options: getDataConfig('hemodialysis', 'results'),
  694. valueOne: 0,
  695. valueTwo: 0,
  696. valueThree: 0
  697. }
  698. },
  699. props: {
  700. monitors: {
  701. type: Array
  702. }
  703. },
  704. computed: {
  705. monitor_date_str: function() {
  706. return parseTime(this.form.monitoring_date, '{y}-{m}-{d}')
  707. }
  708. },
  709. created() {
  710. this.template_id = this.$store.getters.xt_user.template_info.template_id
  711. var date = this.$route.query.date
  712. var patient_id = this.$route.query.patient_id
  713. this.patient_id = patient_id
  714. this.schedule_date = date
  715. this.form.monitoring_date = date
  716. // this.form.operate_date = parseInt((new Date()).getTime() / 1000)
  717. // this.form.monitoring_time = parseTime(new Date(), "{h}:{i}")
  718. this.form.operate_time = new Date().getTime()
  719. },
  720. methods: {
  721. venousPressureChange(type) {
  722. if (type == 1) {
  723. this.form.venous_pressure = Math.ceil(
  724. Math.round(this.form.venous_pressure * 7.5)
  725. )
  726. } else if (type == 2) {
  727. this.form.transmembrane_pressure = Math.ceil(
  728. Math.round(this.form.transmembrane_pressure * 7.5)
  729. )
  730. } else {
  731. this.form.arterial_pressure = Math.ceil(
  732. Math.round(this.form.arterial_pressure * 7.5)
  733. )
  734. }
  735. },
  736. venousPressureChangeOne() {
  737. if (this.valueOne == 0) {
  738. this.form.venous_pressure = Math.ceil(
  739. Math.round(this.form.venous_pressure * 7.5)
  740. )
  741. this.valueOne = 1
  742. return false
  743. }
  744. if (this.valueOne == 1) {
  745. this.form.venous_pressure = Math.ceil(
  746. Math.round(this.form.venous_pressure / 7.5)
  747. )
  748. this.valueOne = 0
  749. return false
  750. }
  751. },
  752. venousPressureChangeThree() {
  753. if (this.valueThree == 0) {
  754. this.form.arterial_pressure = Math.ceil(
  755. Math.round(this.form.arterial_pressure * 7.5)
  756. )
  757. this.valueThree = 1
  758. return false
  759. }
  760. if (this.valueThree == 1) {
  761. this.form.arterial_pressure = Math.ceil(
  762. Math.round(this.form.arterial_pressure / 7.5)
  763. )
  764. this.valueThree = 0
  765. return false
  766. }
  767. },
  768. venousPressureChangeTwo() {
  769. if (this.valueTwo == 0) {
  770. this.form.transmembrane_pressure = Math.ceil(
  771. Math.round(this.form.transmembrane_pressure * 7.5)
  772. )
  773. this.valueTwo = 1
  774. return false
  775. }
  776. if (this.valueTwo == 1) {
  777. this.form.transmembrane_pressure = Math.ceil(
  778. Math.round(this.form.transmembrane_pressure / 7.5)
  779. )
  780. this.valueTwo = 0
  781. return false
  782. }
  783. },
  784. isShow(name) {
  785. var filedList = store.getters.xt_user.fileds
  786. for (let i = 0; i < filedList.length; i++) {
  787. if (filedList[i].module == 4 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1) {
  788. return true
  789. }
  790. }
  791. return false
  792. },
  793. reset: function() {
  794. this.cancelEditAction()
  795. },
  796. show() {
  797. this.getPermission()
  798. this.visible = true
  799. },
  800. hide() {
  801. this.visible = false
  802. },
  803. getMonitorDate: function(monitor) {
  804. return parseTime(monitor.operate_time, '{y}-{m}-{d} {h}:{i}')
  805. },
  806. newRecordAction: function() {
  807. this.setEditMonitor(null)
  808. this.$refs.table.setCurrentRow(null)
  809. this.edit = true
  810. this.isAdd = true
  811. this.getLastRecordTody()
  812. },
  813. getLastRecordTody() {
  814. const params = {
  815. patient_id: this.patient_id
  816. }
  817. getTodayMonitor(params).then(rs => {
  818. var resp = rs.data.data
  819. this.form.operate_time = resp.monitor.operate_time ? (resp.monitor.operate_time + 3600) * 1000 : Date.parse(new Date())
  820. this.form.pulse_frequency = '' // this.last_monitor_record.pulse_frequency;
  821. this.form.breathing_rated = resp.monitor.breathing_rate ? resp.monitor.breathing_rate : ''
  822. this.form.systolic_bp = '' // this.last_monitor_record.systolic_blood_pressure;
  823. this.form.diastolic_bp = '' // this.last_monitor_record.diastolic_blood_pressure;
  824. this.form.blood_flow_volume = resp.monitor.blood_flow_volume ? resp.monitor.blood_flow_volume : ''
  825. this.form.venous_pressure = '' // this.last_monitor_record.venous_pressure;
  826. this.form.arterial_pressure = '' // this.last_monitor_record.arterial_pressure;
  827. this.form.transmembrane_pressure = '' // this.last_monitor_record.transmembrane_pressure;
  828. this.form.ultrafiltration_rate = resp.monitor.ultrafiltration_rate ? resp.monitor.ultrafiltration_rate : ''
  829. this.form.ultrafiltration_volume = resp.monitor.ultrafiltration_volume ? resp.monitor.ultrafiltration_volume : ''
  830. this.form.sodium_concentration = resp.monitor.sodium_concentration ? resp.monitor.sodium_concentration : ''
  831. this.form.dialysate_temperature = resp.monitor.dialysate_temperature ? resp.monitor.dialysate_temperature : ''
  832. this.form.temperature = resp.monitor.temperature ? resp.monitor.temperature : ''
  833. this.form.replacement_rate = resp.monitor.replacement_rate ? resp.monitor.replacement_rate : ''
  834. this.form.heparin = resp.monitor.heparin ? resp.monitor.heparin : ''
  835. this.form.dialysate_flow = resp.monitor.dialysate_flow ? resp.monitor.dialysate_flow : ''
  836. this.form.displacement_quantity = '' // this.last_monitor_record.displacement_quantity;
  837. this.form.conductivity = ''
  838. this.form.displacement_flow_quantity = ''
  839. this.form.ktv = '' // this.last_monitor_record.ktv;
  840. this.form.symptom = '' // this.last_monitor_record.symptom;
  841. this.form.dispose = '' // this.last_monitor_record.dispose;
  842. this.form.result = '' // this.last_monitor_record.result;
  843. this.form.blood_oxygen_saturation = resp.monitor.blood_oxygen_saturation ? resp.monitor.blood_oxygen_saturation : ''
  844. })
  845. },
  846. modifyRecordAction: function() {
  847. if (this.table_current_row == null) {
  848. this.$message.error('请选择一条监测记录')
  849. return
  850. }
  851. this.creator = this.table_current_row.creator
  852. this.setEditMonitor(this.table_current_row)
  853. this.$refs.table.setCurrentRow(null)
  854. this.edit = true
  855. this.isAdd = false
  856. },
  857. cancelEditAction: function() {
  858. this.setEditMonitor(null)
  859. this.$refs.table.setCurrentRow(null)
  860. this.edit = false
  861. },
  862. tableCurrentRowChange: function(currentRow) {
  863. this.table_current_row = currentRow
  864. // console.log("tableCurrentRowChange", currentRow)
  865. },
  866. setEditMonitor: function(monitor) {
  867. if (monitor == null || monitor == undefined) {
  868. this.form.id = 0
  869. // this.form.operate_date = parseInt((new Date()).getTime() / 1000)
  870. // this.form.monitoring_time = parseTime(new Date(), "{h}:{i}")
  871. this.form.operate_time = new Date().getTime()
  872. this.form.systolic_bp = ''
  873. this.form.diastolic_bp = ''
  874. this.form.pulse_frequency = ''
  875. this.form.breathing_rated = ''
  876. this.form.blood_flow_volume = ''
  877. this.form.temperature = ''
  878. this.form.venous_pressure = ''
  879. this.form.transmembrane_pressure = ''
  880. this.form.ultrafiltration_volume = ''
  881. this.form.ultrafiltration_rate = ''
  882. this.form.arterial_pressure = ''
  883. this.form.sodium_concentration = ''
  884. this.form.dialysate_temperature = ''
  885. this.form.replacement_rate = ''
  886. this.form.displacement_quantity = ''
  887. this.form.conductivity = ''
  888. this.form.displacement_flow_quantity = ''
  889. this.form.heparin = ''
  890. this.form.dialysate_flow = ''
  891. this.form.ktv = ''
  892. this.form.symptom = ''
  893. this.form.dispose = ''
  894. this.form.result = ''
  895. this.symptom_selecteds = []
  896. this.dispose_selecteds = []
  897. this.result_selecteds = []
  898. } else {
  899. (this.form.id = monitor.id),
  900. // this.form.operate_date = monitor.operate_date
  901. // this.form.monitoring_time = monitor.monitoring_time
  902. (this.form.operate_time = monitor.operate_time * 1000)
  903. this.form.systolic_bp = monitor.systolic_blood_pressure ? monitor.systolic_blood_pressure : ''
  904. this.form.temperature = monitor.temperature ? monitor.temperature : ''
  905. this.form.diastolic_bp = monitor.diastolic_blood_pressure ? monitor.diastolic_blood_pressure : ''
  906. this.form.pulse_frequency = monitor.pulse_frequency ? monitor.pulse_frequency : ''
  907. this.form.breathing_rated = monitor.breathing_rate ? monitor.breathing_rate : ''
  908. this.form.blood_flow_volume = monitor.blood_flow_volume ? monitor.blood_flow_volume : ''
  909. this.form.venous_pressure = monitor.venous_pressure ? monitor.venous_pressure : ''
  910. this.form.transmembrane_pressure = monitor.transmembrane_pressure ? monitor.transmembrane_pressure : ''
  911. this.form.ultrafiltration_volume = monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : ''
  912. this.form.ultrafiltration_rate = monitor.ultrafiltration_rate ? monitor.ultrafiltration_rate : ''
  913. this.form.arterial_pressure = monitor.arterial_pressure ? monitor.arterial_pressure : ''
  914. this.form.sodium_concentration = monitor.sodium_concentration ? monitor.sodium_concentration : ''
  915. this.form.dialysate_temperature = monitor.dialysate_temperature ? monitor.dialysate_temperature : ''
  916. this.form.replacement_rate = monitor.replacement_rate ? monitor.replacement_rate : ''
  917. this.form.displacement_quantity = monitor.displacement_quantity ? monitor.displacement_quantity : ''
  918. this.form.conductivity = monitor.conductivity ? monitor.conductivity : ''
  919. this.form.displacement_flow_quantity = monitor.displacement_flow_quantity ? monitor.displacement_flow_quantity : ''
  920. this.form.heparin = monitor.heparin ? monitor.heparin : ''
  921. this.form.dialysate_flow = monitor.dialysate_flow ? monitor.dialysate_flow : ''
  922. this.form.ktv = monitor.ktv ? monitor.ktv : ''
  923. this.form.symptom = monitor.symptom
  924. this.form.dispose = monitor.dispose
  925. this.form.result = monitor.result
  926. this.form.blood_oxygen_saturation = monitor.blood_oxygen_saturation
  927. // 设置三个下拉框的值,直接调用事件偷懒
  928. this.symptomTextareaBlur()
  929. this.disposeTextareaBlur()
  930. this.resultTextareaBlur()
  931. }
  932. },
  933. submitAction: function() {
  934. // TODO loading
  935. var is_new = this.form.id
  936. this.form.operate_time = parseInt(this.form.operate_time / 1000)
  937. this.form.systolic_bp = parseFloat(this.form.systolic_bp) == NaN ? 0 : parseFloat(this.form.systolic_bp)
  938. this.form.diastolic_bp = parseFloat(this.form.diastolic_bp) == NaN ? 0 : parseFloat(this.form.diastolic_bp)
  939. this.form.temperature = parseFloat(this.form.temperature) == NaN ? 0 : parseFloat(this.form.temperature)
  940. this.form.pulse_frequency = parseFloat(this.form.pulse_frequency) == NaN ? 0 : parseFloat(this.form.pulse_frequency)
  941. this.form.breathing_rated = parseFloat(this.form.breathing_rated) == NaN ? 0 : parseFloat(this.form.breathing_rated)
  942. this.form.blood_flow_volume = parseFloat(this.form.blood_flow_volume) == NaN ? 0 : parseFloat(this.form.blood_flow_volume)
  943. this.form.venous_pressure = parseFloat(this.form.venous_pressure) == NaN ? 0 : parseFloat(this.form.venous_pressure)
  944. this.form.transmembrane_pressure = parseFloat(this.form.transmembrane_pressure) == NaN ? 0 : parseFloat(this.form.transmembrane_pressure)
  945. this.form.ultrafiltration_volume = parseFloat(this.form.ultrafiltration_volume) == NaN ? 0 : parseFloat(this.form.ultrafiltration_volume)
  946. this.form.ultrafiltration_rate = parseFloat(this.form.ultrafiltration_rate) == NaN ? 0 : parseFloat(this.form.ultrafiltration_rate)
  947. this.form.arterial_pressure = parseFloat(this.form.arterial_pressure) == NaN ? 0 : parseFloat(this.form.arterial_pressure)
  948. this.form.sodium_concentration = parseFloat(this.form.sodium_concentration) == NaN ? 0 : parseFloat(this.form.sodium_concentration)
  949. this.form.dialysate_temperature = parseFloat(this.form.dialysate_temperature) == NaN ? 0 : parseFloat(this.form.dialysate_temperature)
  950. this.form.replacement_rate = parseFloat(this.form.replacement_rate) == NaN ? 0 : parseFloat(this.form.replacement_rate)
  951. this.form.displacement_quantity = parseFloat(this.form.displacement_quantity) == NaN ? 0 : parseFloat(this.form.displacement_quantity)
  952. this.form.conductivity = parseFloat(this.form.conductivity) == NaN ? 0 : parseFloat(this.form.conductivity)
  953. this.form.displacement_flow_quantity = parseFloat(this.form.displacement_flow_quantity) == NaN ? 0 : parseFloat(this.form.displacement_flow_quantity)
  954. this.form.heparin = parseFloat(this.form.heparin) == NaN ? 0 : parseFloat(this.form.heparin)
  955. this.form.dialysate_flow = parseFloat(this.form.dialysate_flow) == NaN ? 0 : parseFloat(this.form.dialysate_flow)
  956. this.form.ktv = parseFloat(this.form.ktv) == NaN ? 0 : parseFloat(this.form.ktv)
  957. this.form.monitoring_date = parseInt(this.form.monitoring_date)
  958. let mode = '1'
  959. if (this.form.id > 0) {
  960. mode = '2'
  961. if (this.creator > 0 && this.creator != this.$store.getters.xt_user.user.id) {
  962. mode = '3'
  963. }
  964. }
  965. editMonitor(this.patient_id, this.schedule_date, this.form, mode).then(
  966. rs => {
  967. var resp = rs.data
  968. if (resp.state == 1) {
  969. var monitor = resp.data.monitor
  970. if (this.isAdd) {
  971. this.monitors.unshift(monitor)
  972. this.monitors.sort((a, b) => b.operate_time - a.operate_time)
  973. this.monitors.reverse()
  974. } else {
  975. for (let index = 0; index < this.monitors.length; index++) {
  976. const m = this.monitors[index]
  977. if (m.id == monitor.id) {
  978. for (const key in monitor) {
  979. m[key] = monitor[key]
  980. }
  981. break
  982. }
  983. }
  984. }
  985. this.reset()
  986. } else {
  987. this.form.systolic_bp = parseFloat(this.form.systolic_bp) == NaN ? 0 : parseFloat(this.form.systolic_bp)
  988. this.form.diastolic_bp = parseFloat(this.form.diastolic_bp) == NaN ? 0 : parseFloat(this.form.diastolic_bp)
  989. this.form.temperature = parseFloat(this.form.temperature) == NaN ? 0 : parseFloat(this.form.temperature)
  990. this.form.pulse_frequency = parseFloat(this.form.pulse_frequency) == NaN ? 0 : parseFloat(this.form.pulse_frequency)
  991. this.form.breathing_rated = parseFloat(this.form.breathing_rated) == NaN ? 0 : parseFloat(this.form.breathing_rated)
  992. this.form.blood_flow_volume = parseFloat(this.form.blood_flow_volume) == NaN ? 0 : parseFloat(this.form.blood_flow_volume)
  993. this.form.venous_pressure = parseFloat(this.form.venous_pressure) == NaN ? 0 : parseFloat(this.form.venous_pressure)
  994. this.form.transmembrane_pressure = parseFloat(this.form.transmembrane_pressure) == NaN ? 0 : parseFloat(this.form.transmembrane_pressure)
  995. this.form.ultrafiltration_volume = parseFloat(this.form.ultrafiltration_volume) == NaN ? 0 : parseFloat(this.form.ultrafiltration_volume)
  996. this.form.ultrafiltration_rate = parseFloat(this.form.ultrafiltration_rate) == NaN ? 0 : parseFloat(this.form.ultrafiltration_rate)
  997. this.form.arterial_pressure = parseFloat(this.form.arterial_pressure) == NaN ? 0 : parseFloat(this.form.arterial_pressure)
  998. this.form.sodium_concentration = parseFloat(this.form.sodium_concentration) == NaN ? 0 : parseFloat(this.form.sodium_concentration)
  999. this.form.dialysate_temperature = parseFloat(this.form.dialysate_temperature) == NaN ? 0 : parseFloat(this.form.dialysate_temperature)
  1000. this.form.replacement_rate = parseFloat(this.form.replacement_rate) == NaN ? 0 : parseFloat(this.form.replacement_rate)
  1001. this.form.displacement_quantity = parseFloat(this.form.displacement_quantity) == NaN ? 0 : parseFloat(this.form.displacement_quantity)
  1002. this.form.conductivity = parseFloat(this.form.conductivity) == NaN ? 0 : parseFloat(this.form.conductivity)
  1003. this.form.displacement_flow_quantity = parseFloat(this.form.displacement_flow_quantity) == NaN ? 0 : parseFloat(this.form.displacement_flow_quantity)
  1004. this.form.heparin = parseFloat(this.form.heparin) == NaN ? 0 : parseFloat(this.form.heparin)
  1005. this.form.dialysate_flow = parseFloat(this.form.dialysate_flow) == NaN ? 0 : parseFloat(this.form.dialysate_flow)
  1006. this.form.ktv = parseFloat(this.form.ktv) == NaN ? 0 : parseFloat(this.form.ktv)
  1007. this.$message.error(resp.msg)
  1008. }
  1009. }
  1010. )
  1011. },
  1012. symptomTextareaBlur: function() {
  1013. if (this.form.symptom.length > 0) {
  1014. this.symptom_selecteds = this.form.symptom.split(',')
  1015. } else {
  1016. this.symptom_selecteds = []
  1017. }
  1018. },
  1019. symptomSelectorChange: function() {
  1020. if (this.symptom_selecteds.length > 0) {
  1021. this.form.symptom = this.symptom_selecteds.join(',') + ','
  1022. } else {
  1023. this.form.symptom = ''
  1024. }
  1025. },
  1026. disposeTextareaBlur: function() {
  1027. if (this.form.dispose.length > 0) {
  1028. this.dispose_selecteds = this.form.dispose.split(',')
  1029. } else {
  1030. this.dispose_selecteds = []
  1031. }
  1032. },
  1033. disposeSelectorChange: function() {
  1034. if (this.dispose_selecteds.length > 0) {
  1035. this.form.dispose = this.dispose_selecteds.join(',') + ','
  1036. } else {
  1037. this.form.dispose = ''
  1038. }
  1039. },
  1040. resultTextareaBlur: function() {
  1041. if (this.form.result.length > 0) {
  1042. this.result_selecteds = this.form.result.split(',')
  1043. } else {
  1044. this.result_selecteds = []
  1045. }
  1046. },
  1047. setRecords(records) {
  1048. this.monitors = records
  1049. },
  1050. resultSelectorChange: function() {
  1051. if (this.result_selecteds.length > 0) {
  1052. this.form.result = this.result_selecteds.join(',') + ','
  1053. } else {
  1054. this.form.result = ''
  1055. }
  1056. },
  1057. deleteRecordAction: function() {
  1058. if (this.table_current_row == null) {
  1059. this.$message.error('请选择一条监测记录')
  1060. return
  1061. }
  1062. this.$confirm('删除记录', '是否删除该监测记录', {
  1063. confirmButtonText: '确定',
  1064. cancelButtonText: '取消',
  1065. type: 'warning'
  1066. })
  1067. .then(() => {
  1068. let mode = '4'
  1069. if (
  1070. this.table_current_row.creator > 0 &&
  1071. this.table_current_row.creator !=
  1072. this.$store.getters.xt_user.user.id
  1073. ) {
  1074. mode = '5'
  1075. }
  1076. const params = {
  1077. patient_id: this.patient_id,
  1078. record_id: this.table_current_row.id,
  1079. mode: mode
  1080. }
  1081. postDelMonitorInfo(params).then(response => {
  1082. if (response.data.state == 0) {
  1083. this.$message.error(response.data.msg)
  1084. return false
  1085. } else {
  1086. const record_id = response.data.data.record_id
  1087. for (let i = 0; i < this.monitors.length; i++) {
  1088. if (this.monitors[i].id == record_id) {
  1089. this.monitors.splice(i, 1)
  1090. }
  1091. }
  1092. this.$message.success('删除成功')
  1093. }
  1094. })
  1095. })
  1096. .catch(() => {})
  1097. },
  1098. getPermission() {
  1099. request
  1100. .get('/api/func_per/get', {
  1101. params: {
  1102. create_url: '/api/dislysis/monitor/edit?mode=1',
  1103. modify_url: '/api/dislysis/monitor/edit?mode=2',
  1104. modify_other_url: '/api/dislysis/monitor/edit?mode=3',
  1105. del_url: '/api/dialysis/monitor/del?mode=4',
  1106. del_other_url: '/api/dialysis/monitor/del?mode=5',
  1107. module: 7
  1108. }
  1109. })
  1110. .then(res => {
  1111. console.log(res)
  1112. if (res.data.state == 0) {
  1113. this.hasPermission = false
  1114. } else if (res.data.state == 1) {
  1115. this.is_has_create = res.data.data.is_has_create
  1116. this.is_has_exce = res.data.data.is_has_exce
  1117. this.is_has_check = res.data.data.is_has_check
  1118. this.is_has_modify = res.data.data.is_has_modify
  1119. this.is_has_modify_other = res.data.data.is_has_modify_other
  1120. this.is_has_modify_exce = res.data.data.is_has_modify_exce
  1121. this.is_has_del = res.data.data.is_has_del
  1122. this.is_has_del_other = res.data.data.is_has_del_other
  1123. }
  1124. })
  1125. }
  1126. }
  1127. }
  1128. </script>
  1129. <style style="stylesheet/scss" lang="scss" scoped>
  1130. .grid {
  1131. padding: 10px 0 20px 0;
  1132. .list {
  1133. ul {
  1134. @include display-flex;
  1135. @include align-items-center;
  1136. @include text-align;
  1137. @include justify-content-around;
  1138. cursor: pointer;
  1139. li {
  1140. font-size: 12px;
  1141. color: #5d6b7a;
  1142. margin-top: 20px;
  1143. p {
  1144. height: 30px;
  1145. line-height: 30px;
  1146. color: #34495e;
  1147. font-size: 14px;
  1148. }
  1149. img {
  1150. width: 50px;
  1151. height: 50px;
  1152. }
  1153. }
  1154. }
  1155. }
  1156. }
  1157. .txsj {
  1158. text-align: center;
  1159. margin-bottom: 20px;
  1160. }
  1161. .current-box-class::-webkit-scrollbar {
  1162. height: 20px; /*滚动条高度*/
  1163. }
  1164. </style>
  1165. <style style="stylesheet/scss" lang="scss">
  1166. .dialog_box .current-box-class .current-row > td {
  1167. background: #6fb5fa;
  1168. // color: #000;
  1169. /* font-size: 12px; */
  1170. }
  1171. .dialog_box .current-box-class .current-row:hover > td {
  1172. background: #6fb5fa;
  1173. // color: white;
  1174. /* font-size: 12px; */
  1175. }
  1176. .el-table__body-wrapper::-webkit-scrollbar {
  1177. height: 20px;
  1178. }
  1179. .dialog_box .current-box-class .current-row {
  1180. background: #87ceff;
  1181. }
  1182. .dialog_box tr:hover > td {
  1183. background-color: #ecf5ff !important;
  1184. color: #3a8ee6;
  1185. }
  1186. .dialog_box tr > td:hover {
  1187. background-color: #409eff !important;
  1188. color: #fff !important;
  1189. }
  1190. </style>