Bläddra i källkod

图表线条颜色

周壕 10 månader sedan
förälder
incheckning
fe426909ba
2 ändrade filer med 4 tillägg och 3 borttagningar
  1. 3 2
      vue/src/components/basic/chart/chart-cell.vue
  2. 1 1
      vue/src/views/wellinfo/index.vue

+ 3 - 2
vue/src/components/basic/chart/chart-cell.vue

@@ -51,7 +51,7 @@
       //  return wellId.value + "-" + dataType.value;
       //});
       const lineColor = computed(()=>{
-        return props.lineColor? props.lineColor : '#5470c6';
+        return props.lineColor? props.lineColor : '#0058D0';
       });
 
       return{
@@ -101,7 +101,8 @@
       },
       getSeries:async function (showSymbol){
         let dataArys = await this.getDatas();
-        let series = [{type: this.serieType, data:[] as any, showSymbol:showSymbol, itemStyle : {color:this.lineColor}}];
+        let series = [{type: this.serieType, data:[] as any, showSymbol:showSymbol,
+          itemStyle : {color:this.lineColor}, lineStyle : {width:1}}];
         //数据组装,这里根据业务组装y轴数据
         (dataArys! as any).forEach(row=>{ series[0].data.push(row[this.dataType]) });
         console.log("getSeries", series);

+ 1 - 1
vue/src/views/wellinfo/index.vue

@@ -194,7 +194,7 @@
                     <td>{{ item.oil_prod_mon }}t</td>
                     <td colspan="2" rowspan="2">
                       <div style="height:25px">
-                        <ChartCell :timeType="('month')" :dataType="('oil')" :wellId="item.well_id"></ChartCell>
+                        <ChartCell :timeType="('month')" :dataType="('oil')" :wellId="item.well_id" :lineColor="('#E63038')"></ChartCell>
                       </div>
                     </td>
                   </tr>