From eb1be49158ad456fe7adba5c85247e0c308b764a Mon Sep 17 00:00:00 2001
From: huangxiaoqiang <huangxiaoqiang@hnkhzn.com>
Date: 星期三, 25 六月 2025 00:37:46 +0800
Subject: [PATCH] 简化写入逻辑并移除验证步骤在 `SiemensS7Communicator.cs` 文件中,移除了原有的读取和验证写入值的逻辑,替换为直接返回 `true` 表示写入成功。同时,在 `try` 块中添加了 `#region` 指令以提高代码可读性。保留了写入失败时的异常处理逻辑。

---
 Code Management/WMS/WIDESEA_WMSClient/src/views/charts/bigdata/chart-options.js |  551 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 551 insertions(+), 0 deletions(-)

diff --git a/Code Management/WMS/WIDESEA_WMSClient/src/views/charts/bigdata/chart-options.js b/Code Management/WMS/WIDESEA_WMSClient/src/views/charts/bigdata/chart-options.js
new file mode 100644
index 0000000..fe30d3e
--- /dev/null
+++ b/Code Management/WMS/WIDESEA_WMSClient/src/views/charts/bigdata/chart-options.js
@@ -0,0 +1,551 @@
+var echarts = require("echarts");
+let chartLeft1 = {
+  tooltip: {
+    trigger: "axis",
+    axisPointer: {
+      type: "shadow"
+    }
+  },
+  grid: {
+    left: "0%",
+    top: "10px",
+    right: "0%",
+    bottom: "4%",
+    containLabel: true
+  },
+  xAxis: [
+    {
+      type: "category",
+      data: [
+        "鍟嗚秴闂ㄥ簵",
+        "鏁欒偛鍩硅",
+        "鎴垮湴浜�",
+        "鐢熸椿鏈嶅姟",
+        "姹借溅閿�鍞�",
+        "鏃呮父閰掑簵",
+        "浜旈噾寤烘潗"
+      ],
+      axisLine: {
+        show: true,
+        lineStyle: {
+          color: "rgba(255,255,255,.1)",
+          width: 1,
+          type: "solid"
+        }
+      },
+
+      axisTick: {
+        show: false
+      },
+      axisLabel: {
+        interval: 0,
+        show: true,
+        splitNumber: 15,
+        textStyle: {
+          color: "rgba(255,255,255,.6)",
+          fontSize: "12"
+        }
+      }
+    }
+  ],
+  yAxis: [
+    {
+      type: "value",
+      axisLabel: {
+        show: true,
+        textStyle: {
+          color: "rgba(255,255,255,.6)",
+          fontSize: "12"
+        }
+      },
+      axisTick: {
+        show: false
+      },
+      axisLine: {
+        show: true,
+        lineStyle: {
+          color: "rgba(255,255,255,.1	)",
+          width: 1,
+          type: "solid"
+        }
+      },
+      splitLine: {
+        lineStyle: {
+          color: "rgba(255,255,255,.1)"
+        }
+      }
+    }
+  ],
+  series: [
+    {
+      type: "bar",
+      data: [200, 600, 300, 900, 1500, 1200, 600],
+      barWidth: "35%",
+      itemStyle: {
+        normal: {
+          color: "#2f89cf",
+          opacity: 1,
+          barBorderRadius: 5
+        }
+      }
+    }
+  ]
+};
+
+
+let chartLeft2 = {
+  tooltip: {
+    trigger: "axis",
+    axisPointer: {
+      type: "shadow"
+    }
+  },
+  grid: {
+    left: "0%",
+    top: "10px",
+    right: "0%",
+    bottom: "4%",
+    containLabel: true
+  },
+  xAxis: [
+    {
+      type: "category",
+      data: [
+        "07.01",
+        "07.02",
+        "07.03",
+        "07.04",
+        "07.05",
+        "07.06",
+      ],
+      axisLine: {
+        show: true,
+        lineStyle: {
+          color: "rgba(255,255,255,.1)",
+          width: 1,
+          type: "solid"
+        }
+      },
+      axisTick: {
+        show: false
+      },
+      axisLabel: {
+        interval: 0,
+        // rotate:50,
+        show: true,
+        splitNumber: 15,
+        textStyle: {
+          color: "rgba(255,255,255,.6)",
+          fontSize: "12"
+        }
+      }
+    }
+  ],
+  yAxis: [
+    {
+      type: "value",
+      axisLabel: {
+        show: true,
+        textStyle: {
+          color: "rgba(255,255,255,.6)",
+          fontSize: "12"
+        }
+      },
+      axisTick: {
+        show: false
+      },
+      axisLine: {
+        show: true,
+        lineStyle: {
+          color: "rgba(255,255,255,.1	)",
+          width: 1,
+          type: "solid"
+        }
+      },
+      splitLine: {
+        lineStyle: {
+          color: "rgba(255,255,255,.1)"
+        }
+      }
+    },
+    {
+      type: "value",
+      axisLabel: {
+        show: true,
+        textStyle: {
+          color: "rgba(255,255,255,.6)",
+          fontSize: "12"
+        }
+      },
+      axisTick: {
+        show: false
+      },
+      axisLine: {
+        show: true,
+        lineStyle: {
+          color: "rgba(255,255,255,.1	)",
+          width: 1,
+          type: "solid"
+        }
+      },
+      splitLine: {
+        lineStyle: {
+          color: "rgba(255,255,255,.1)"
+        }
+      }
+    }
+  ], series: [
+    {
+      type: "bar",
+      name: "閿�閲�",
+      data: [1200, 800, 300, 500, 560, 220],
+      barWidth: "25%",
+      itemStyle: {
+        normal: {
+          color: "#2f89cf",
+          opacity: 1,
+          barBorderRadius: 5
+        }
+      }
+    }, {
+      type: "bar",
+      name: "璁㈠崟",
+      data: [1000, 750, 380, 450, 450, 120],
+      barWidth: "25%",
+      itemStyle: {
+        normal: {
+          color: "#46d000",
+          opacity: 1,
+          barBorderRadius: 5
+        }
+      }
+    }
+  ]
+};
+
+let chartLeft3 = {
+  tooltip: {
+    trigger: 'axis',
+    axisPointer: {            // 鍧愭爣杞存寚绀哄櫒锛屽潗鏍囪酱瑙﹀彂鏈夋晥
+      type: 'shadow'        // 榛樿涓虹洿绾匡紝鍙�変负锛�'line' | 'shadow'
+    }
+  },
+  grid: {
+    left: "0%",
+    top: "-5px",
+    right: "3%",
+    bottom: "4%",
+    containLabel: true
+  },
+  xAxis: {
+    type: 'value',
+    axisLabel: {
+      show: true,
+      textStyle: {
+        color: "rgba(255,255,255,.6)",
+        fontSize: "12"
+      }
+    },
+    axisTick: {
+      show: false
+    },
+    axisLine: {
+      show: true,
+      lineStyle: {
+        color: "rgba(255,255,255,.1	)",
+        width: 1,
+        type: "solid"
+      }
+    },
+    splitLine: {
+      lineStyle: {
+        color: "rgba(255,255,255,.1)"
+      }
+    }
+  },
+  yAxis: {
+    type: 'category',
+    axisLabel: {
+      show: true,
+      textStyle: {
+        color: "rgba(255,255,255,.6)",
+        fontSize: "12"
+      }
+    },
+    axisTick: {
+      show: false
+    },
+    axisLine: {
+      show: true,
+      lineStyle: {
+        color: "rgba(255,255,255,.1	)",
+        width: 1,
+        type: "solid"
+      }
+    },
+    splitLine: {
+      lineStyle: {
+        color: "rgba(255,255,255,.1)"
+      }
+    },
+    data: ['鍛ㄤ竴', '鍛ㄤ簩', '鍛ㄤ笁', '鍛ㄥ洓', '鍛ㄤ簲']
+  },
+  series: [
+    {
+      name: '鐩存帴璁块棶',
+      type: 'bar',
+      stack: '鎬婚噺',
+      label: {
+        show: true,
+        position: 'insideRight'
+      },
+      barWidth: "55%",
+      itemStyle: {
+        normal: {
+          color: "#2f89cf",
+          opacity: 1,
+          barBorderRadius: 5
+        }
+      },
+      data: [120, 302, 400, 200, 700]
+    }
+  ]
+};
+
+let chartRight1 = {
+  title: {},
+  tooltip: {
+    trigger: "axis",
+    axisPointer: {
+      type: "cross",
+      label: {
+        backgroundColor: "#6a7985"
+      }
+    }
+  },
+
+  color: ["#ffab6f", "#09b916", "#83cddc"], //鍥句緥棰滆壊
+  legend: {
+    top: "0%",
+    icon: "roundRect",
+    data: ["閿�鍞鍗�", "閫�璐ц鍗�", "鎶樻墸璁㈠崟"],
+    textStyle: {
+      color: "rgba(255,255,255,.5)",
+      fontSize: "12"
+    }
+  },
+  toolbox: {
+    feature: {}
+  },
+  grid: {
+    left: "10",
+    top: "20",
+    right: "10",
+    bottom: "10",
+    containLabel: true
+  },
+  xAxis: [
+    {
+      type: "category",
+      boundaryGap: false,
+      axisLabel: {
+        textStyle: {
+          color: "rgba(255,255,255,.6)",
+          fontSize: 12
+        }
+      },
+      axisLine: {
+        lineStyle: {
+          color: "rgba(255,255,255,.2)"
+        }
+      },
+      data: [
+        "2020.06.15",
+        "2020.06.16",
+        "2020.06.17",
+        "2020.06.18",
+        "2020.06.19",
+        "2020.06.20",
+        "2020.06.21",
+        "2020.06.22"
+      ]
+    }
+  ],
+  yAxis: [
+    {
+      type: "value",
+      axisTick: { show: false },
+      minInterval: 60,
+      axisLine: {
+        lineStyle: {
+          color: "rgba(255,255,255,.1)"
+        }
+      },
+      axisLabel: {
+        textStyle: {
+          color: "rgba(255,255,255,.6)",
+          fontSize: 12
+        }
+      },
+
+      splitLine: {
+        lineStyle: {
+          color: "rgba(255,255,255,.1)"
+        }
+      }
+    }
+  ],
+  series: [
+    {
+      name: "閿�鍞鍗�",
+      type: "line",
+      smooth: true,
+      lineStyle: {
+        color: "#45d4ba",
+        width: 1
+      }, //绾挎潯鐨勬牱寮�
+      areaStyle: {
+        color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
+          {
+            offset: 0,
+            color: "#83cddc"
+          },
+          {
+            offset: 1,
+            color: "#bfdffbb5"
+          }
+        ])
+      },
+      data: [5, 22, 150, 54, 1, 230, 4, 1]
+    },
+    {
+      name: "閫�璐ц鍗�",
+      type: "line",
+
+      smooth: true,
+      lineStyle: {
+        color: "#04a710",
+        width: 1
+      }, //
+      areaStyle: {
+        color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
+          {
+            offset: 0,
+            color: "#0cbf22"
+          },
+          {
+            offset: 1,
+            color: "#b8f7d1b5"
+          }
+        ])
+      },
+      data: [10, 150, 1, 250, 20, 100, 10, 150]
+    },
+    {
+      name: "鎶樻墸璁㈠崟",
+      type: "line",
+
+      lineStyle: {
+        color: "#0864c3",
+        width: 1
+      }, //绾挎潯鐨勬牱寮�
+      smooth: true,
+      areaStyle: {
+        color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
+          {
+            offset: 0,
+            color: "#29d7ff"
+          },
+          {
+            offset: 1,
+            color: "#34ccef85"
+          }
+        ])
+      },
+      data: [100, 2, 260, 1, 200, 30, 101, 40]
+    }
+  ]
+};
+
+var gauge = {
+  series: [{
+    radius: '90%',
+    type: 'gauge',
+    startAngle: 180,
+    endAngle: 0,
+    min: 0,
+    max: 1,
+    splitNumber: 8,
+    axisLine: {
+      lineStyle: {
+        width: 3,
+        color: [
+          [0.25, '#FF6E76'],
+          [0.5, '#FDDD60'],
+          [0.75, '#58D9F9'],
+          [1, '#7CFFB2']
+        ]
+      }
+    },
+    pointer: {
+      icon: 'path://M12.8,0.7l12,40.1H0.7L12.8,0.7z',
+      length: '12%',
+      width: 20,
+      offsetCenter: [0, '-60%'],
+      itemStyle: {
+        color: 'auto'
+      }
+    },
+    axisTick: {
+      length: 12,
+      lineStyle: {
+        color: 'auto',
+        width: 2
+      }
+    },
+    splitLine: {
+      length: 20,
+      lineStyle: {
+        color: 'auto',
+        width: 5
+      }
+    },
+    axisLabel: {
+      color: '#464646',
+      fontSize: 20,
+      distance: -60,
+      formatter: function (value) {
+        if (value === 0.875) {
+          return '浼�';
+        }
+        else if (value === 0.625) {
+          return '涓�';
+        }
+        else if (value === 0.375) {
+          return '鑹�';
+        }
+        else if (value === 0.125) {
+          return '宸�';
+        }
+      }
+    },
+    title: {
+      offsetCenter: [0, '-20%'],
+      fontSize: 20
+    },
+    detail: {
+      fontSize: 30,
+      offsetCenter: [0, '0%'],
+      valueAnimation: true,
+      formatter: function (value) {
+        return Math.round(value * 100) + '鍒�';
+      },
+      color: 'auto'
+    },
+    data: [{
+      value: 0.70,
+      name: '鎴愮哗璇勫畾'
+    }]
+  }]
+}
+export { chartLeft1, chartLeft2, chartLeft3, chartRight1, gauge }

--
Gitblit v1.9.3