CenterPage.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. /* 中间页面 */
  2. <template>
  3. <div class="center-bar">
  4. <el-row :gutter="10">
  5. <el-col :span="8">
  6. <ProblemArea ref="problempg" :problems="problems" />
  7. </el-col>
  8. <el-col :span="8">
  9. <el-row>
  10. <el-col :span="24">
  11. <ControlArea />
  12. </el-col>
  13. </el-row>
  14. <el-row>
  15. <el-col :span="24">
  16. <CheckArea />
  17. </el-col>
  18. </el-row>
  19. </el-col>
  20. <el-col :span="8">
  21. <el-row>
  22. <el-col :span="24">
  23. <RecommendedArea />
  24. </el-col>
  25. </el-row>
  26. <el-row>
  27. <el-col :span="24">
  28. <LabelArea />
  29. </el-col>
  30. </el-row>
  31. <el-row>
  32. <el-col :span="24">
  33. <AlarmArea />
  34. </el-col>
  35. </el-row>
  36. </el-col>
  37. </el-row>
  38. <WindturbineDetailPages v-model="dialogVisible"></WindturbineDetailPages>
  39. </div>
  40. </template>
  41. <script>
  42. import AlarmArea from "./area/AlarmArea.vue";
  43. import CheckArea from "./area/CheckArea.vue";
  44. import ControlArea from "./area/ControlArea.vue";
  45. import LabelArea from "./area/LabelArea.vue";
  46. import ProblemArea from "./area/ProblemArea.vue";
  47. import RecommendedArea from "./area/RecommendedArea.vue";
  48. import WindturbineDetailPages from "./area/windturbine/WindturbineDetailPages.vue"
  49. /* import wtbdp from './area/wtbDetailPages'; */
  50. export default {
  51. data(){
  52. return{
  53. dialogVisible:false
  54. }
  55. },
  56. mounted(){
  57. /* var self=this;
  58. wtbdp.$on("evnt",function(){
  59. self.dialogVisible=true;
  60. }); */
  61. },
  62. components: {
  63. AlarmArea,
  64. CheckArea,
  65. ControlArea,
  66. LabelArea,
  67. ProblemArea,
  68. RecommendedArea,
  69. WindturbineDetailPages
  70. },
  71. props: {
  72. /* temp: {
  73. type: Onject | Array,
  74. default: [],
  75. }, */
  76. },
  77. created: function () {
  78. },
  79. computed: {
  80. problems: {
  81. get: function () {
  82. return this.datas;
  83. },
  84. set: function (params) {
  85. this.datas = params;
  86. this.$refs.problempg.problems = params;
  87. },
  88. },
  89. },
  90. methods: {
  91. },
  92. watch: {
  93. /* temp(res) {
  94. this.mapData = res;
  95. }, */
  96. },
  97. };
  98. </script>
  99. <style scoped>
  100. .center-bar {
  101. position: relative;
  102. box-sizing: border-box;
  103. height: 90vh;
  104. background-color: #000000;
  105. padding-top: 10px;
  106. padding-left: 5px;
  107. padding-right: 5px;
  108. padding-bottom: 5px;
  109. margin-top: 0;
  110. margin-right: 0;
  111. margin-bottom: 3px;
  112. margin-left: 0;
  113. display: flex;
  114. flex-direction: column;
  115. }
  116. </style>