hookehuyr

refactor(打卡): 移除测试数据和删除功能

清理CheckinDetailPage中的测试数据并移除CheckinTargetList的删除选项
<!--
* @Date: 2025-12-16 11:44:27
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-12-16 17:59:29
* @LastEditTime: 2025-12-16 18:19:56
* @FilePath: /mlaj/src/components/count/CheckinTargetList.vue
* @Description: 打卡动态对象列表组件
-->
......@@ -10,7 +10,7 @@
<div class="flex justify-between items-center mb-2 mx-2">
<div class="flex items-center gap-2">
<div class="text-sm font-bold text-gray-700">{{ dynamicFieldText }}列表</div>
<div class="text-xs text-gray-400 font-normal scale-90 origin-left">(长按可编辑/删除)</div>
<div class="text-xs text-gray-400 font-normal scale-90 origin-left">(列表项长按可编辑)</div>
</div>
<van-button size="small" type="primary" plain icon="plus" @click="onAdd" class="!h-7">添加</van-button>
</div>
......@@ -115,7 +115,6 @@ const currentItem = ref(null)
const actions = [
{ name: '编辑', color: '#1989fa', action: 'edit' },
{ name: '删除', color: '#ee0a24', action: 'delete' }
]
const startLongPress = (item) => {
......
......@@ -229,18 +229,6 @@ const fetchTargetList = async (subtask_id) => {
if (code) {
targetList.value = data.gratitude_people || []
}
targetList.value = [{
id: 1,
name: '张三',
city: '北京',
unit: '公司',
}, {
id: 2,
name: '李四',
city: '上海',
unit: '公司',
}]
}
// 动态表单字段 (默认值,实际会根据选择的作业动态更新)
......@@ -386,8 +374,6 @@ const confirmAddTarget = async (formFields) => {
targetList.value.push({
...formData,
})
console.warn(formData);
console.warn(targetList.value);
showToast('新增成功')
}
......