Bladeren bron

光伏矩阵点击跳转改

mw_666 3 jaren geleden
bovenliggende
commit
f50df63865
1 gewijzigde bestanden met toevoegingen van 9 en 3 verwijderingen
  1. 9 3
      src/views/WindSite/pages/Home/light-matrix.vue

+ 9 - 3
src/views/WindSite/pages/Home/light-matrix.vue

@@ -53,9 +53,15 @@ export default {
 
     // 页面跳转
     jumpUrl(wpId, wtId){
-      this.$router.push({
-        path: `/monitor/windsite/info/${wpId}/${wtId}`
-      });
+	  if (wpId.indexOf("FDC") !== -1) {
+	    this.$router.push({
+	      path: `/monitor/windsite/info/${wpId}/${wtId}`
+	    });
+	  } else {
+	    this.$router.push({
+	      path: `../../windsite/inverter-info/${wpId}/${wtId}`
+	    });
+	  }
     }
   },
   // 生命周期钩子