3 커밋 80aa3958e5 ... f7aa1a0993

작성자 SHA1 메시지 날짜
  周壕 f7aa1a0993 优化图表等4项内容 9 달 전
  周壕 95bd1f805e Merge remote-tracking branch 'origin/master' 9 달 전
  周壕 5c25217771 优化图表等4项内容 9 달 전
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)
           });
         }