diff --git a/src/mixins/fullscreen.js b/src/mixins/fullscreen.js
new file mode 100644
index 0000000..03aa6e4
--- /dev/null
+++ b/src/mixins/fullscreen.js
@@ -0,0 +1,23 @@
+import screenfull from "screenfull";
+
+export default {
+ data() {
+ return {
+ isFullscreen: false,
+ };
+ },
+ watch: {
+ /** 全屏状态切换时,对柱子粗细和字体大小进行相应调整 */
+ isFullscreen(val) {
+ // 暴露一个全屏状态改变的回调函数
+ this.fullscreenCallback(val);
+ },
+ },
+ mounted() {
+ if (screenfull.isEnabled) {
+ screenfull.on("change", () => {
+ this.isFullscreen = screenfull.isFullscreen;
+ });
+ }
+ },
+};
diff --git a/src/views/copilot/components/Container.vue b/src/views/copilot/components/Container.vue
index fdb9145..1e59c2c 100644
--- a/src/views/copilot/components/Container.vue
+++ b/src/views/copilot/components/Container.vue
@@ -100,18 +100,31 @@ export default {
box-shadow: inset 0 0 20px 1px #fff1;
backdrop-filter: blur(4px);
- // &::after {
- // content: "";
- // position: absolute;
- // display: inline-block;
- // width: 60%;
- // height: 0.31415vh;
- // border-radius: 2px;
- // left: 8%;
- // bottom: 0;
- // background: linear-gradient(to right, #024798, transparent);
- // z-index: 0;
- // }
+ &::before {
+ content: "";
+ position: absolute;
+ display: inline-block;
+ height: 100%;
+ width: 0.11415vw;
+ border-radius: 2px;
+ top: 0%;
+ left: 0;
+ background: radial-gradient(circle at center , #024798 2%, #024798 30%, transparent);
+ z-index: 1;
+ }
+
+ &::after {
+ content: "";
+ position: absolute;
+ display: inline-block;
+ width: 60%;
+ height: 0.31415vh;
+ border-radius: 2px;
+ left: 8%;
+ bottom: 0;
+ background: linear-gradient(to right, #024798, transparent);
+ z-index: 0;
+ }
.container-head {
// height: 40px;
diff --git a/src/views/copilot/components/CopilotHeader.vue b/src/views/copilot/components/CopilotHeader.vue
index 3180bc9..8856fd7 100644
--- a/src/views/copilot/components/CopilotHeader.vue
+++ b/src/views/copilot/components/CopilotHeader.vue
@@ -26,7 +26,11 @@
/>
-
+
{{ active }}驾驶舱
@@ -35,6 +39,8 @@
diff --git a/src/views/copilot/components/charts/BipvOutput.vue b/src/views/copilot/components/charts/BipvOutput.vue
new file mode 100644
index 0000000..174c704
--- /dev/null
+++ b/src/views/copilot/components/charts/BipvOutput.vue
@@ -0,0 +1,33 @@
+
+
+
+
+
+
+
+
+
diff --git a/src/views/copilot/components/charts/ChipOutput.vue b/src/views/copilot/components/charts/ChipOutput.vue
new file mode 100644
index 0000000..539720b
--- /dev/null
+++ b/src/views/copilot/components/charts/ChipOutput.vue
@@ -0,0 +1,33 @@
+
+
+
+
+
+
+
+
+
diff --git a/src/views/copilot/components/charts/StdOutput.vue b/src/views/copilot/components/charts/StdOutput.vue
index 4655375..e09df94 100644
--- a/src/views/copilot/components/charts/StdOutput.vue
+++ b/src/views/copilot/components/charts/StdOutput.vue
@@ -6,56 +6,25 @@
-->
-
+
diff --git a/src/views/copilot/components/charts/base/DoubleRingWrapper.vue b/src/views/copilot/components/charts/base/DoubleRingWrapper.vue
new file mode 100644
index 0000000..2adcacf
--- /dev/null
+++ b/src/views/copilot/components/charts/base/DoubleRingWrapper.vue
@@ -0,0 +1,66 @@
+
+
+
+
+
+
+
+
+
diff --git a/src/views/copilot/components/charts/base/double-ring-chart-options.js b/src/views/copilot/components/charts/base/double-ring-chart-options.js
new file mode 100644
index 0000000..b41cd15
--- /dev/null
+++ b/src/views/copilot/components/charts/base/double-ring-chart-options.js
@@ -0,0 +1,127 @@
+export default {
+ grid: {
+ left: 0,
+ right: 0,
+ bottom: 0,
+ top: 0,
+ containLabel: true,
+ },
+ tooltip: {},
+ title: {
+ text: "78%",
+ left: "50%",
+ top: "40%",
+ textAlign: "center",
+ textStyle: {
+ fontWeight: 600,
+ fontSize: 32,
+ color: "#fffd",
+ },
+ subtext: "\u200224年累计产出\u2002",
+ subtextStyle: {
+ fontSize: 14,
+ fontWeight: 100,
+ color: "#fffd",
+ align: "right",
+ },
+ },
+ series: [
+ // 背景 series - 2024计划
+ {
+ type: "pie",
+ name: "2024目标",
+ radius: ["70%", "85%"],
+ center: ["50%", "52%"],
+ emptyCircleStyle: {
+ color: "#042c5f33",
+ },
+ },
+ // 数据 series - 2024累计
+ {
+ type: "pie",
+ radius: ["70%", "85%"],
+ center: ["50%", "52%"],
+ avoidLabelOvervlap: false,
+ label: {
+ show: false,
+ // position: "center",
+ },
+ labelLine: {
+ show: false,
+ },
+ data: [
+ {
+ value: 90,
+ name: "2024累计产出",
+ selected: false,
+ itemStyle: {
+ borderJoin: "round",
+ borderCap: "round",
+ borderWidth: 12,
+ borderRadius: "50%",
+ color: {
+ type: "linear",
+ x: 1,
+ y: 0,
+ x2: 0,
+ y2: 1,
+ colorStops: [
+ { offset: 0, color: "#4CF0E811" },
+ { offset: 1, color: "#4CF0E8" },
+ ],
+ },
+ },
+ },
+ {
+ value: 20,
+ name: "-",
+ itemStyle: { color: "transparent" },
+ label: { show: false },
+ },
+ ],
+ },
+ // 数据 series2 - 2023累计
+ {
+ type: "pie",
+ radius: ["55%", "70%"],
+ center: ["50%", "52%"],
+ avoidLabelOvervlap: false,
+ label: {
+ show: false,
+ },
+ labelLine: {
+ show: false,
+ },
+ data: [
+ {
+ value: 90,
+ name: "2023累计产出",
+ selected: false,
+ itemStyle: {
+ borderJoin: "round",
+ borderCap: "round",
+ borderWidth: 12,
+ borderRadius: "50%",
+ color: {
+ type: "linear",
+ x: 1,
+ y: 0,
+ x2: 0,
+ y2: 1,
+ colorStops: [
+ { offset: 0, color: "#1065ff66" },
+ { offset: 1, color: "#1065ff" },
+ ],
+ },
+ },
+ },
+ {
+ value: 20,
+ name: "-",
+ itemStyle: { color: "transparent" },
+ label: { show: false },
+ },
+ ],
+ },
+ ],
+};
diff --git a/src/views/copilot/components/charts/std-output-data.js b/src/views/copilot/components/charts/base/fetcherDoubleRing.js
similarity index 76%
rename from src/views/copilot/components/charts/std-output-data.js
rename to src/views/copilot/components/charts/base/fetcherDoubleRing.js
index 70b9458..6f452a6 100644
--- a/src/views/copilot/components/charts/std-output-data.js
+++ b/src/views/copilot/components/charts/base/fetcherDoubleRing.js
@@ -1,7 +1,4 @@
-import options from './double-ring-chart-options';
-
export default {
- options,
getData: async function (url) {
//
return await new Promise((resolve, reject) => {
diff --git a/src/views/copilot/components/charts/double-ring-chart-options.js b/src/views/copilot/components/charts/double-ring-chart-options.js
deleted file mode 100644
index c2a4847..0000000
--- a/src/views/copilot/components/charts/double-ring-chart-options.js
+++ /dev/null
@@ -1,122 +0,0 @@
-export default {
- grid: {
- left: "3%",
- right: "4%",
- bottom: "0",
- top: "15%",
- containLabel: true,
- },
- tooltip: {},
- xAxis: {
- axisTick: {
- show: false,
- },
- axisLine: {
- lineStyle: {
- color: "#4561AE",
- },
- },
- axisLabel: {
- color: "#fff",
- fontSize: 12,
- },
- // data: this.xAxis,
- data: [],
- },
- yAxis: {
- name: "单位/片",
- nameTextStyle: {
- color: "#fff",
- fontSize: 12,
- },
- axisTick: {
- show: false,
- },
- axisLabel: {
- color: "#fff",
- fontSize: 12,
- },
- axisLine: {
- show: true,
- lineStyle: {
- color: "#4561AE",
- },
- },
- splitLine: {
- lineStyle: {
- color: "#4561AE",
- },
- },
- },
- series: [
- {
- name: "2023年",
- type: "bar",
- barWidth: 12,
- itemStyle: {
- borderRadius: [10, 10, 0, 0],
- color: {
- type: "linear",
- x: 0,
- y: 0,
- x2: 0,
- y2: 1,
- colorStops: [
- {
- offset: 0,
- color: "#12f7f1", // 0% 处的颜色
- },
- {
- offset: 0.35,
- color: "#12f7f177", // 100% 处的颜色
- },
- {
- offset: 0.75,
- color: "#12f7f133", // 100% 处的颜色
- },
- {
- offset: 1,
- color: "transparent", // 100% 处的颜色
- },
- ],
- global: false, // 缺省为 false
- },
- },
- // data: this.series[0].data,
- data: [],
- },
- {
- name: "2024年",
- type: "bar",
- barWidth: 12,
- // tooltip: {
- // valueFormatter: function (value) {
- // return value + " ml";
- // },
- // },
- itemStyle: {
- borderRadius: [10, 10, 0, 0],
- color: {
- type: "linear",
- x: 0,
- y: 0,
- x2: 0,
- y2: 1,
- colorStops: [
- {
- offset: 0,
- color: "#57abf8", // 0% 处的颜色
- },
- {
- offset: 1,
- color: "#364BFE66", // 100% 处的颜色
- },
- ],
- global: false, // 缺省为 false
- },
- },
- data: [],
- // data: this.series[1].data,
- },
- ],
-};
diff --git a/src/views/copilot/yield/index.vue b/src/views/copilot/yield/index.vue
index ad45092..2bc0134 100644
--- a/src/views/copilot/yield/index.vue
+++ b/src/views/copilot/yield/index.vue
@@ -11,16 +11,12 @@
-
-
+
+
+
+
+
+