Elizabeth's proactive approach involves introducing urinal toilet attachment , an ingenious concept that optimizes space and functionality.

monitor_dialog.vue 47KB

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