fix: 添加缺失的getProgressColor函数
This commit is contained in:
parent
d0e12b78c6
commit
f9b54a1f9f
@ -313,6 +313,14 @@ const formatDate = (date: string | null | undefined) => {
|
||||
return dayjs(date).format('MM/DD HH:mm')
|
||||
}
|
||||
|
||||
// 获取进度条颜色
|
||||
const getProgressColor = (progress: number) => {
|
||||
if (progress >= 80) return '#31f08b' // 绿色
|
||||
if (progress >= 50) return '#faad14' // 黄色
|
||||
if (progress >= 20) return '#ff7a45' // 橙色
|
||||
return '#ff4d4f' // 红色
|
||||
}
|
||||
|
||||
// 总览数据
|
||||
const totalCount = computed(() => designersList.value.length)
|
||||
const onlineCount = computed(() =>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user