infoPage.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. <template>
  2. <div class="onDutyConfigurationInfo">
  3. <div class="onDutyConfigurationInfo-title-box">
  4. <p>{{propsData.time}}巡查记录</p>
  5. <p class="add-button-one-90" @click="outButton">返回</p>
  6. </div>
  7. <div class="list-max-big-box scrollbar-box">
  8. <div class="list-max-big-title-box">
  9. <div>
  10. <p :class="buttonType == 1?'text-p':''" @click="buttonClick(1)">正常记录</p>
  11. <p :class="buttonType == 1?'color-p':''"></p>
  12. </div>
  13. <div>
  14. <p :class="buttonType == 2?'text-p':''" @click="buttonClick(2)">异常记录</p>
  15. <p :class="buttonType == 2?'color-p':''"></p>
  16. </div>
  17. </div>
  18. <normal-page v-if="buttonType==1" :propsPageData="propsData"></normal-page>
  19. <anomaly-page v-if="buttonType==2" :propsPageData="propsData"></anomaly-page>
  20. </div>
  21. </div>
  22. </template>
  23. <script>
  24. import normalPage from "./normalPage.vue";
  25. import anomalyPage from "./anomalyPage.vue";
  26. export default {
  27. name: 'infoPage',
  28. components: {
  29. normalPage,
  30. anomalyPage
  31. },
  32. props:{
  33. propsData:{},
  34. },
  35. data(){
  36. return{
  37. buttonType:1,
  38. }
  39. },
  40. created(){
  41. },
  42. mounted(){
  43. },
  44. methods:{
  45. //页面切换按钮
  46. buttonClick(type){
  47. if(this.buttonType != type){
  48. this.$set(this,'buttonType',type)
  49. }
  50. },
  51. //返回按钮
  52. outButton(){
  53. this.$parent.goPage('index')
  54. },
  55. }
  56. }
  57. </script>
  58. <style scoped lang="scss">
  59. .onDutyConfigurationInfo{
  60. flex:1;
  61. display: flex;
  62. flex-direction: column;
  63. overflow: hidden;
  64. *{
  65. margin:0;
  66. padding:0;
  67. }
  68. .onDutyConfigurationInfo-title-box{
  69. display: flex;
  70. height: 80px;
  71. border-bottom:1px solid #E0E0E0;
  72. p:nth-child(1){
  73. flex:1;
  74. line-height:80px;
  75. margin-left:20px;
  76. color:#0045AF;
  77. font-size:16px;
  78. font-weight:900;
  79. }
  80. p:nth-child(2){
  81. margin:20px;
  82. }
  83. }
  84. .list-max-big-box{
  85. flex:1;
  86. display: flex;
  87. flex-direction: column;
  88. padding:0 20px 10px;
  89. .list-max-big-title-box{
  90. display: flex;
  91. div{
  92. overflow: hidden;
  93. margin-right:48px;
  94. padding:15px 0 19px;
  95. p:nth-child(1){
  96. cursor: pointer;
  97. width: 78px;
  98. height: 42px;
  99. font-size: 16px;
  100. line-height: 42px;
  101. text-align: center;
  102. }
  103. p:nth-child(2){
  104. margin:0 auto;
  105. width: 55px;
  106. height: 4px;
  107. }
  108. .text-p{
  109. color: #0045AF;
  110. }
  111. .color-p{
  112. background: #0045AF;
  113. border-radius: 20px 20px 20px 20px;
  114. }
  115. }
  116. }
  117. }
  118. }
  119. </style>
  120. <style lang="scss">
  121. .onDutyConfigurationInfo{
  122. .el-table__empty-text{
  123. font-size: 12px;
  124. background: none;
  125. color:#909399;
  126. }
  127. }
  128. </style>