WindturbineMinCard.vue 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. /* 风机矩阵小卡片 */
  2. <template>
  3. <div :class="cardStyle">
  4. <el-row>
  5. <el-col>
  6. <div :class="leftStyle">
  7. <el-row>
  8. <div :class="titleStyle">G</div>
  9. </el-row>
  10. <el-row>
  11. <div :class="titleStyle">223</div>
  12. </el-row>
  13. </div>
  14. </el-col>
  15. <el-col>
  16. <div :class="rightStyle">
  17. <el-row> <div :class="contentStyle">123.54 kw</div></el-row>
  18. <el-row> <div :class="contentStyle">8.23 m/s</div></el-row>
  19. <el-row> <div :class="contentStyle">1234.56 rpm</div></el-row>
  20. </div>
  21. </el-col>
  22. </el-row>
  23. </div>
  24. </template>
  25. <script>
  26. export default {
  27. name: "WindturbineMinCard",
  28. props: {
  29. status: String,
  30. },
  31. computed: {
  32. cardStyle: function () {
  33. return "card-style-" + this.status;
  34. },
  35. leftStyle: function () {
  36. return "card-left-style-" + this.status;
  37. },
  38. rightStyle: function () {
  39. return "card-right-style-" + this.status;
  40. },
  41. titleStyle: function () {
  42. return "card-title-style-" + this.status;
  43. },
  44. contentStyle:function(){
  45. return "card-content-style-" + this.status;
  46. }
  47. },
  48. };
  49. </script>
  50. <style scoped>
  51. .card-style-1 {
  52. border: 2px solid #4952a6;
  53. /* width: 130px;
  54. height: 70px; */
  55. background-color: rgba(73, 82, 166, 0.5);
  56. display: flex;
  57. flex-direction: row;
  58. position: relative;
  59. box-sizing: border-box;
  60. }
  61. .card-left-style-1 {
  62. width: 25px;
  63. height: 41px;
  64. background-color: rgba(73, 82, 166, 0.7);
  65. position: relative;
  66. box-sizing: border-box;
  67. margin: 3px;
  68. display: inline-block;
  69. }
  70. .card-right-style-1 {
  71. height: 100%;
  72. width: 80px;
  73. border-left: 2px dashed #4952a6;
  74. position: relative;
  75. box-sizing: border-box;
  76. display: inline-block;
  77. }
  78. .card-title-style-1 {
  79. font-size: small;
  80. }
  81. .card-content-style-1{
  82. font-size: 5px;
  83. }
  84. </style>