From da4257bc32483409af02a06dd342c6981ec786ec Mon Sep 17 00:00:00 2001
From: liulijun <liulijun@hnkhzn.com>
Date: 星期一, 17 十一月 2025 17:14:14 +0800
Subject: [PATCH] 更新大屏幕页面和任务信息页面

---
 项目代码/BigScreen/src/components/echart/bottom/bottomRightChart/chart.vue |  358 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 358 insertions(+), 0 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/BigScreen/src/components/echart/bottom/bottomRightChart/chart.vue" "b/\351\241\271\347\233\256\344\273\243\347\240\201/BigScreen/src/components/echart/bottom/bottomRightChart/chart.vue"
new file mode 100644
index 0000000..c991e1e
--- /dev/null
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/BigScreen/src/components/echart/bottom/bottomRightChart/chart.vue"
@@ -0,0 +1,358 @@
+<template>
+  <div>
+    <Echart
+      :options="options"
+      id="centreLeft1Chart"
+      height="480px"
+      width="100%"
+    ></Echart>
+  </div>
+</template>
+
+<script>
+import Echart from '@/common/echart'
+export default {
+  data () {
+    return {
+      options: {},
+      // 瀹氫箟棰滆壊
+      colorList: {
+        linearYtoG: {
+          type: "linear",
+          x: 0,
+          y: 0,
+          x2: 1,
+          y2: 1,
+          colorStops: [
+            {
+              offset: 0,
+              color: "#f5b44d"
+            },
+            {
+              offset: 1,
+              color: "#28f8de"
+            }
+          ]
+        },
+        linearGtoB: {
+          type: "linear",
+          x: 0,
+          y: 0,
+          x2: 1,
+          y2: 0,
+          colorStops: [
+            {
+              offset: 0,
+              color: "#43dfa2"
+            },
+            {
+              offset: 1,
+              color: "#28f8de"
+            }
+          ]
+        },
+        linearBtoG: {
+          type: "linear",
+          x: 0,
+          y: 0,
+          x2: 1,
+          y2: 0,
+          colorStops: [
+            {
+              offset: 0,
+              color: "#1c98e8"
+            },
+            {
+              offset: 1,
+              color: "#28f8de"
+            }
+          ]
+        },
+        areaBtoG: {
+          type: "linear",
+          x: 0,
+          y: 0,
+          x2: 0,
+          y2: 1,
+          colorStops: [
+            {
+              offset: 0,
+              color: "rgba(35,184,210,.2)"
+            },
+            {
+              offset: 1,
+              color: "rgba(35,184,210,0)"
+            }
+          ]
+        }
+      }
+    };
+  },
+  components: {
+    Echart,
+  },
+  props: {
+    cdata: {
+      type: Object,
+      default: () => ({})
+    },
+  },
+  watch: {
+    cdata: {
+      handler (newData) {
+        this.options = {
+          title: {
+            text: "",
+            textStyle: {
+              color: "#D3D6DD",
+              fontSize: 24,
+              fontWeight: "normal"
+            },
+            subtext: newData.year + "/" + newData.weekCategory[6],
+            subtextStyle: {
+              color: "#fff",
+              fontSize: 16
+            },
+            top: 50,
+            left: 80
+          },
+          legend: {
+            top: 120,
+            left: 80,
+            orient: "vertical",
+            itemGap: 15,
+            itemWidth: 12,
+            itemHeight: 12,
+            data: ["骞冲潎鎸囨爣", "鎴戠殑鎸囨爣"],
+            textStyle: {
+              color: "#fff",
+              fontSize: 14
+            }
+          },
+          tooltip: {
+            trigger: "item"
+          },
+          radar: {
+            center: ["68%", "27%"],
+            radius: "40%",
+            name: {
+              color: "#fff"
+            },
+            splitNumber: 8,
+            axisLine: {
+              lineStyle: {
+                color: this.colorList.linearYtoG,
+                opacity: 0.6
+              }
+            },
+            splitLine: {
+              lineStyle: {
+                color: this.colorList.linearYtoG,
+                opacity: 0.6
+              }
+            },
+            splitArea: {
+              areaStyle: {
+                color: "#fff",
+                opacity: 0.1,
+                shadowBlur: 25,
+                shadowColor: "#000",
+                shadowOffsetX: 0,
+                shadowOffsetY: 5
+              }
+            },
+            indicator: [
+              {
+                name: "Ng鐜�",
+                max: newData.maxData
+              },
+              {
+                name: "Ok鐜�",
+                max: 10
+              },
+              {
+                name: "寮傚父鐜�",
+                max: 12
+              },
+              {
+                name: "姝e父鐜�",
+                max: 3.5
+              }
+            ]
+          },
+          grid: {
+            left: 90,
+            right: 80,
+            bottom: 40,
+            top: "60%"
+          },
+          xAxis: {
+            type: "category",
+            position: "bottom",
+            axisLine: true,
+            axisLabel: {
+              color: "rgba(255,255,255,.8)",
+              fontSize: 12
+            },
+            data: newData.weekCategory
+          },
+          // 涓嬫柟Y杞�
+          yAxis: {
+            name: "OK鏁伴噺",
+            nameLocation: "end",
+            nameGap: 24,
+            nameTextStyle: {
+              color: "rgba(255,255,255,.5)",
+              fontSize: 14
+            },
+            max: newData.maxData,
+            splitNumber: 4,
+
+            axisLine: {
+              lineStyle: {
+                opacity: 0
+              }
+            },
+            splitLine: {
+              show: true,
+              lineStyle: {
+                color: "#fff",
+                opacity: 0.1
+              }
+            },
+            axisLabel: {
+              color: "rgba(255,255,255,.8)",
+              fontSize: 12
+            }
+          },
+          series: [
+            {
+              name: "",
+              type: "radar",
+              symbolSize: 0,
+              data: [
+                {
+                  value: newData.radarDataAvg[6],
+                  name: "骞冲潎鎸囨爣",
+                  itemStyle: {
+                    normal: {
+                      color: "#f8d351"
+                    }
+                  },
+                  lineStyle: {
+                    normal: {
+                      opacity: 0
+                    }
+                  },
+                  areaStyle: {
+                    normal: {
+                      color: "#f8d351",
+                      shadowBlur: 25,
+                      shadowColor: "rgba(248,211,81,.3)",
+                      shadowOffsetX: 0,
+                      shadowOffsetY: -10,
+                      opacity: 1
+                    }
+                  }
+                },
+                {
+                  value: newData.radarData[6],
+                  name: "鎴戠殑鎸囨爣",
+                  itemStyle: {
+                    normal: {
+                      color: "#43dfa2"
+                    }
+                  },
+                  lineStyle: {
+                    normal: {
+                      opacity: 0
+                    }
+                  },
+                  areaStyle: {
+                    normal: {
+                      color: this.colorList.linearGtoB,
+                      shadowBlur: 15,
+                      shadowColor: "rgba(0,0,0,.2)",
+                      shadowOffsetX: 0,
+                      shadowOffsetY: 5,
+                      opacity: 0.8
+                    }
+                  }
+                }
+              ]
+            },
+            {
+              name: "",
+              type: "line",
+              smooth: true,
+              symbol: "emptyCircle",
+              symbolSize: 8,
+              itemStyle: {
+                normal: {
+                  color: "#fff"
+                }
+              },
+              lineStyle: {
+                normal: {
+                  color: this.colorList.linearBtoG,
+                  width: 3
+                }
+              },
+              areaStyle: {
+                normal: {
+                  color: this.colorList.areaBtoG
+                }
+              },
+              data: newData.weekLineData,
+              lineSmooth: true,
+              markLine: {
+                silent: true,
+                data: [
+                  {
+                    type: "average",
+                    name: "骞冲潎鍊�"
+                  }
+                ],
+                precision: 0,
+                label: {
+                  normal: {
+                    formatter: "骞冲潎鍊�: \n {c}"
+                  }
+                },
+                lineStyle: {
+                  normal: {
+                    color: "rgba(248,211,81,.7)"
+                  }
+                }
+              },
+              tooltip: {
+                position: "top",
+                formatter: "{c} m",
+                backgroundColor: "rgba(28,152,232,.2)",
+                padding: 6
+              }
+            },
+            {
+              name: "鍗犱綅鑳屾櫙",
+              type: "bar",
+              itemStyle: {
+                normal: {
+                  show: true,
+                  color: "#000",
+                  opacity: 0
+                }
+              },
+              silent: true,
+              barWidth: "50%",
+              data: newData.weekMaxData,
+              animation: false
+            }
+          ]
+        }
+      },
+      immediate: true,
+      deep: true
+    }
+  }
+};
+</script>
\ No newline at end of file

--
Gitblit v1.9.3