This commit is contained in:
wangdongbo 2026-02-11 17:07:14 +08:00
commit 0ecef71467

View File

@ -88,7 +88,7 @@
</template> </template>
<scroll-view v-if="list.length" scroll-y="true" class="h-full"> <scroll-view v-if="list.length" scroll-y="true" class="h-full">
<view v-for="i in list" :key="i._id" class="mb-10 shadow-lg bg-white" @click="toTodoDetail(i._id, i.ownTeam)"> <view v-for="i in list" :key="i._id" class="mb-10 shadow-lg bg-white" @click="toTodoDetail(i)">
<view class="flex items-center justify-between px-15 py-10 border-b"> <view class="flex items-center justify-between px-15 py-10 border-b">
<view class="text-base text-dark">计划执行: {{ i.planDate }}</view> <view class="text-base text-dark">计划执行: {{ i.planDate }}</view>
<view class="flex items-center"> <view class="flex items-center">
@ -223,14 +223,18 @@ function handleCert() {
} }
} }
function toTodoDetail(id, editMode = false) { function toTodoDetail(todo) {
uni.navigateTo({ 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() { async function getList() {
if (!doctorInfo.value || !doctorInfo.value.userid) { if (!doctorInfo.value || !doctorInfo.value.userid) {
list.value = []
return return
} }
const data = { const data = {
@ -270,12 +274,8 @@ async function getList() {
} }
} }
useLoad(() => {
console.log("工作台页面加载");
});
useShow(async () => { useShow(async () => {
console.log("工作台页面加!!!@@@载");
await getDoctorInfo(); await getDoctorInfo();
changePage(1) changePage(1)
}) })
@ -409,4 +409,9 @@ useShow(async () => {
.translate-y--1 { .translate-y--1 {
transform: translateY(-2rpx); transform: translateY(-2rpx);
} }
.icon-edit {
width: 24rpx;
height: 24rpx;
}
</style> </style>