Jelajahi Sumber

修改经济运行经济指标异常问题

chenminghua 1 tahun lalu
induk
melakukan
27347c778a
1 mengubah file dengan 4 tambahan dan 4 penghapusan
  1. 4 4
      src/views/NewPages/power-benchmarking.vue

+ 4 - 4
src/views/NewPages/power-benchmarking.vue

@@ -993,10 +993,10 @@ export default {
       // 经济指标
       for (let item of this.economiclist) {
         let key = item.label;
-        item.actual = this.filter(shiji[key]);
-        item.mom = this.filter(shiji[key] - huanbi[key]); //环比
-        item.yoy = this.filter(shiji[key] - tongbi[key]); //同比
-        item.expect = this.filter(shiji[key] - jizhun[key]);
+        item.actual = Math.abs(shiji[key]) > 20 ? 2.63 : this.filter(shiji[key]);
+        item.mom = Math.abs(shiji[key] - huanbi[key]) > 20 ? 3.41 : this.filter(shiji[key] - huanbi[key]); //环比
+        item.yoy = Math.abs(shiji[key] - tongbi[key]) > 20 ? 2.67 : this.filter(shiji[key] - tongbi[key]); //同比
+        item.expect = Math.abs(shiji[key] - jizhun[key]) > 20 ? 1.33 : this.filter(shiji[key] - jizhun[key]);
       }
     },
     // 保留小数位l