Переглянути джерело

修改有功功率的图表

liujiejie 5 місяців тому
батько
коміт
1e94bb92bd

+ 2 - 2
src/components/map/index.vue

@@ -196,8 +196,8 @@ export default {
         new TileLayer({
           source: new XYZ({
             // url: "http://127.0.0.1:8010/tiles/{z}/{x}/{y}.png", //本地
-            // url: "http://192.168.50.235/tiles/{z}/{x}/{y}.png", //内网
-            url: "http://106.120.102.238:18000/tiles/{z}/{x}/{y}.png", //外网
+            url: "http://192.168.50.235/tiles/{z}/{x}/{y}.png", //内网
+            // url: "http://106.120.102.238:18000/tiles/{z}/{x}/{y}.png", //外网
             // url: "http://10.96.137.5:9080/tiles/{z}/{x}/{y}.png", //大~#@唐
           }),
         }),

+ 7 - 3
src/views/performance/components/PlotlyCharts.vue

@@ -28,8 +28,11 @@ export default {
         powerConfig: {
           mode: "lines+markers",
           name: "合同功率曲线",
-          line: { color: "red" },
-          marker: { color: "red", size: 5 },
+          line: {
+            color: "red",
+            width: 1, // 设置线条的宽度为1
+          },
+          marker: { color: "red", size: 4 },
         },
         lableConfig: {
           title: { text: "", x: 0.5 },
@@ -230,8 +233,9 @@ export default {
           name: this.powerCurveData.contractPowerCurve[0].enginName,
           line: {
             color: "red",
-            width: 1, // 设置线条的宽度为3
+            width: 1, // 设置线条的宽度为1
           },
+          marker: { color: "red", size: 4 },
         });
         Plotly.newPlot(`chart-${this.inds}`, data, layout);
       }