1
lzhe
2024-10-10 d1b6cd8e5270b15546c94587fe2648453d525eee
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<template>
    <el-card shadow="never" header="当前已用量">
        <el-progress :text-inside="true" :stroke-width="20" :color="color" :percentage="value" :format="format"/>
        <el-row :gutter="15" style="margin-top: 20px;">
            <el-col :lg="6">
                <el-card shadow="never">
                    <sc-statistic title="文档" value="7.41" suffix="GB" groupSeparator></sc-statistic>
                </el-card>
            </el-col>
            <el-col :lg="6">
                <el-card shadow="never">
                    <sc-statistic title="图片" value="12.90" suffix="GB" groupSeparator></sc-statistic>
                </el-card>
            </el-col>
            <el-col :lg="6">
                <el-card shadow="never">
                    <sc-statistic title="视音频" value="68.79" suffix="MB" groupSeparator></sc-statistic>
                </el-card>
            </el-col>
            <el-col :lg="6">
                <el-card shadow="never">
                    <sc-statistic title="其他" value="17.58" suffix="GB" groupSeparator></sc-statistic>
                </el-card>
            </el-col>
        </el-row>
    </el-card>
</template>
 
<script>
    import scStatistic from '@/components/scStatistic';
 
    export default {
        components: {
            scStatistic
        },
        data() {
            return {
                value: 39.58,
                color: [
                    { color: '#67C23A', percentage: 40 },
                    { color: '#E6A23C', percentage: 60 },
                    { color: '#F56C6C', percentage: 80 },
                ]
            }
        },
        methods: {
            format(percentage){
                return percentage + "G"
            }
        }
    }
</script>
 
<style>
</style>