index.vue 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <template>
  2. <div class="common-wrap">
  3. <el-card class="content-z">
  4. <a-tabs v-model="activeKey" class="sjdr">
  5. <a-tab-pane
  6. v-for="item in tabs"
  7. :key="item.name"
  8. :tab="item.title"
  9. >
  10. <component
  11. :is="item.name"
  12. v-if="activeKey === item.name"
  13. />
  14. </a-tab-pane>
  15. </a-tabs>
  16. </el-card>
  17. </div>
  18. </template>
  19. <script>
  20. import Ycxx from './ycxn/index.vue'
  21. import Syjhdxqk from './syjhdxqk/index.vue'
  22. import Tab3 from './tab3.vue'
  23. import Dlyd from './dlydts/index.vue'
  24. import Tab6 from './tab6.vue'
  25. import QbDl from './qb-dl/index.vue'
  26. export default {
  27. name: 'ScreenSjdr',
  28. components: {
  29. Ycxx,
  30. Tab3,
  31. Syjhdxqk,
  32. Dlyd,
  33. Tab6,
  34. QbDl
  35. },
  36. data() {
  37. return {
  38. activeKey: 'Ycxx',
  39. tabs: [{
  40. title: '异常信息',
  41. name: 'Ycxx'
  42. },
  43. {
  44. title: '变配电所检修兑现情况',
  45. name: 'Tab3'
  46. },
  47. {
  48. title: '实验计划兑现情况',
  49. name: 'Syjhdxqk'
  50. },
  51. {
  52. title: '电力远动调试',
  53. name: 'Dlyd'
  54. },
  55. {
  56. title: '牵变、电力设备巡检兑现(本月)',
  57. name: 'QbDl'
  58. }
  59. ]
  60. }
  61. },
  62. computed: {},
  63. methods: {}
  64. }
  65. </script>
  66. <style scoped lang="scss">
  67. .el-card {
  68. margin: 0 0 !important;
  69. }
  70. ::v-deep {
  71. .el-card {
  72. margin: 0 0 !important;
  73. padding: 0 12px;
  74. border: none !important;
  75. }
  76. .el-card__body {
  77. padding: 0 0 !important;
  78. }
  79. .right-upload-btn {
  80. position: absolute;
  81. right: 10px;
  82. z-index: 10;
  83. top: 0;
  84. }
  85. }
  86. </style>