diff --git a/src/assets/css/components/views/charts/chart.scss b/src/assets/css/components/views/charts/chart.scss index 4ba81d26..f5acbd3f 100644 --- a/src/assets/css/components/views/charts/chart.scss +++ b/src/assets/css/components/views/charts/chart.scss @@ -387,16 +387,30 @@ position: absolute; height: 100%; width: 100%; + left: 0; + top: 0; background-color: #fefefe; z-index: 1; opacity: .8; - i { + img { position: absolute; - left: calc(50% - 15px); - top: calc(50% - 15px); - font-size: 30px; - color: #aaa; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + + &.loading-img--large { + height: 30px; + width: 30px; + } + &.loading-img--small { + height: 14px; + width: 14px; + } + &.loading-img--default { + height: 20px; + width: 20px; + } } } diff --git a/src/assets/css/components/views/charts/chartRelationShipList.scss b/src/assets/css/components/views/charts/chartRelationShipList.scss index dd2c01e4..af9616d4 100644 --- a/src/assets/css/components/views/charts/chartRelationShipList.scss +++ b/src/assets/css/components/views/charts/chartRelationShipList.scss @@ -79,12 +79,6 @@ display: flex; width: calc(100% - 20px); position: relative; - .chart__loading { - i.el-icon-loading { - font-size: 16px; - top: calc(50% - 8.5px); - } - } .ship-body-list-title { width: 130px; font-size: 14px; diff --git a/src/assets/css/components/views/entityExplorer/entity-filter.scss b/src/assets/css/components/views/entityExplorer/entity-filter.scss index 1a2d38c6..75c52581 100644 --- a/src/assets/css/components/views/entityExplorer/entity-filter.scss +++ b/src/assets/css/components/views/entityExplorer/entity-filter.scss @@ -63,10 +63,9 @@ display: inline-block; text-align: center; flex: 1; - .chart__loading i.el-icon-loading { - font-size: 18px; - top: calc(50% - 10px); - left: calc(50% - 8px); + .chart__loading img { + left: unset; + right: 0; } } } diff --git a/src/assets/css/components/views/entityExplorer/entityList/detail-overview.scss b/src/assets/css/components/views/entityExplorer/entityList/detail-overview.scss index 2506f819..cfdf9c75 100644 --- a/src/assets/css/components/views/entityExplorer/entityList/detail-overview.scss +++ b/src/assets/css/components/views/entityExplorer/entityList/detail-overview.scss @@ -265,14 +265,12 @@ display: flex; .overview__tag-loading.overview__tag { position: relative; - .chart__loading { - top: 0; - left: 0; - } } .overview__tag { display: flex; - padding: 6px 15px; + padding: 0 15px; + height: 31px; + align-items: center; margin-right: 20px; background-color: #EFF6FE; font-size: 14px; diff --git a/src/components/common/Loading.vue b/src/components/common/Loading.vue index ccf98d85..358f1f11 100644 --- a/src/components/common/Loading.vue +++ b/src/components/common/Loading.vue @@ -1,6 +1,6 @@ @@ -8,7 +8,12 @@ export default { name: 'loading', props: { - loading: Boolean + loading: Boolean, + size: { + type: String, + default: 'default' // large default small + }, + innerStyle: String }, data () { return { @@ -31,6 +36,28 @@ export default { this.showLoading = n } } + }, + setup (props) { + const path = window.location.protocol + '//' + window.location.host + '/images/loading.gif' + let className = '' + switch (props.size) { + case 'large': { + className = 'loading-img--large' + break + } + case 'small': { + className = 'loading-img--small' + break + } + default: { + className = 'loading-img--default' + break + } + } + return { + path, + className + } } } diff --git a/src/components/entities/EntityDetail.vue b/src/components/entities/EntityDetail.vue deleted file mode 100644 index d1a9ebce..00000000 --- a/src/components/entities/EntityDetail.vue +++ /dev/null @@ -1,60 +0,0 @@ - - - diff --git a/src/components/entities/EntityList.vue b/src/components/entities/EntityList.vue deleted file mode 100644 index 4da5a0ca..00000000 --- a/src/components/entities/EntityList.vue +++ /dev/null @@ -1,367 +0,0 @@ - - - diff --git a/src/components/entities/LeftFilter.vue b/src/components/entities/LeftFilter.vue deleted file mode 100644 index 868b3654..00000000 --- a/src/components/entities/LeftFilter.vue +++ /dev/null @@ -1,111 +0,0 @@ - - - diff --git a/src/views/charts/charts/PieTable.vue b/src/views/charts/charts/PieTable.vue index 2615da28..29ccc0b7 100644 --- a/src/views/charts/charts/PieTable.vue +++ b/src/views/charts/charts/PieTable.vue @@ -14,9 +14,7 @@