无人机管理后台前端(已迁走)
chenyao
2025-09-19 988c499a54c177707a8ecfcef18b592dab8c7162
feat:更新机巢事件数量占比
1 files modified
16 ■■■■■ changed files
src/views/job/components/TaskTop/TaskIndustry.vue 16 ●●●●● patch | view | raw | blame | history
src/views/job/components/TaskTop/TaskIndustry.vue
@@ -22,15 +22,15 @@
        formatter: '{b}: {c} ({d}%)',
    },
    legend: {
        orient: 'horizontal',
        left: 'center',
        bottom: '2%',
    orient: 'vertical',
    top: 'center',
    right: '20',
        textStyle: {
            color: '#363636',
            fontSize: 12,
        },
        itemWidth: 2, // 减小图例标记的宽度
        itemHeight: 3, // 减小图例标记的高度
        itemHeight: 6, // 减小图例标记的高度
        itemGap: 8, // 减小图例项之间的间距
        formatter: '{name}', // 简化图例文本
    },
@@ -39,10 +39,8 @@
            name: '机巢事件统计',
            type: 'pie',
            // roseType: 'radius',
            radius: ['36%', '60%'],
            // center: ['50%', '45%'],
            // radius: '70%', // 设置饼图的半径
            center: ['50%', '36%'], // 调整饼图位置
      radius: ['20%', '70%'],
      center: ['30%', '50%'],
            data: [],
            label: {
                show: true,
@@ -94,7 +92,7 @@
<style lang="scss" scoped>
.task-industry {
    width: 276px;
    width: 300px;
    height: 100%;
    background: #FFFFFF;
    border-radius: 8px 8px 8px 8px;