From 5fa9e2a7e2677302410c75e1fecc2714b9e5ac54 Mon Sep 17 00:00:00 2001 From: danshihao Date: Tue, 26 Mar 2024 16:56:46 +0800 Subject: [PATCH] =?UTF-8?q?[update=2083083]=20=E6=89=93=E5=8C=85=E7=AE=A1?= =?UTF-8?q?=E7=90=86&=E5=88=B0=E8=B4=A6=E5=BC=80=E7=A5=A8-=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E4=BF=A1=E6=81=AF=E5=90=8E=EF=BC=8C=E6=82=AC=E6=B5=AE?= =?UTF-8?q?=E4=B8=8D=E4=BC=9A=E9=87=8D=E6=96=B0=E8=AF=B7=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/tools/StatusSlot.vue | 10 ++++++++-- .../arriveAndInvoicing/ArriveAndInvoivingList.vue | 12 ++++++------ src/views/packManagement/PackCompanyList.vue | 8 ++++---- 3 files changed, 18 insertions(+), 12 deletions(-) diff --git a/src/components/tools/StatusSlot.vue b/src/components/tools/StatusSlot.vue index 237d25e..fda411a 100644 --- a/src/components/tools/StatusSlot.vue +++ b/src/components/tools/StatusSlot.vue @@ -76,6 +76,12 @@ export default { type: String, required: false, default: 'pack' + }, + // 已有数据,悬浮是否重新加载 + hasInfoHoverNeedLoad: { + type: Boolean, + required: false, + default: false } }, computed: { @@ -142,8 +148,8 @@ export default { }, visibleChange(visible) { // 到账、开票、邮寄 的时候,请求接口获得相应的数据 - // 判断条件 tooltip显示、 有不同的统计状态,统计状态值不为0 没有请求过详情数据 - if (visible && this.statusType && this.statusNo && !this.hasInfo) { + // 判断条件 tooltip显示、 有不同的统计状态,统计状态值不为0 (已有数据是否重新请求 || 没有请求过详情数据) + if (visible && this.statusType && this.statusNo && (this.hasInfoHoverNeedLoad || !this.hasInfo)) { let idKey = this.statusKey === 'confirm' && 'projectId' || 'id' this.getInfoFunc({ [idKey]: this.statuObj.id }).then(res => { if (res.success) { diff --git a/src/views/financialManagement/arriveAndInvoicing/ArriveAndInvoivingList.vue b/src/views/financialManagement/arriveAndInvoicing/ArriveAndInvoivingList.vue index 87d9dcb..0e7617f 100644 --- a/src/views/financialManagement/arriveAndInvoicing/ArriveAndInvoivingList.vue +++ b/src/views/financialManagement/arriveAndInvoicing/ArriveAndInvoivingList.vue @@ -132,33 +132,33 @@ diff --git a/src/views/packManagement/PackCompanyList.vue b/src/views/packManagement/PackCompanyList.vue index c26c916..185d4fd 100644 --- a/src/views/packManagement/PackCompanyList.vue +++ b/src/views/packManagement/PackCompanyList.vue @@ -56,19 +56,19 @@