客户列表显示时间应该是最后一次更新时间

This commit is contained in:
zhonghua.li
2026-04-15 15:15:37 +08:00
parent 56c03a2e0e
commit abe8672079
7 changed files with 97 additions and 34 deletions

View File

@@ -1,6 +1,6 @@
<template>
<view class="subpackage-host">
<component v-if="Impl" :is="Impl" />
<component v-if="Impl" :is="Impl" :incomingTab="incomingTab" />
<view v-else class="loading">
<text v-if="error">{{ error }}</text>
<text v-else>正在加载接待模块...</text>
@@ -13,12 +13,26 @@ export default {
data() {
return {
Impl: null,
incomingTab: '',
error: ''
};
},
onLoad() {
this.loadImpl();
},
onShow() {
// tabBar 的 switchTab 不稳定携带 query因此从 storage 消费目标tab
try {
const allowed = ['status', 'reception', 'tag'];
const tab = (uni.getStorageSync('workbench-reception-tab') || '').toString();
if (allowed.includes(tab)) {
this.incomingTab = tab;
uni.removeStorageSync('workbench-reception-tab');
}
} catch (e) {
// ignore
}
},
methods: {
loadSubPackagePagesSubpackage() {
return new Promise((resolve, reject) => {