monitor_dialog.vue 46KB

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