Commit cc2cc630 by Lin

fix(reception): 修复接待中心页面数据加载逻辑

- 调整横屏模式下的客户列表和接待记录加载条件,确保在不同子标签下正确获取数据
- 增加默认加载客户列表的逻辑,提升页面初始数据展示的完整性
1 parent 3b2d4ff0
...@@ -1242,9 +1242,7 @@ onMounted(() => { ...@@ -1242,9 +1242,7 @@ onMounted(() => {
// 横屏:左右分栏同时展示两个模块,因此初始化时两边数据都需要拉取 // 横屏:左右分栏同时展示两个模块,因此初始化时两边数据都需要拉取
if (isLandscape.value == true) { if (isLandscape.value == true) {
void getPerformanceData() void getPerformanceData()
if (listSubTabIndex.value == 0) { if (listSubTabIndex.value != 0) {
void getCustomerList(false)
} else {
void getReceptionRecordList(false) void getReceptionRecordList(false)
} }
} else { } else {
...@@ -1252,12 +1250,16 @@ onMounted(() => { ...@@ -1252,12 +1250,16 @@ onMounted(() => {
void getPerformanceData() void getPerformanceData()
} else { } else {
if (listSubTabIndex.value == 0) { if (listSubTabIndex.value == 0) {
void getCustomerList(false) // 客户列表会在下方统一触发一次
} else { } else {
void getReceptionRecordList(false) void getReceptionRecordList(false)
} }
} }
} }
// 默认页面加载完成后拉取一次客户列表
customerFilePageNum.value = 1
void getCustomerList(false)
}) })
// 在 center.uvue setup 顶部监听自定义事件,刷新列表 // 在 center.uvue setup 顶部监听自定义事件,刷新列表
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!