瀏覽代碼

2023-03-14 fix

1. fix pv && wswind -> pv || wswind
moccus 1 年之前
父節點
當前提交
0e94157f59
共有 2 個文件被更改,包括 96 次插入887 次删除
  1. 91 885
      src/components/check/areaCard.vue
  2. 5 2
      src/components/control/controlAllArea.vue

File diff suppressed because it is too large
+ 91 - 885
src/components/check/areaCard.vue


+ 5 - 2
src/components/control/controlAllArea.vue

@@ -853,8 +853,11 @@ export default {
         let wswind = JSON.parse(window.sessionStorage.getItem('windSbq'))
         let pv = JSON.parse(window.sessionStorage.getItem('pvSbq'))
         let msg = {}
-        if (wswind && pv) {
-            msg = {...wswind, ...pv}
+        if (wswind || pv) {
+            msg = {...wswind}
+            if(pv){
+              msg = {...msg, ...pv}
+            }
             this.windturbinelist = msg;
             this.$store.commit("windturbinelist", msg);
             this.dataList = [];