From 8d30507f1b5987dbe49d8993ba4e9fb84b5e6de1 Mon Sep 17 00:00:00 2001 From: "DESKTOP-FUDKNA8\\znjsz" Date: Wed, 28 Feb 2024 17:02:33 +0800 Subject: [PATCH] update --- src/AlertListScreen.vue | 227 ++++++++++++++++- src/MainScreen.vue | 235 +++++++++++++++++- src/components/mainscreen/SumRate.vue | 10 + src/components/mainscreen/SumYield.vue | 84 +++++++ .../mainscreen/TeamChartDayOptions.js | 59 +++++ src/components/mainscreen/TodayRate.vue | 10 + src/components/mainscreen/TodayYield.vue | 84 +++++++ 7 files changed, 689 insertions(+), 20 deletions(-) create mode 100644 src/components/mainscreen/SumRate.vue create mode 100644 src/components/mainscreen/SumYield.vue create mode 100644 src/components/mainscreen/TeamChartDayOptions.js create mode 100644 src/components/mainscreen/TodayRate.vue create mode 100644 src/components/mainscreen/TodayYield.vue diff --git a/src/AlertListScreen.vue b/src/AlertListScreen.vue index cdb87ae..118de01 100644 --- a/src/AlertListScreen.vue +++ b/src/AlertListScreen.vue @@ -1,18 +1,225 @@ + - + + diff --git a/src/MainScreen.vue b/src/MainScreen.vue index 38f2bf9..53def8e 100644 --- a/src/MainScreen.vue +++ b/src/MainScreen.vue @@ -1,18 +1,233 @@ + - + + diff --git a/src/components/mainscreen/SumRate.vue b/src/components/mainscreen/SumRate.vue new file mode 100644 index 0000000..5eb7af0 --- /dev/null +++ b/src/components/mainscreen/SumRate.vue @@ -0,0 +1,10 @@ + + + diff --git a/src/components/mainscreen/SumYield.vue b/src/components/mainscreen/SumYield.vue new file mode 100644 index 0000000..06c345f --- /dev/null +++ b/src/components/mainscreen/SumYield.vue @@ -0,0 +1,84 @@ + + + + + diff --git a/src/components/mainscreen/TeamChartDayOptions.js b/src/components/mainscreen/TeamChartDayOptions.js new file mode 100644 index 0000000..18a4820 --- /dev/null +++ b/src/components/mainscreen/TeamChartDayOptions.js @@ -0,0 +1,59 @@ +export const options = { + color: ['#a4c9d1', '#72340b', '#ffd601' ], + grid: { + top: 8, + bottom: 20, + left: 42, + right: 28, + }, + legend: { + show: false, + }, + xAxis: { + max: 100, + splitLine: { + lineStyle: { + color: "#fff2", + }, + }, + axisLabel: { + fontSize: 16, + color: "#e5e5e5a3", + }, + }, + yAxis: { + type: "category", + data: ["A组", "B组", "C组"], + inverse: true, + max: 2, // only the largest 3 bars will be displayed + axisLabel: { + fontSize: 16, + color: "#e5e5e5a3", + }, + splitLine: { + lineStyle: { + color: "#e5e5e5", + }, + }, + }, + series: [ + { + type: "bar", + data: [34, 2, 23], + label: { + show: true, + position: "right", + formatter: "{c}%", + color: "#fff", + fontSize: 16, + }, + }, + ], + +}; + +export default function setup(echartInstance, dataArr) { + const new_options = { ...options }; + new_options.series[0].data = dataArr; + echartInstance.setOption(new_options); +} diff --git a/src/components/mainscreen/TodayRate.vue b/src/components/mainscreen/TodayRate.vue new file mode 100644 index 0000000..6a895ab --- /dev/null +++ b/src/components/mainscreen/TodayRate.vue @@ -0,0 +1,10 @@ + + + diff --git a/src/components/mainscreen/TodayYield.vue b/src/components/mainscreen/TodayYield.vue new file mode 100644 index 0000000..d1bc826 --- /dev/null +++ b/src/components/mainscreen/TodayYield.vue @@ -0,0 +1,84 @@ + + + + +