[update 83083] 打包管理&到账开票-更新信息后,悬浮不会重新请求
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user