fix: 实体详情 app下拉地图 loading修复

This commit is contained in:
@changcode
2022-05-30 10:46:22 +08:00
parent 0bf5378baa
commit 25495f3fea
2 changed files with 7 additions and 3 deletions

View File

@@ -52,7 +52,7 @@
color: #333333;
font-weight: 400;
div {
max-width: 400px;
max-width: 300px;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;

View File

@@ -200,6 +200,7 @@
:entity="entityCopy"
:query-params="queryParams"
:hide-header="true"
:loadingMap="loadingMap"
@getCurrentTimeRange="getCurrentTimeRange"
></chart>
</div>
@@ -303,7 +304,8 @@ export default {
loadingOut: false,
loadingIn: false,
loadingAlert: false,
loadingSecurityEvents: false
loadingSecurityEvents: false,
loadingMap: false
}
}
},
@@ -328,10 +330,12 @@ export default {
this.entityData.ipCount = result.ipCount
},
chartGetMap () {
this.loadingMap = true
get((this.trafficUrlMap), this.getQueryParams()).then(response => {
if (response.code === 200) {
this.chartData = response.data.result
}
this.loadingMap = false
})
},
queryRelated () {
@@ -341,9 +345,9 @@ export default {
},
mounted () {
this.queryParams = this.getQueryParams()
this.chartGetMap()
this.$nextTick(() => {
setTimeout(() => {
this.chartGetMap()
this.queryRelated()
}, 250)
})