浏览代码

修改单位和站点下拉

Ming 4 年之前
父节点
当前提交
d7edcca778

二进制
dist.zip


+ 2 - 2
src/views/index.vue

@@ -146,10 +146,10 @@ export default {
       this.title = title;
       this.name = name;
 
-      type === "index"
+      type === "menu"
         ? setTimeout(() => {
             this.options_api();
-          }, 1000)
+          }, 100)
         : "";
       var getlocal = localStorage.getItem("Overview");
       if (

+ 1 - 1
src/views/site/components/Overview/barChart.vue

@@ -161,7 +161,7 @@ export default {
         yAxis: [
           {
             type: "value",
-            name: "KW",
+            name: "kW",
             nameTextStyle: {
               color: "#fff",
               fontSize: 10,

+ 6 - 2
src/views/site/components/Overview/histTrendChart.vue

@@ -12,7 +12,9 @@ export default {
     hisDefaultTime: Object,
   },
   data() {
-    return {};
+    return {
+      yName:''
+    };
   },
 
   mounted() {
@@ -66,6 +68,7 @@ export default {
 
       data.map((val) => {
         if (this.msg == 0) {
+          this.yName="A";
           if (val.name == "IA" || val.name == "IB" || val.name == "IC") {
             return dataAll.push({
               name: val.name + "(A)",
@@ -76,6 +79,7 @@ export default {
             });
           }
         } else {
+           this.yName="kV";
           if (val.name == "UA" || val.name == "UB" || val.name == "UC") {
             return dataAll.push({
               name: val.name + "(kV)",
@@ -129,7 +133,7 @@ export default {
           },
         },
         yAxis: {
-          name: "A",
+          name: this.yName,
           nameTextStyle: {
             color: "#fff",
             fontSize: 10,

+ 1 - 1
src/views/site/components/Overview/modelStaticTop.vue

@@ -19,7 +19,7 @@
           <p>实时负载</p>
           <p>
             <span class="num text-yellow" style="margin-bottom: 0"
-              >{{ exception }} kwh</span
+              >{{ exception }} kWh</span
             >
           </p>
         </div>