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

Contextowner.vue 32KB

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