瀏覽代碼

光伏矩阵点击跳转改

mw_666 3 年之前
父節點
當前提交
f50df63865
共有 1 個文件被更改,包括 9 次插入3 次删除
  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}`
+	    });
+	  }
     }
   },
   // 生命周期钩子