客户列表显示时间应该是最后一次更新时间
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user