index.vue 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. <template>
  2. <div class="temperatureMonitoring">
  3. <div class="form-wrapper">
  4. <div class="search-wrapper">
  5. <div class="search-item">
  6. <span class="label">场站:</span>
  7. <div class="search-content">
  8. <el-select
  9. v-model="stationId"
  10. clearable
  11. size="mini"
  12. placeholder="全部"
  13. popper-class="select"
  14. @change="getWindturbineList"
  15. >
  16. <el-option
  17. v-for="item in stationList"
  18. :key="item.id"
  19. :value="item.id"
  20. :label="item.name"
  21. ></el-option>
  22. </el-select>
  23. </div>
  24. </div>
  25. <div class="btns">
  26. <el-button class="buttons" round size="mini">查询</el-button>
  27. </div>
  28. </div>
  29. </div>
  30. <div class="table-wrapper">
  31. <div class="leftContent" :data-type="$store.state.moreSty">
  32. <span>{{ pageTitle }}</span>
  33. </div>
  34. </div>
  35. </div>
  36. </template>
  37. <script>
  38. export default {
  39. name: "temperatureMonitoring",
  40. data() {
  41. return {
  42. pageTitle: "温度监控",
  43. stationId: "",
  44. stationList: "",
  45. }
  46. },
  47. methods: {},
  48. };
  49. </script>
  50. <style scoped lang="less">
  51. .temperatureMonitoring {
  52. height: 100%;
  53. width: 100%;
  54. padding: 0 20px;
  55. padding-bottom: 10px;
  56. .form-wrapper ::v-deep {
  57. display: flex;
  58. flex-direction: column;
  59. padding-top: 10px;
  60. position: relative;
  61. .search-wrapper {
  62. display: flex;
  63. align-items: center;
  64. font-size: 14px;
  65. font-family: Microsoft YaHei;
  66. font-weight: 400;
  67. color: #b3b3b3;
  68. margin-bottom: 10px;
  69. .search-item {
  70. display: flex;
  71. margin-right: 10px;
  72. max-width: 450px;
  73. align-items: center;
  74. .label {
  75. margin-right: 10px;
  76. text-align: right;
  77. white-space: nowrap;
  78. // width: 60px;
  79. }
  80. .search-content {
  81. flex: 1;
  82. }
  83. }
  84. }
  85. .btns {
  86. margin-right: 10px;
  87. }
  88. .buttons {
  89. background-color: rgba(5, 187, 76, 0.2);
  90. border: 1px solid #3b6c53;
  91. color: #b3b3b3;
  92. font-size: 14px;
  93. &:hover {
  94. background-color: rgba(5, 187, 76, 0.5);
  95. color: #ffffff;
  96. }
  97. }
  98. }
  99. .table-wrapper {
  100. height: calc(100% - 43px);
  101. width: 100%;
  102. .leftContent[data-type~="greenSty"] {
  103. background: url("~@/assets/imgs/title_left_bg1.png") no-repeat;
  104. }
  105. .leftContent[data-type~="blueSty"] {
  106. background: url("~@/assets/imgs/title_left_bg.png") no-repeat;
  107. }
  108. .leftContent {
  109. width: 242px;
  110. height: 41px;
  111. display: flex;
  112. align-items: center;
  113. span {
  114. font-size: 16px;
  115. font-family: Microsoft YaHei;
  116. font-weight: 400;
  117. color: #05bb4c;
  118. margin-left: 25px;
  119. }
  120. }
  121. .pagination-wrapper :deep {
  122. text-align: right;
  123. margin-top: 10px;
  124. }
  125. }
  126. }
  127. </style>