|
@ -8,7 +8,7 @@ |
|
|
<view class="flex items-center mb-1"> |
|
|
<view class="flex items-center mb-1"> |
|
|
<view class="mr-2">{{ item.name }}</view> |
|
|
<view class="mr-2">{{ item.name }}</view> |
|
|
<!-- 状态 TODO:--> |
|
|
<!-- 状态 TODO:--> |
|
|
<view class="px-2 text-xs text-green-400 bg-green-100 rounded-full">进行中</view> |
|
|
<view class="px-2 text-xs text-green-400 bg-green-100 rounded-full flex-shrink-0">进行中</view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
<view class="flex items-center text-xs text-gray-400"> |
|
|
<view class="flex items-center text-xs text-gray-400"> |
|
@ -63,7 +63,7 @@ |
|
|
? 'text-red-400 bg-red-100' |
|
|
? 'text-red-400 bg-red-100' |
|
|
: 'text-gray-400 bg-gray-100' |
|
|
: 'text-gray-400 bg-gray-100' |
|
|
" |
|
|
" |
|
|
class="px-2 text-xs text-gray-400 bg-gray-100 rounded-full" |
|
|
class="px-2 text-xs text-gray-400 bg-gray-100 rounded-full flex-shrink-0" |
|
|
> |
|
|
> |
|
|
{{ subItem.status === 0 ? '未开始' : subItem.status === 1 ? '进行中' : subItem.status === 2 ? '暂停' : '已完成' }} |
|
|
{{ subItem.status === 0 ? '未开始' : subItem.status === 1 ? '进行中' : subItem.status === 2 ? '暂停' : '已完成' }} |
|
|
</view> |
|
|
</view> |
|
@ -136,11 +136,9 @@ export default { |
|
|
this.showMenu = true; |
|
|
this.showMenu = true; |
|
|
this.projectId = project.id; |
|
|
this.projectId = project.id; |
|
|
this.tips.text = project.name; |
|
|
this.tips.text = project.name; |
|
|
console.log(this.projectId, '点击的项目'); |
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
chooseAction(e) { |
|
|
chooseAction(e) { |
|
|
console.log(e, '点击操作'); |
|
|
|
|
|
let data = { index: e, projectId: this.projectId }; |
|
|
let data = { index: e, projectId: this.projectId }; |
|
|
this.$emit('chooseAction', data); |
|
|
this.$emit('chooseAction', data); |
|
|
}, |
|
|
}, |
|
|