| | |
| | | * @Author: shuishen 1109946754@qq.com |
| | | * @Date: 2024-11-04 16:32:04 |
| | | * @LastEditors: shuishen 1109946754@qq.com |
| | | * @LastEditTime: 2024-11-19 15:29:44 |
| | | * @LastEditTime: 2024-11-20 19:01:15 |
| | | * @FilePath: \bigScreen\src\views\survey\components\box\dataContent.vue |
| | | * @Description: |
| | | * |
| | |
| | | const curEcharts = ref(null) |
| | | |
| | | let myEcharts = reactive(null) |
| | | |
| | | const echartsColors = ['#1E90FF', '#36A2EB', '#FFD700', '#FFA500', '#228B22', '#8FBC8F'] |
| | | |
| | | function getStatistic () { |
| | | getRescueTeamStatistic().then((res) => { |
| | |
| | | name: "救援人数", |
| | | type: "bar", |
| | | barWidth: "30", |
| | | data: yaxis_data, |
| | | itemStyle: { |
| | | color: "#70AFEA", |
| | | }, |
| | | data: yaxis_data.map((i, ind) => { |
| | | return { |
| | | value: i, |
| | | itemStyle: { |
| | | color: echartsColors[ind], |
| | | }, |
| | | } |
| | | }), |
| | | }, |
| | | ], |
| | | }) |