Browse Source

修改首页明细矩阵风速和功率的位置

darker 3 years ago
parent
commit
1a282216bb
1 changed files with 18 additions and 8 deletions
  1. 18 8
      src/views/LightMatrix3/LightMatrix3.vue

+ 18 - 8
src/views/LightMatrix3/LightMatrix3.vue

@@ -116,6 +116,7 @@
                   </div>
                 </div>
                 <div class="card-right">
+                  <!-- 风速 -->
                   <div class="num">
                     <i
                       class="svg-icon svg-icon-sm"
@@ -125,10 +126,13 @@
                           : 'svg-icon-white'
                       "
                     >
-                      <SvgIcon svgid="svg-P"></SvgIcon>
+                      <!-- <SvgIcon svgid="svg-P"></SvgIcon> -->
+                      <SvgIcon svgid="svg-W"></SvgIcon>
                     </i>
                     <span>{{ cItem.fs }}</span>
                   </div>
+
+                  <!-- 功率 -->
                   <div class="num">
                     <i
                       class="svg-icon svg-icon-sm"
@@ -138,10 +142,13 @@
                           : 'svg-icon-white'
                       "
                     >
-                      <SvgIcon svgid="svg-W"></SvgIcon>
+                      <!-- <SvgIcon svgid="svg-W"></SvgIcon> -->
+                      <SvgIcon svgid="svg-P"></SvgIcon>
                     </i>
                     <span>{{ cItem.gl }}</span>
                   </div>
+
+                  <!-- 转数 -->
                   <div class="num">
                     <i
                       class="svg-icon svg-icon-sm"
@@ -186,6 +193,8 @@ export default {
     return {
       timmer: null, // 遮罩开关
       sourceMap: {}, // 核心数据
+      fillCategory: null, // 过滤条件
+      fillFjzt: null, // 过滤条件
       mapping: {
         green: "svg-standby",
         blue: "svg-normal-power",
@@ -425,6 +434,7 @@ export default {
         method: "POST",
         subUrl: "matrix/matrixDetialPush",
         success(res) {
+          console.log("resMap:", res);
           if (res.data) {
             let sourceMap = res.data;
             for (let key in sourceMap) {
@@ -446,11 +456,11 @@ export default {
         },
       });
     },
-	goDetails(item) {
-	  this.$router.push({
-	    path: `/monitor/windsite/info/${item.wpId}/${item.wtId}`,
-	  });
-	},
+    goDetails(item) {
+      this.$router.push({
+        path: `/monitor/windsite/info/${item.wpId}/${item.wtId}`,
+      });
+    },
   },
 
   created() {
@@ -843,7 +853,7 @@ export default {
       }
 
       .card {
-		  cursor: pointer;
+        cursor: pointer;
         margin-right: 4px;
         margin-top: 4px;
         flex: 1 0 118px;