|
@@ -1,91 +1,97 @@
|
|
|
/* 风机矩阵小卡片 */
|
|
|
<template>
|
|
|
- <div :class="cardStyle">
|
|
|
- <el-row>
|
|
|
- <el-col>
|
|
|
- <div :class="leftStyle">
|
|
|
- <el-row>
|
|
|
- <div :class="titleStyle">G</div>
|
|
|
- </el-row>
|
|
|
- <el-row>
|
|
|
- <div :class="titleStyle">223</div>
|
|
|
- </el-row>
|
|
|
- </div>
|
|
|
- </el-col>
|
|
|
- <el-col>
|
|
|
-
|
|
|
- <div :class="rightStyle">
|
|
|
- <el-row> <div :class="contentStyle">123.54 kw</div></el-row>
|
|
|
- <el-row> <div :class="contentStyle">8.23 m/s</div></el-row>
|
|
|
- <el-row> <div :class="contentStyle">1234.56 rpm</div></el-row>
|
|
|
+ <div :class="cardStyle">
|
|
|
+ <el-row>
|
|
|
+ <el-col span="12">
|
|
|
+ <div :class="leftStyle">
|
|
|
+ <el-row>
|
|
|
+ <div :class="titleStyle">SG</div>
|
|
|
+ </el-row>
|
|
|
+ <el-row>
|
|
|
+ <div :class="titleStyle">223</div>
|
|
|
+ </el-row>
|
|
|
+ </div>
|
|
|
+ </el-col>
|
|
|
+ <el-col span="12">
|
|
|
+ <div :class="rightStyle">
|
|
|
+ <el-row>
|
|
|
+ <div :class="contentStyle">123.54 kw</div>
|
|
|
+ </el-row>
|
|
|
+ <el-row>
|
|
|
+ <div :class="contentStyle">8.23 m/s</div>
|
|
|
+ </el-row>
|
|
|
+ <el-row>
|
|
|
+ <div :class="contentStyle">1234.56 rpm</div>
|
|
|
+ </el-row>
|
|
|
+ </div>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
</div>
|
|
|
-
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- </div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-export default {
|
|
|
- name: "WindturbineMinCard",
|
|
|
- props: {
|
|
|
- status: String,
|
|
|
- },
|
|
|
- computed: {
|
|
|
- cardStyle: function () {
|
|
|
- return "card-style-" + this.status;
|
|
|
- },
|
|
|
- leftStyle: function () {
|
|
|
- return "card-left-style-" + this.status;
|
|
|
- },
|
|
|
- rightStyle: function () {
|
|
|
- return "card-right-style-" + this.status;
|
|
|
- },
|
|
|
- titleStyle: function () {
|
|
|
- return "card-title-style-" + this.status;
|
|
|
- },
|
|
|
- contentStyle:function(){
|
|
|
- return "card-content-style-" + this.status;
|
|
|
- }
|
|
|
- },
|
|
|
-};
|
|
|
+ export default {
|
|
|
+ name: "WindturbineMinCard",
|
|
|
+ props: {
|
|
|
+ status: String,
|
|
|
+ },
|
|
|
+ computed: {
|
|
|
+ cardStyle: function () {
|
|
|
+ return "card-style-" + this.status;
|
|
|
+ },
|
|
|
+ leftStyle: function () {
|
|
|
+ return "card-left-style-" + this.status;
|
|
|
+ },
|
|
|
+ rightStyle: function () {
|
|
|
+ return "card-right-style-" + this.status;
|
|
|
+ },
|
|
|
+ titleStyle: function () {
|
|
|
+ return "card-title-style-" + this.status;
|
|
|
+ },
|
|
|
+ contentStyle: function () {
|
|
|
+ return "card-content-style-" + this.status;
|
|
|
+ }
|
|
|
+ },
|
|
|
+ };
|
|
|
</script>
|
|
|
<style scoped>
|
|
|
-.card-style-1 {
|
|
|
- border: 2px solid #4952a6;
|
|
|
- /* width: 130px;
|
|
|
- height: 70px; */
|
|
|
- background-color: rgba(73, 82, 166, 0.5);
|
|
|
- display: flex;
|
|
|
- flex-direction: row;
|
|
|
- position: relative;
|
|
|
- box-sizing: border-box;
|
|
|
-}
|
|
|
+ .card-style-1 {
|
|
|
+ position: relative;
|
|
|
+ width: 120px;
|
|
|
+ height: 50px;
|
|
|
+ border: 2px solid #4952a6;
|
|
|
+ background-color: rgba(73, 82, 166, 0.5);
|
|
|
+ box-sizing: border-box;
|
|
|
+ display: inline-block;
|
|
|
+ }
|
|
|
|
|
|
-.card-left-style-1 {
|
|
|
- width: 25px;
|
|
|
- height: 41px;
|
|
|
- background-color: rgba(73, 82, 166, 0.7);
|
|
|
- position: relative;
|
|
|
- box-sizing: border-box;
|
|
|
- margin: 3px;
|
|
|
- display: inline-block;
|
|
|
-}
|
|
|
+ .card-left-style-1 {
|
|
|
+ position: relative;
|
|
|
+ width: 25px;
|
|
|
+ height: 41px;
|
|
|
+ background-color: rgba(73, 82, 166, 0.7);
|
|
|
+ box-sizing: border-box;
|
|
|
+ margin: 3px;
|
|
|
+ display: inline-block;
|
|
|
+ }
|
|
|
|
|
|
-.card-right-style-1 {
|
|
|
- height: 100%;
|
|
|
- width: 80px;
|
|
|
- border-left: 2px dashed #4952a6;
|
|
|
- position: relative;
|
|
|
- box-sizing: border-box;
|
|
|
- display: inline-block;
|
|
|
-}
|
|
|
+ .card-right-style-1 {
|
|
|
+ position: relative;
|
|
|
+ width: calc(120px - 4px - 6px - 25px);
|
|
|
+ height: calc(50px - 2px);
|
|
|
+ border-left: 2px dashed #4952a6;
|
|
|
+ box-sizing: border-box;
|
|
|
+ display: inline-block;
|
|
|
+ }
|
|
|
|
|
|
-.card-title-style-1 {
|
|
|
- font-size: small;
|
|
|
-}
|
|
|
+ .card-title-style-1 {
|
|
|
+ font-size: 10px;
|
|
|
+ text-align: center;
|
|
|
+ }
|
|
|
|
|
|
-.card-content-style-1{
|
|
|
- font-size: 5px;
|
|
|
-}
|
|
|
-</style>
|
|
|
+ .card-content-style-1 {
|
|
|
+ width: 100%;
|
|
|
+ text-align: right;
|
|
|
+ font-size: 5px;
|
|
|
+ }
|
|
|
+</style>
|