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 @@ + + + + +