feat 项目列表

This commit is contained in:
Ironsp
2026-09-14 16:04:26 +08:00
parent dd7c8b4162
commit f53a3da87c
8 changed files with 318 additions and 56 deletions

View File

@@ -10,18 +10,18 @@ defineProps<{
function getStatusText(status: number) {
const map: Record<number, string> = {
0: '作业中',
1: '暂停中',
2: '已结束',
0: '未完成',
1: '已结束',
2: '进行中',
}
return map[status] || '未知'
}
function getStatusColor(status: number) {
const map: Record<number, string> = {
0: '#52c41a',
1: '#faad14',
2: '#999999',
0: '#faad14',
1: '#999999',
2: '#52c41a',
}
return map[status] || '#999999'
}
@@ -79,7 +79,7 @@ function getStatusColor(status: number) {
</view>
<!-- 操作按钮 -->
<view v-if="status === 0 || status === 1" class="btn-row">
<view v-if="status !== 1" class="btn-row">
<wd-button size="large" type="primary" round>
开始项目
</wd-button>