From 753361f589444455fe1b20476c658201ccd92c38 Mon Sep 17 00:00:00 2001 From: helongyang <647556386@qq.com> Date: 星期三, 30 七月 2025 09:53:19 +0800 Subject: [PATCH] 更新优化 --- 代码管理/LargeScreen/CP-Screen/src/views/indexs/left-bottom.vue | 57 ++++++++++++++++++++++++++++++++++++++++++++++----------- 1 files changed, 46 insertions(+), 11 deletions(-) diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/LargeScreen/CP-Screen/src/views/indexs/left-bottom.vue" "b/\344\273\243\347\240\201\347\256\241\347\220\206/LargeScreen/CP-Screen/src/views/indexs/left-bottom.vue" index 883b65a..87699c9 100644 --- "a/\344\273\243\347\240\201\347\256\241\347\220\206/LargeScreen/CP-Screen/src/views/indexs/left-bottom.vue" +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/LargeScreen/CP-Screen/src/views/indexs/left-bottom.vue" @@ -8,9 +8,6 @@ <div v-else style="color: white; text-align: center; padding-top: 50px"> 鏁版嵁鍔犺浇涓�... </div> - <div v-if="error" style="color: red; text-align: center; padding-top: 50px"> - 鏁版嵁鍔犺浇澶辫触: {{ error }} - </div> </div> </template> @@ -106,15 +103,55 @@ }, }, series: [ - { name: '鎴愬搧鍏ュ簱', type: 'line', data: [] }, - { name: '鎴愬搧鍑哄簱', type: 'line', data: [] }, - { name: '绌烘鍥炴祦', type: 'line', data: [] }, - { name: '鎴愬搧鍥炲簱', type: 'line', data: [] } + { + name: '鎴愬搧鍏ュ簱', + type: 'line', + data: [], + areaStyle: { + color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ + { offset: 0, color: 'rgba(0, 255, 255, 0.3)' }, + { offset: 1, color: 'rgba(0, 255, 255, 0)' } + ]) + } + }, + { + name: '鎴愬搧鍑哄簱', + type: 'line', + data: [], + areaStyle: { + color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ + { offset: 0, color: 'rgba(255, 0, 255, 0.3)' }, + { offset: 1, color: 'rgba(255, 0, 255, 0)' } + ]) + } + }, + { + name: '绌烘鍥炴祦', + type: 'line', + data: [], + areaStyle: { + color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ + { offset: 0, color: 'rgba(255, 255, 0, 0.3)' }, + { offset: 1, color: 'rgba(255, 255, 0, 0)' } + ]) + } + }, + { + name: '鎴愬搧鍥炲簱', + type: 'line', + data: [], + areaStyle: { + color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ + { offset: 0, color: 'rgba(0, 255, 0, 0.3)' }, + { offset: 1, color: 'rgba(0, 255, 0, 0)' } + ]) + } + } ] }; }, async fetchData() { - this.loading = true; + this.loading = true; this.error = null; try { @@ -137,8 +174,6 @@ } }, updateChart(data) { - - const dates = data.dateRange; const stats = data.dailyStatistics; @@ -183,6 +218,7 @@ </script> <style lang='scss' scoped> +/* 鏍峰紡閮ㄥ垎淇濇寔涓嶅彉 */ .user_Overview { li { flex: 1; @@ -219,7 +255,6 @@ } .allnum { - // background-image: url("../../assets/img/left_top_lan.png"); &::before { background-image: url("../../assets/img/left_top_lan.png"); } -- Gitblit v1.9.3