待办列表:实际显示的10条待办数据。里面的患者信息展示不一致
This commit is contained in:
parent
aaebf41a63
commit
272240fc1e
@ -176,7 +176,9 @@ const filtered = ref(false);
|
|||||||
const filterVisible = ref(false);
|
const filterVisible = ref(false);
|
||||||
const filterData = ref({ eventStatus: 'processing' });
|
const filterData = ref({ eventStatus: 'processing' });
|
||||||
const followUpType = ref('person') // person team
|
const followUpType = ref('person') // person team
|
||||||
const { total, list, loading, page, pages, pageSize, changePage } = usePageList(getList)
|
const { total, list, loading, page, pages, pageSize, changePage } = usePageList(getList, {
|
||||||
|
pageSize: 20
|
||||||
|
})
|
||||||
let queryVersion = 0;
|
let queryVersion = 0;
|
||||||
|
|
||||||
const certStatus = computed(() => doctorInfo.value?.verifyStatus ? certConfig[doctorInfo.value.verifyStatus] : null)
|
const certStatus = computed(() => doctorInfo.value?.verifyStatus ? certConfig[doctorInfo.value.verifyStatus] : null)
|
||||||
@ -279,8 +281,8 @@ async function getList() {
|
|||||||
corpId: account.value.corpId,
|
corpId: account.value.corpId,
|
||||||
startDate: filterData.value.startDate,
|
startDate: filterData.value.startDate,
|
||||||
endDate: filterData.value.endDate,
|
endDate: filterData.value.endDate,
|
||||||
page: page.value,
|
page: requestPage,
|
||||||
pageSize: 4
|
pageSize: pageSize.value
|
||||||
}
|
}
|
||||||
if (followUpType.value === 'person') {
|
if (followUpType.value === 'person') {
|
||||||
data.executorUserId = doctorInfo.value.userid;
|
data.executorUserId = doctorInfo.value.userid;
|
||||||
@ -305,7 +307,13 @@ async function getList() {
|
|||||||
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'
|
ownTeam: followUpType.value === 'team'
|
||||||
})) : [];
|
})) : [];
|
||||||
list.value = requestPage === 1 ? arr : [...list.value, ...arr];
|
if (requestPage === 1) {
|
||||||
|
list.value = arr;
|
||||||
|
} else {
|
||||||
|
const existingIds = new Set(list.value.map(item => item._id).filter(Boolean));
|
||||||
|
const newItems = arr.filter(item => !item._id || !existingIds.has(item._id));
|
||||||
|
list.value = [...list.value, ...newItems];
|
||||||
|
}
|
||||||
total.value = res && res.total > 0 ? res.total : 0;
|
total.value = res && res.total > 0 ? res.total : 0;
|
||||||
pages.value = res && res.pages > 0 ? res.pages : 0;
|
pages.value = res && res.pages > 0 ? res.pages : 0;
|
||||||
if (!res || !res.success) {
|
if (!res || !res.success) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user