Update work-home.vue
This commit is contained in:
parent
571f0c56d1
commit
dfb4465364
@ -88,7 +88,7 @@
|
||||
</template>
|
||||
|
||||
<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="text-base text-dark">计划执行: {{ i.planDate }}</view>
|
||||
<view class="flex items-center">
|
||||
@ -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)
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user