diff --git a/pages/home/work-home.vue b/pages/home/work-home.vue index e33b8d7..aa29d21 100644 --- a/pages/home/work-home.vue +++ b/pages/home/work-home.vue @@ -88,7 +88,7 @@ - + 计划执行: {{ i.planDate }} @@ -223,14 +223,18 @@ function handleCert() { } } -function toTodoDetail(id, editMode = false) { +function toTodoDetail(todo) { uni.navigateTo({ - url: `/pages/work/todo/todo-detail?id=${id}&editMode=${editMode ? 'YES' : ''}` - }) + url: `/pages/case/followup-detail?archiveId=${encodeURIComponent(todo.customerId || '')}&mode=edit&id=${encodeURIComponent(todo._id)}`, + }); + // uni.navigateTo({ + // url: `/pages/work/todo/todo-detail?id=${id}&editMode=${editMode ? 'YES' : ''}` + // }) } async function getList() { if (!doctorInfo.value || !doctorInfo.value.userid) { + list.value = [] return } const data = { @@ -270,12 +274,8 @@ async function getList() { } } -useLoad(() => { - console.log("工作台页面加载"); -}); useShow(async () => { - console.log("工作台页面加!!!@@@载"); await getDoctorInfo(); changePage(1) }) @@ -409,4 +409,9 @@ useShow(async () => { .translate-y--1 { transform: translateY(-2rpx); } + +.icon-edit { + width: 24rpx; + height: 24rpx; +} \ No newline at end of file