beforeDialysisCalling.vue 2.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <template>
  2. <div class="page_beforeDialysisCalling">
  3. <div class="cell clearfix">
  4. <label class="title"><span class="name">叫号状态</span> : </label>
  5. <div class="time ">
  6. <ul class="">
  7. <li v-for="option in patient_state" :key="option.value" @click="handleStateChange(option.value)" :class="patientStateVal == option.value ? 'active' : ''" >{{option.label}}
  8. </li>
  9. </ul>
  10. </div>
  11. </div>
  12. <div style="display:flex;justify-content: space-between;">
  13. <div class="callingArea">
  14. <waiting-called v-if="patientStateVal == 0"></waiting-called>
  15. <called v-if="patientStateVal == 1"></called>
  16. </div>
  17. <div class="nowCalling" v-if="patientStateVal == 0">
  18. <p class="nowCallingTitle">当前叫号</p>
  19. <p class="nowCallingName">李小明</p>
  20. <p class="nowCallingTime">签到时间:07:20</p>
  21. <p class="nowCallingTime">下一位:张三</p>
  22. <el-button style="margin: 30px 0 20px 0;">重新叫号</el-button>
  23. <el-button type="primary" style="margin-left:0;">&ensp;&ensp;叫号&ensp;&ensp;</el-button>
  24. </div>
  25. </div>
  26. </div>
  27. </template>
  28. <script>
  29. import waitingCalled from './waitingCalled'
  30. import called from './called'
  31. export default {
  32. components:{
  33. waitingCalled,
  34. called
  35. },
  36. data(){
  37. return{
  38. patient_state:[
  39. {value: 0,label: '待叫号'},
  40. {value: 1,label: '已叫号'},
  41. ],
  42. patientStateVal: 0,
  43. }
  44. },
  45. methods:{
  46. handleStateChange: function(index) {
  47. this.patientStateVal = index
  48. },
  49. }
  50. }
  51. </script>
  52. <style lang="scss" scoped>
  53. .callingArea{
  54. display: flex;
  55. flex-wrap: wrap;
  56. width: 88%;
  57. // @media only screen and (max-width: 1340px) {
  58. // width:750px;
  59. // }
  60. // @media only screen and (min-width: 415px) and (max-width: 767px) {
  61. // }
  62. }
  63. .nowCalling{
  64. height: 313px;
  65. border: 1px solid #e5e5ee;
  66. // flex: 1;
  67. width: 12%;
  68. text-align: center;
  69. .nowCallingTitle{
  70. font-size: 20px;
  71. font-weight: 600;
  72. margin-top: 20px;
  73. text-align: center;
  74. }
  75. .nowCallingName{
  76. color: #338AFB;
  77. font-size: 18px;
  78. margin-top: 10px;
  79. font-weight: 600;
  80. }
  81. .nowCallingTime{
  82. font-size: 16px;
  83. margin-top: 30px;
  84. }
  85. }
  86. </style>