Contextowner.vue 32KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966
  1. <template>
  2. <div class="main-contain">
  3. <div class="position">
  4. <bread-crumb :crumbs="crumbs"></bread-crumb>
  5. <el-button
  6. size="small"
  7. icon="el-icon-menu"
  8. @click="fullscreenboard"
  9. type="primary"
  10. >全屏投影</el-button
  11. >
  12. </div>
  13. <!-- 全屏状态 -->
  14. <!-- <div id="fullscreenbroad" v-show="dialogTableVisible">
  15. <el-row class="fullRow">
  16. <el-button
  17. @click="openSetting"
  18. icon="el-icon-setting"
  19. circle
  20. id="fullscreenbroad-setting"
  21. ></el-button>
  22. <el-button
  23. type="primary"
  24. icon="el-icon-rank"
  25. v-if="showSetting"
  26. id="fullscreenbroad-setting"
  27. @click="togglefullscreen"
  28. >切换模式</el-button
  29. >
  30. <el-button
  31. type="primary"
  32. icon="el-icon-menu"
  33. v-if="showSetting"
  34. id="fullscreenbroad-setting"
  35. @click="outfullscreenboard"
  36. >退出全屏投影</el-button
  37. >
  38. </el-row>
  39. <div class="page_lineUp">
  40. <div class="lineUpTitle">
  41. </div>
  42. <div class="lineUpMain">
  43. <div class="lineUpMainLeft">
  44. <div class="lineUpMainLeftTitle">
  45. <p style="width:10%">序号</p>
  46. <p style="width:10%">姓名</p>
  47. <p style="width:14%">透析号</p>
  48. <p style="width:55%">透析时间</p>
  49. </div>
  50. </div>
  51. <div class="lineUpList">
  52. <div class="lineUpListOne" v-for="(item,index) in lineUpList" :key="index">
  53. <p style="width:12%" > {{ index+1 }} </p>
  54. <p style="width:14%">{{ getPatientName(item.patient_id)}}</p>
  55. <p style="width:14%">{{ getDialysisNo(item.patient_id) }}</p>
  56. <p style="width:55%">{{getContent(item.child) }}</p>
  57. </div>
  58. </div>
  59. </div>
  60. </div>
  61. </div> -->
  62. <div class="app-container">
  63. <div class="page_lineUp">
  64. <div class="lineUpTitle">
  65. <div>{{ this.$store.getters.xt_user.org.org_name }}<span>&nbsp;&nbsp;温馨提示:请注意排队叫号,依次叫号就诊上机,谢谢配合</span></div>
  66. <div>{{ newdate }}&nbsp;&nbsp;{{ time }}</div>
  67. </div>
  68. <div class="lineUpMain">
  69. <div class="lineUpMainLeft">
  70. <div class="lineUpMainLeftTitle">
  71. <p style="width:12%">序号</p>
  72. <p style="width:14%">姓名</p>
  73. <p style="width:14%">透析号</p>
  74. <p style="width:55%">透析时间</p>
  75. </div>
  76. <div class="lineUpList">
  77. <div class="lineUpListOne" v-for="(item,index) in lineUpList" :key="index">
  78. <p style="width:12%" > {{ index+1 }} </p>
  79. <p style="width:14%">{{ getPatientName(item.patient_id)}}</p>
  80. <p style="width:14%">{{ getDialysisNo(item.patient_id) }}</p>
  81. <p style="width:55%">{{getContent(item.child) }}</p>
  82. </div>
  83. </div>
  84. </div>
  85. </div>
  86. </div>
  87. </div>
  88. </div>
  89. </template>
  90. <script>
  91. import {getContextScheduleList} from "@/api/patient"
  92. const moment = require('moment')
  93. import BreadCrumb from "../components/bread-crumb";
  94. import screenfull from "screenfull";
  95. import { uParseTime } from '@/utils/tools'
  96. export default {
  97. components:{
  98. BreadCrumb
  99. },
  100. inject: ['reload'],
  101. data(){
  102. return{
  103. crumbs: [
  104. { path: false, name: "签到排队" },
  105. { path: false, name: "排队窗口" }
  106. ],
  107. dialogTableVisible:false,
  108. showSetting: false,
  109. lineUpList:[],
  110. count:0,
  111. page:1,
  112. timer:null,
  113. queueConfig:{
  114. qhsj:10,
  115. },
  116. receivingPatient:[],
  117. waitDoctorList:[],
  118. upPatientList:[],
  119. patient_id:'',
  120. timerID:null,
  121. time:'',
  122. newdate:'',
  123. voiceNum:1,
  124. voiceTime:null,
  125. voice:true,
  126. a:1,
  127. newTimes:null,
  128. limit:6,
  129. page:1,
  130. total:0,
  131. patientList:[],
  132. deviceNumberList:[],
  133. schedule:[],
  134. }
  135. },
  136. computed: {
  137. websocket() {
  138. return this.$store.state.user.websocket;
  139. },
  140. },
  141. created(){
  142. this.getlist()
  143. if(sessionStorage.getItem('lineUpKey') != null){
  144. if(sessionStorage.getItem('lineUpKey') == 1){
  145. this.dialogTableVisible = true
  146. }
  147. sessionStorage.removeItem('lineUpKey')
  148. sessionStorage.removeItem('signInKey')
  149. }
  150. this.initData = {
  151. cmd: "queue/join",
  152. data: {type:2,page:1,size:6},
  153. };
  154. this.websocketSend(this.initData)
  155. let newobj = {
  156. cmd: "queue/callreturn",
  157. data: {patient_id:0},
  158. };
  159. this.websocketSend(newobj)
  160. },
  161. beforeMount() {
  162. if (this.websocket) {
  163. if (this.websocket.readyState == 1) {
  164. console.log('执行1')
  165. this.websocketMess();
  166. } else {
  167. setTimeout(() => {
  168. console.log('执行2')
  169. this.websocketMess();
  170. }, 1000);
  171. }
  172. } else {
  173. setTimeout(() => {
  174. if (this.websocket.readyState == 1) {
  175. console.log('执行3')
  176. this.websocketMess();
  177. } else {
  178. setTimeout(() => {
  179. console.log('执行4')
  180. this.websocketMess();
  181. }, 1000);
  182. }
  183. }, 1000);
  184. }
  185. },
  186. mounted(){
  187. this.timer = setInterval(() => {
  188. if(this.page < Math.ceil(this.count / 6)){
  189. console.log('执行',Math.ceil(this.count / 6),this.page)
  190. this.page++
  191. this.getlist()
  192. setTimeout(() => {
  193. this.websocketMess();
  194. }, 1000);
  195. }
  196. else{
  197. console.log('执行22223333')
  198. // this.page = 4
  199. const counts = this.deviceNumberList.length;
  200. console.log('sdfasdfdas',Math.ceil(counts / 6));
  201. if(this.page <= Math.ceil(counts / 6)){
  202. console.log('执行444444444',this.page)
  203. this.page ++
  204. }else{
  205. console.log('执行55555555',this.page)
  206. this.page = 1
  207. }
  208. // this.page++
  209. this.getlist()
  210. setTimeout(() => {
  211. // this.websocketMess();
  212. this.lineUpList
  213. }, 1000);
  214. }
  215. console.log('切换时间',this.queueConfig)
  216. }, 1000 * parseInt(this.queueConfig.qhsj));
  217. this.timerID = setInterval(() => {
  218. this.updateTime()
  219. }, 1000);
  220. this.newTimes = setInterval(() => {
  221. // this.reload()
  222. console.log('1222222333333333');
  223. sessionStorage.setItem('lineUpKey',1);
  224. window.location.reload()
  225. }, 1000 * 60 * 30);
  226. },
  227. beforeDestroy(){
  228. clearInterval(this.timer);// 清除定时器
  229. this.timer = null
  230. clearInterval(this.timerID);
  231. this.timerID = null;// 清除定时器
  232. let unObj = {
  233. cmd:'queue/unjoin',
  234. data:{type:2}
  235. }
  236. this.websocketSend(unObj)
  237. },
  238. methods:{
  239. websocketSend(data) {
  240. try {
  241. this.websocket.send(JSON.stringify(data))
  242. } catch (error) {
  243. this.showError = true;
  244. this.showIndex = 4;
  245. this.errorInfo = "网络异常,请稍后退出重试!";
  246. }
  247. },
  248. websocketMess() {
  249. console.log('测试')
  250. this.websocket.onmessage = e => {
  251. let res = JSON.parse(e.data);
  252. // let res = re.data;
  253. console.log('res',res)
  254. if(res.channel == 'queue/join'){
  255. if(res.data.type == 2){
  256. this.queueConfig = res.data.queueConfig
  257. this.lineUpList = res.data.patientQueueList.data
  258. this.receivingPatient = res.data.receivingPatient
  259. this.waitDoctorList = res.data.waitDoctorList
  260. this.upPatientList = res.data.upPatientList
  261. this.count = res.data.patientQueueList.count
  262. // this.lineUpList.map(item => {
  263. // item.create_time = moment(item.create_time * 1000).format('HH:mm:ss')
  264. // // item.start_time = moment(item.start_time * 1000).format('HH:mm')
  265. // })
  266. }
  267. }else if(res.channel == 'queue/queuelist'){
  268. this.lineUpList = res.data.patientQueueList.data
  269. this.count = res.data.patientQueueList.count
  270. // this.lineUpList.map(item => {
  271. // item.create_time = moment(item.create_time * 1000).format('HH:mm:ss')
  272. // // item.start_time = moment(item.start_time * 1000).format('HH:mm')
  273. // if(item.start_time != null){
  274. // item.start_time = moment(item.start_time * 1000).format('HH:mm:ss')
  275. // }
  276. // if(item.status == 5 || item.end_time){
  277. // item.end_time = moment(item.end_time * 1000).format('HH:mm:ss')
  278. // }
  279. // })
  280. }else if(res.channel == 'patientCallInfo'){
  281. console.log(999999999999,res.data)
  282. let second = res.data.second
  283. let newType = res.data.type
  284. console.log('执行几次',this.voiceNum)
  285. if(this.voice == true){
  286. this.patient_id = res.data.patientInfo.patient_id
  287. this.voice = false
  288. // let time1 = null
  289. this.voicePrompt(res.data.callVolUrl)
  290. this.voiceTime = setInterval(() => {
  291. let num = null
  292. if(res.data.patientInfo.status == 2){
  293. num = parseInt(this.queueConfig.jzdcbbcs)
  294. }else if(res.data.patientInfo.status == 3){
  295. num = parseInt(this.queueConfig.sjdcbbcs)
  296. }
  297. if(this.voiceNum < num){
  298. this.voiceNum++
  299. this.voicePrompt(res.data.callVolUrl)
  300. }else{
  301. this.voiceNum = 1;
  302. this.voice = true
  303. let obj = {
  304. cmd: "queue/callreturn",
  305. data: {patient_id:this.patient_id,type:newType},
  306. };
  307. this.websocketSend(obj)
  308. clearInterval(this.voiceTime);
  309. this.voiceTime = null
  310. }
  311. },1000 * second)
  312. }else {
  313. // this.$message({
  314. // message: '警告哦,这是一条警告消息',
  315. // type: 'warning'
  316. // });
  317. }
  318. }else if(res.channel == 'updateCallList'){
  319. this.receivingPatient = res.data.queue_list
  320. }else if(res.channel == 'updateWaitCallList'){
  321. this.waitDoctorList = res.data.queue_list
  322. }else if(res.channel == 'updateUpCallList'){
  323. this.upPatientList = res.data.queue_list
  324. }
  325. // else if(res.channel == "patientQueueInfo"){
  326. // this.queueInfo = res.data.queueInfo
  327. // let obj = {
  328. // cmd: "queue/queuelist",
  329. // data: {page:1,size:10}
  330. // };
  331. // this.websocketSend(obj)
  332. // }
  333. }
  334. },
  335. updateTime() {
  336. var cd = new Date();
  337. var week = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'];
  338. this.time = this.zeroPadding(cd.getHours(), 2) + ':' + this.zeroPadding(cd.getMinutes(), 2) + ':' + this.zeroPadding(cd.getSeconds(), 2) + ' (' + week[cd.getDay()] + ")";
  339. this.newdate = this.zeroPadding(cd.getFullYear(), 4) + '-' + this.zeroPadding(cd.getMonth() + 1, 2) + '-' + this.zeroPadding(cd.getDate(), 2);
  340. },
  341. zeroPadding(num, digit) {
  342. var zero = '';
  343. for (var i = 0; i < digit; i++) {
  344. zero += '0';
  345. }
  346. return (zero + num).slice(-digit);
  347. },
  348. // 进入全屏
  349. fullscreenboard: function() {
  350. sessionStorage.setItem('lineUpKey',1);
  351. this.dialogTableVisible = true;
  352. // let routeData = this.$router.resolve({ path: '/fullscreenboard' })
  353. // window.open(routeData.href, '_blank')
  354. },
  355. outfullscreenboard: function() {
  356. this.dialogTableVisible = false;
  357. this.showSetting = false;
  358. },
  359. togglefullscreen: function() {
  360. if (!screenfull.enabled) {
  361. this.$message({
  362. message: "你的浏览器不支持",
  363. type: "warning"
  364. });
  365. return false;
  366. }
  367. screenfull.toggle();
  368. this.showSetting = false;
  369. },
  370. openSetting() {
  371. if (this.showSetting == false) {
  372. this.showSetting = true;
  373. } else {
  374. this.showSetting = false;
  375. }
  376. },
  377. getDates(time){
  378. return moment(time * 1000).format('HH:mm:ss')
  379. },
  380. getlist(){
  381. var params = {
  382. limit:this.limit,
  383. page:this.page,
  384. start_time:"2023-07-03",
  385. end_time:"2023-07-09"
  386. }
  387. getContextScheduleList(params).then(response=>{
  388. if(response.data.state ==1){
  389. var schedule = response.data.data.schedule
  390. this.lineUpList = schedule
  391. var list = response.data.data.list
  392. console.log("list232322323",list)
  393. for(let i=0;i<schedule.length;i++){
  394. if(schedule[i].mode_id ==1){
  395. schedule[i].mode_name = "HD"
  396. }
  397. if(schedule[i].mode_id ==2){
  398. schedule[i].mode_name = "HDF"
  399. }
  400. if(schedule[i].mode_id ==3){
  401. schedule[i].mode_name = "HD+HP"
  402. }
  403. if(schedule[i].mode_id ==4){
  404. schedule[i].mode_name = "HP"
  405. }
  406. if(schedule[i].mode_id ==5){
  407. schedule[i].mode_name = "HF"
  408. }
  409. if(schedule[i].mode_id ==6){
  410. schedule[i].mode_name = "SCUF"
  411. }
  412. if(schedule[i].mode_id ==7){
  413. schedule[i].mode_name = "IUF"
  414. }
  415. if(schedule[i].mode_id ==8){
  416. schedule[i].mode_name = "HFHD"
  417. }
  418. if(schedule[i].mode_id ==9){
  419. schedule[i].mode_name = "HFHD+HP"
  420. }
  421. if(schedule[i].mode_id ==10){
  422. schedule[i].mode_name = "PHF"
  423. }
  424. if(schedule[i].mode_id ==11){
  425. schedule[i].mode_name = "HFR"
  426. }
  427. if(schedule[i].mode_id ==12){
  428. schedule[i].mode_name = "HDF+HP"
  429. }
  430. if(schedule[i].mode_id ==13){
  431. schedule[i].mode_name = "CRRT"
  432. }
  433. if(schedule[i].mode_id ==14){
  434. schedule[i].mode_name = "腹水回输"
  435. }
  436. if(schedule[i].mode_id ==15){
  437. schedule[i].mode_name = "IUF+HD"
  438. }
  439. if(schedule[i].mode_id ==19){
  440. schedule[i].mode_name = "IUF+HD"
  441. }
  442. if(schedule[i].mode_id ==20){
  443. schedule[i].mode_name = "UF"
  444. }
  445. if(schedule[i].mode_id ==21){
  446. schedule[i].mode_name = "HD+"
  447. }
  448. if(schedule[i].mode_id ==22){
  449. schedule[i].mode_name = "血浆胆红素吸附+HDF"
  450. }
  451. if(schedule[i].mode_id ==23){
  452. schedule[i].mode_name = "血浆胆红素吸附"
  453. }
  454. if(schedule[i].mode_id ==24){
  455. schedule[i].mode_name = "I-HDF"
  456. }
  457. if(schedule[i].mode_id ==25){
  458. schedule[i].mode_name = "HD高通"
  459. }
  460. if(schedule[i].mode_id ==26){
  461. schedule[i].mode_name = "CVVH"
  462. }
  463. if(schedule[i].mode_id ==27){
  464. schedule[i].mode_name = "CVVHD"
  465. }
  466. if(schedule[i].mode_id ==28){
  467. schedule[i].mode_name = "CVVHDF"
  468. }
  469. if(schedule[i].mode_id ==29){
  470. schedule[i].mode_name = "PE"
  471. }
  472. if(schedule[i].mode_id ==30){
  473. schedule[i].mode_name = "血浆胆红素吸附+HP"
  474. }
  475. if(schedule[i].mode_id ==31){
  476. schedule[i].mode_name = "HPD"
  477. }
  478. if(schedule[i].mode_id ==32){
  479. schedule[i].mode_name = "HDP"
  480. }
  481. if(schedule[i].schedule_week ==1){
  482. schedule[i].schedule_week_name = "周一"
  483. }
  484. if(schedule[i].schedule_week ==2){
  485. schedule[i].schedule_week_name = "周二"
  486. }
  487. if(schedule[i].schedule_week ==3){
  488. schedule[i].schedule_week_name = "周三"
  489. }
  490. if(schedule[i].schedule_week ==4){
  491. schedule[i].schedule_week_name = "周四"
  492. }
  493. if(schedule[i].schedule_week ==5){
  494. schedule[i].schedule_week_name = "周五"
  495. }
  496. if(schedule[i].schedule_week ==6){
  497. schedule[i].schedule_week_name = "周六"
  498. }
  499. if(schedule[i].schedule_week ==7){
  500. schedule[i].schedule_week_name = "周日"
  501. }
  502. if(schedule[i].schedule_type ==1){
  503. schedule[i].schedule_type_name = "上午"
  504. }
  505. if(schedule[i].schedule_type ==2){
  506. schedule[i].schedule_type_name = "下午"
  507. }
  508. if(schedule[i].schedule_type ==3){
  509. schedule[i].schedule_type_name = "晚上"
  510. }
  511. schedule[i].child = []
  512. for(let j=0;j<list.length;j++){
  513. if(schedule[i].patient_id == list[j].patient_id){
  514. schedule[i].child.push(list[j])
  515. }
  516. }
  517. }
  518. console.log("schedule",schedule)
  519. this.schedule = schedule
  520. var total = response.data.data.total
  521. console.log("total+23323223",total)
  522. var patients = response.data.data.patients
  523. console.log("patinets",patients)
  524. this.patientList = patients
  525. this.deviceNumberList = response.data.data.devicenumber
  526. // this.count = response.data.data.devicenumber
  527. }
  528. })
  529. },
  530. getPatientName(patient_id){
  531. var name = ""
  532. for(let i=0;i<this.patientList.length;i++){
  533. if(patient_id == this.patientList[i].id){
  534. name = this.patientList[i].name
  535. }
  536. }
  537. return name
  538. },
  539. getDialysisNo(patient_id){
  540. var dialysis_no = ""
  541. for(let i=0;i<this.patientList.length;i++){
  542. if(patient_id == this.patientList[i].id){
  543. dialysis_no = this.patientList[i].dialysis_no
  544. }
  545. }
  546. return dialysis_no
  547. },
  548. getContent(schedule){
  549. var str = ""
  550. if(schedule!=null && schedule.length >0){
  551. for(let i=0;i<schedule.length;i++){
  552. schedule[i].bed_number = this.getNumberName(schedule[i].bed_id)
  553. if(schedule[i].mode_id ==1){
  554. schedule[i].mode_name = "HD"
  555. }
  556. if(schedule[i].mode_id ==2){
  557. schedule[i].mode_name = "HDF"
  558. }
  559. if(schedule[i].mode_id ==3){
  560. schedule[i].mode_name = "HD+HP"
  561. }
  562. if(schedule[i].mode_id ==4){
  563. schedule[i].mode_name = "HP"
  564. }
  565. if(schedule[i].mode_id ==5){
  566. schedule[i].mode_name = "HF"
  567. }
  568. if(schedule[i].mode_id ==6){
  569. schedule[i].mode_name = "SCUF"
  570. }
  571. if(schedule[i].mode_id ==7){
  572. schedule[i].mode_name = "IUF"
  573. }
  574. if(schedule[i].mode_id ==8){
  575. schedule[i].mode_name = "HFHD"
  576. }
  577. if(schedule[i].mode_id ==9){
  578. schedule[i].mode_name = "HFHD+HP"
  579. }
  580. if(schedule[i].mode_id ==10){
  581. schedule[i].mode_name = "PHF"
  582. }
  583. if(schedule[i].mode_id ==11){
  584. schedule[i].mode_name = "HFR"
  585. }
  586. if(schedule[i].mode_id ==12){
  587. schedule[i].mode_name = "HDF+HP"
  588. }
  589. if(schedule[i].mode_id ==13){
  590. schedule[i].mode_name = "CRRT"
  591. }
  592. if(schedule[i].mode_id ==14){
  593. schedule[i].mode_name = "腹水回输"
  594. }
  595. if(schedule[i].mode_id ==15){
  596. schedule[i].mode_name = "IUF+HD"
  597. }
  598. if(schedule[i].mode_id ==19){
  599. schedule[i].mode_name = "IUF+HD"
  600. }
  601. if(schedule[i].mode_id ==20){
  602. schedule[i].mode_name = "UF"
  603. }
  604. if(schedule[i].mode_id ==21){
  605. schedule[i].mode_name = "HD+"
  606. }
  607. if(schedule[i].mode_id ==22){
  608. schedule[i].mode_name = "血浆胆红素吸附+HDF"
  609. }
  610. if(schedule[i].mode_id ==23){
  611. schedule[i].mode_name = "血浆胆红素吸附"
  612. }
  613. if(schedule[i].mode_id ==24){
  614. schedule[i].mode_name = "I-HDF"
  615. }
  616. if(schedule[i].mode_id ==25){
  617. schedule[i].mode_name = "HD高通"
  618. }
  619. if(schedule[i].mode_id ==26){
  620. schedule[i].mode_name = "CVVH"
  621. }
  622. if(schedule[i].mode_id ==27){
  623. schedule[i].mode_name = "CVVHD"
  624. }
  625. if(schedule[i].mode_id ==28){
  626. schedule[i].mode_name = "CVVHDF"
  627. }
  628. if(schedule[i].mode_id ==29){
  629. schedule[i].mode_name = "PE"
  630. }
  631. if(schedule[i].mode_id ==30){
  632. schedule[i].mode_name = "血浆胆红素吸附+HP"
  633. }
  634. if(schedule[i].mode_id ==31){
  635. schedule[i].mode_name = "HPD"
  636. }
  637. if(schedule[i].mode_id ==32){
  638. schedule[i].mode_name = "HDP"
  639. }
  640. if(schedule[i].schedule_week ==1){
  641. schedule[i].schedule_week_name = "周一"
  642. }
  643. if(schedule[i].schedule_week ==2){
  644. schedule[i].schedule_week_name = "周二"
  645. }
  646. if(schedule[i].schedule_week ==3){
  647. schedule[i].schedule_week_name = "周三"
  648. }
  649. if(schedule[i].schedule_week ==4){
  650. schedule[i].schedule_week_name = "周四"
  651. }
  652. if(schedule[i].schedule_week ==5){
  653. schedule[i].schedule_week_name = "周五"
  654. }
  655. if(schedule[i].schedule_week ==6){
  656. schedule[i].schedule_week_name = "周六"
  657. }
  658. if(schedule[i].schedule_week ==7){
  659. schedule[i].schedule_week_name = "周日"
  660. }
  661. if(schedule[i].schedule_type ==1){
  662. schedule[i].schedule_type_name = "上午"
  663. }
  664. if(schedule[i].schedule_type ==2){
  665. schedule[i].schedule_type_name = "下午"
  666. }
  667. if(schedule[i].schedule_type ==3){
  668. schedule[i].schedule_type_name = "晚上"
  669. }
  670. str += " "+this.getTime(schedule[i].schedule_date)+" "+schedule[i].schedule_week_name + " " +schedule[i].schedule_type_name +" " + schedule[i].mode_name+","
  671. }
  672. }
  673. return str
  674. },
  675. getTime(val) {
  676. if(val < 0){
  677. return ""
  678. }
  679. if(val == ""){
  680. return ""
  681. }else {
  682. return uParseTime(val, '{m}-{d}')
  683. }
  684. },
  685. getNumberName(id){
  686. var number = ""
  687. for(let i=0;i<this.deviceNumberList.length;i++){
  688. if(id == this.deviceNumberList[i].bed_id){
  689. number = this.deviceNumberList[i].bed_number
  690. }
  691. }
  692. return number
  693. }
  694. }
  695. }
  696. </script>
  697. <style lang="scss" scoped>
  698. .main-contain{
  699. height: 100%;
  700. }
  701. .page_lineUp{
  702. height: 100%;
  703. .lineUpTitle{
  704. height: 4vh;
  705. background: #1A82BF;
  706. display: flex;
  707. justify-content: space-between;
  708. align-items: center;
  709. padding: 0 20px;
  710. color:#fff;
  711. font-size: 2vh;
  712. font-weight: 600;
  713. }
  714. .lineUpMain{
  715. background: linear-gradient(0deg, #76ECEC, #479CD2);
  716. height: 95%;
  717. padding:10px;
  718. }
  719. .lineUpMainLeft{
  720. height: 8%;
  721. border-radius: 15px;
  722. display: flex;
  723. flex-direction: column;
  724. }
  725. .lineUpMainLeftTitle{
  726. // display: flex;
  727. // justify-content: space-between;
  728. align-items: center;
  729. color:#fff;
  730. font-size: 4vh;
  731. font-weight: 600;
  732. height:7vh;
  733. line-height: 7vh;
  734. background: #1A82BF;
  735. border-radius: 15px 15px 0 0;
  736. >p{
  737. display: inline-block;
  738. text-align: center;
  739. }
  740. }
  741. .lineUpList{
  742. font-size: 3vh;
  743. font-weight: 600;
  744. flex: 1;
  745. >div:nth-child(odd){
  746. background: #F9FDFF;
  747. }
  748. >div:nth-child(even){
  749. background: #CCEBFF;
  750. }
  751. >div:last-child{
  752. border-radius: 0 0 15px 15px;
  753. }
  754. .lineUpListOne{
  755. height:16%;
  756. padding: 0.5%;
  757. display: flex;
  758. justify-content: space-between;
  759. align-items: center;
  760. color:#1C6895;
  761. >p{
  762. width:25%;
  763. text-align: center;
  764. display: inline-block;
  765. padding: 5px 0px;
  766. }
  767. }
  768. }
  769. .callingBox{
  770. height: 39%;
  771. margin-top: 10px;
  772. display: flex;
  773. justify-content: space-between;
  774. .callingBoxLeft{
  775. width: 49.5%;
  776. height: 100%;
  777. display: flex;
  778. justify-content: space-between;
  779. }
  780. .callingBoxLeft1{
  781. width: 100%;
  782. height: 100%;
  783. display: flex;
  784. justify-content: space-between;
  785. }
  786. .callingTitle{
  787. width: 10vh;
  788. height: 100%;
  789. border-radius: 15px 0 0 15px;
  790. font-size: 5vh;
  791. font-weight:600;
  792. text-align: center;
  793. color: #fff;
  794. background: #1A82BF;
  795. display: flex;
  796. align-items: center;
  797. margin-right: 5px;
  798. }
  799. .newCallingTitle{
  800. background: #1aa680;
  801. }
  802. .callingTop{
  803. height: 49.5%;
  804. border-radius: 0 15px 0 0;
  805. background: #F9FDFF;
  806. display: flex;
  807. justify-content: space-between;
  808. .callingTopTip{
  809. width: 10vh;
  810. height: 100%;
  811. color: #fff;
  812. font-size: 3vh;
  813. font-weight: 600;
  814. background: #1A82BF;
  815. display: flex;
  816. align-items: center;
  817. }
  818. .newCallingTopTip{
  819. background: #1aa680;
  820. }
  821. .callingContent{
  822. flex: 1;
  823. display: flex;
  824. flex-direction: column;
  825. font-size: 4vh;
  826. color:#1C6895;
  827. font-weight: 600;
  828. padding-left: 20px;
  829. justify-content: space-around;
  830. >p{
  831. width:100%;
  832. text-align: left;
  833. line-height: 50px;
  834. }
  835. div>:first-child{
  836. margin-bottom: 10px;
  837. }
  838. }
  839. .newCallingContent{
  840. color:#1aa680;
  841. }
  842. }
  843. }
  844. }
  845. #fullscreenbroad {
  846. position: fixed;
  847. top: 0;
  848. right: 0;
  849. bottom: 0;
  850. left: 0;
  851. overflow: auto;
  852. margin: 0;
  853. background: #fff;
  854. padding: 20px;
  855. z-index:5000;
  856. height: 100%;
  857. }
  858. #fullscreenbroad #fullscreenbroad-setting {
  859. float: right;
  860. }
  861. #fullscreenbroad .el-button + .el-button {
  862. margin-left: 0px;
  863. }
  864. #fullscreenbroad .el-button:nth-child(1) {
  865. margin-left: 10px;
  866. }
  867. #fullscreenbroad .el-button:nth-child(2) {
  868. margin-left: 10px;
  869. }
  870. .fullRow{
  871. margin-bottom: 10px;
  872. }
  873. </style>