智慧园区前端大屏
shuishen
2024-11-20 1d2940cf26e01b71b0e6ba86353ffb5e19eb6d12
救援队伍统计图调整
1 files modified
16 ■■■■■ changed files
src/views/survey/components/box/dataContent.vue 16 ●●●●● patch | view | raw | blame | history
src/views/survey/components/box/dataContent.vue
@@ -2,7 +2,7 @@
 * @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:
 *
@@ -18,6 +18,8 @@
const curEcharts = ref(null)
let myEcharts = reactive(null)
const echartsColors = ['#1E90FF', '#36A2EB', '#FFD700', '#FFA500', '#228B22', '#8FBC8F']
function getStatistic () {
  getRescueTeamStatistic().then((res) => {
@@ -108,10 +110,14 @@
          name: "救援人数",
          type: "bar",
          barWidth: "30",
          data: yaxis_data,
          itemStyle: {
            color: "#70AFEA",
          },
          data: yaxis_data.map((i, ind) => {
            return {
              value: i,
              itemStyle: {
                color: echartsColors[ind],
              },
            }
          }),
        },
      ],
    })