浏览代码

优化图表等4项内容

周壕 9 月之前
父节点
当前提交
f7aa1a0993
共有 1 个文件被更改,包括 9 次插入9 次删除
  1. 9 9
      vue/src/components/basic/chart/chart-prod-dynamics.vue

+ 9 - 9
vue/src/components/basic/chart/chart-prod-dynamics.vue

@@ -162,12 +162,12 @@
           {label:'年', value:'year'}];
       },
       getTypeOptions:function (){
-        return [{label:'累产油量', value:'oil', unit:'(万吨)'},
-          {label:'累产水量', value:'water', unit:'(万吨)'},
-          {label:'累产液量', value:'fluid', unit:'(万吨)'},
-          {label:'累产气量', value:'gas', unit:'(立方米)'},
-          {label:'含水率', value:'watercut', unit:''},
-          {label:'累注水量', value:'vol', unit:'(万吨)'}
+        return [{label:'产油量', leiLabel:'累产油量', value:'oil', unit:'(万吨)'},
+          {label:'产水量', leiLabel:'累产水量', value:'water', unit:'(万吨)'},
+          {label:'产液量', leiLabel:'累产液量', value:'fluid', unit:'(万吨)'},
+          {label:'产气量', leiLabel:'累产气量', value:'gas', unit:'(立方米)'},
+          {label:'含水率', leiLabel:'含水率', value:'watercut', unit:''},
+          {label:'注水量', leiLabel:'累注水量', value:'vol', unit:'(万吨)'}
         ];
       },
       getTypes:function (){
@@ -253,7 +253,7 @@
         return series;
       },
       getyAxisTitle:function (i, label){
-        return i<=1?"产油量/水量":label;
+        return i<=1?"产油量/水量":label;
       },
       getGridIndex:function (i){
         return i<=1?0:i-1;
@@ -266,8 +266,8 @@
           let total = 0;
           yDatas[i].forEach(it=>{ total+=it*1; });
           totals.push({
-            name:showList[i].label,
-            total : total?.toFixed(2),
+            name:showList[i].leiLabel,
+            total : total,
             unit : this.getTypeUnit(showList[i].label)
           });
         }