Update work-home.vue

This commit is contained in:
huxuejian 2026-02-10 17:30:53 +08:00
parent e5bcf8de62
commit 441fc8a969

View File

@ -88,10 +88,10 @@
</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)">
<view v-for="i in list" :key="i._id" class="mb-10 shadow-lg bg-white" @click="toTodoDetail(i._id, i.ownTeam)">
<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" @click.stop="toTodoDetail(i._id, true)">
<view class="flex items-center">
<view class="mr-5 text-base text-dark">患者: {{ i.customerName }}</view>
<image class="icon-edit" src="/static/work/edit-pen.svg" />
</view>
@ -259,7 +259,8 @@ async function getList() {
endTime: i.endTime && dayjs(i.endTime).isValid() ? dayjs(i.endTime).format("YYYY-MM-DD HH:mm") : "",
createTime: i.createTime && dayjs(i.createTime).isValid() ? dayjs(i.createTime).format("YYYY-MM-DD HH:mm") : "",
eventStatusLabel: statusNames[i.eventStatus],
fileList: Array.isArray(i.fileList) ? i.fileList.filter(i => i && i.file && i.file.name) : []
fileList: Array.isArray(i.fileList) ? i.fileList.filter(i => i && i.file && i.file.name) : [],
ownTeam: followUpType.value === 'team'
})) : [];
list.value = page.value === 1 ? arr : [...list.value, ...arr];
total.value = res && res.total > 0 ? res.total : 0;