fix(ui): 修复打卡详情页附件类型标签显示问题
在打卡详情页中,根据任务类型动态显示附件类型标签为必选或可选 在打卡目标列表组件中,为必填项添加红色星号标识
Showing
2 changed files
with
4 additions
and
2 deletions
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2025-12-16 11:44:27 | 2 | * @Date: 2025-12-16 11:44:27 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2025-12-17 11:57:03 | 4 | + * @LastEditTime: 2026-01-21 10:04:55 |
| 5 | * @FilePath: /mlaj/src/components/count/CheckinTargetList.vue | 5 | * @FilePath: /mlaj/src/components/count/CheckinTargetList.vue |
| 6 | * @Description: 打卡动态对象列表组件 | 6 | * @Description: 打卡动态对象列表组件 |
| 7 | --> | 7 | --> |
| ... | @@ -9,6 +9,8 @@ | ... | @@ -9,6 +9,8 @@ |
| 9 | <div class="mb-4"> | 9 | <div class="mb-4"> |
| 10 | <div class="flex justify-between items-center mb-2 mx-2"> | 10 | <div class="flex justify-between items-center mb-2 mx-2"> |
| 11 | <div class="flex items-center gap-2"> | 11 | <div class="flex items-center gap-2"> |
| 12 | + <!-- 必填项目前面加红色*号 --> | ||
| 13 | + <div class="text-red-500">*</div> | ||
| 12 | <div class="text-sm font-bold text-gray-700">{{ dynamicFieldText }}列表</div> | 14 | <div class="text-sm font-bold text-gray-700">{{ dynamicFieldText }}列表</div> |
| 13 | <div class="text-xs text-gray-400 font-normal scale-90 origin-left">(列表项长按可编辑)</div> | 15 | <div class="text-xs text-gray-400 font-normal scale-90 origin-left">(列表项长按可编辑)</div> |
| 14 | </div> | 16 | </div> | ... | ... |
| ... | @@ -74,7 +74,7 @@ | ... | @@ -74,7 +74,7 @@ |
| 74 | <!-- 类型选项卡 --> | 74 | <!-- 类型选项卡 --> |
| 75 | <div class="checkin-tabs" v-if="selectedTaskValue.length > 0"> | 75 | <div class="checkin-tabs" v-if="selectedTaskValue.length > 0"> |
| 76 | <div class="tabs-header"> | 76 | <div class="tabs-header"> |
| 77 | - <div class="tab-title">附件类型</div> | 77 | + <div class="tab-title">{{ taskType === 'count' ? '附件类型(可选)' : '附件类型' }}</div> |
| 78 | <div class="tabs-nav"> | 78 | <div class="tabs-nav"> |
| 79 | <div v-for="option in attachmentTypeOptions" :key="option.key" | 79 | <div v-for="option in attachmentTypeOptions" :key="option.key" |
| 80 | @click="switchType(option.key)" :class="['tab-item', { | 80 | @click="switchType(option.key)" :class="['tab-item', { | ... | ... |
-
Please register or login to post a comment