Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
mlaj
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2025-12-16 18:20:52 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
0d74e4d8bcd86099230e7c3f369d69be474c31f9
0d74e4d8
1 parent
1407b7f2
refactor(打卡): 移除测试数据和删除功能
清理CheckinDetailPage中的测试数据并移除CheckinTargetList的删除选项
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
17 deletions
src/components/count/CheckinTargetList.vue
src/views/checkin/CheckinDetailPage.vue
src/components/count/CheckinTargetList.vue
View file @
0d74e4d
<!--
* @Date: 2025-12-16 11:44:27
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-12-16 1
7:59:29
* @LastEditTime: 2025-12-16 1
8: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) => {
...
...
src/views/checkin/CheckinDetailPage.vue
View file @
0d74e4d
...
...
@@ -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('新增成功')
}
...
...
Please
register
or
login
to post a comment