CN-1088 实体详情情报聚合tab的nodata提示不友好
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
<chart-error v-if="showError" :content="errorMsg" class="entity-detail-event-error"></chart-error>
|
<chart-error v-if="showError" :content="errorMsg" class="entity-detail-event-error"></chart-error>
|
||||||
<chart-no-data v-if="isNoData && !showError" test-id="no-data"></chart-no-data>
|
<chart-no-data v-if="isNoData && !showError" test-id="no-data"></chart-no-data>
|
||||||
|
|
||||||
<div v-if="!isNoData && !showError" class="information-aggregation__table">
|
<div v-if="!isNoData && !showError && !loading" class="information-aggregation__table">
|
||||||
<el-table
|
<el-table
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
tooltip-effect="light"
|
tooltip-effect="light"
|
||||||
@@ -100,7 +100,8 @@ export default {
|
|||||||
name: 'InformationAggregation',
|
name: 'InformationAggregation',
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
informationAggregationList: []
|
informationAggregationList: [],
|
||||||
|
loading: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mixins: [chartMixin],
|
mixins: [chartMixin],
|
||||||
@@ -124,6 +125,7 @@ export default {
|
|||||||
return value
|
return value
|
||||||
},
|
},
|
||||||
getData () {
|
getData () {
|
||||||
|
this.loading = true
|
||||||
this.toggleLoading(true)
|
this.toggleLoading(true)
|
||||||
this.informationAggregationList = []
|
this.informationAggregationList = []
|
||||||
axios.get(`${api.entity.informationAggregation}/${this.entity.entityType}?resource=${this.entity.entityName}&pageSize=100&pageNo=1`).then(response => {
|
axios.get(`${api.entity.informationAggregation}/${this.entity.entityType}?resource=${this.entity.entityName}&pageSize=100&pageNo=1`).then(response => {
|
||||||
@@ -167,6 +169,7 @@ export default {
|
|||||||
this.isNoData = false
|
this.isNoData = false
|
||||||
this.errorMsg = this.errorMsgHandler(e)
|
this.errorMsg = this.errorMsgHandler(e)
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
|
this.loading = false
|
||||||
this.toggleLoading(false)
|
this.toggleLoading(false)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user