fix: 修复panel 页面请求数据前 createPanelTitleSec 功能闪出问题
This commit is contained in:
@@ -471,3 +471,12 @@
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.fade-enter,
|
||||||
|
.fade-leave-active {
|
||||||
|
opacity: .7;
|
||||||
|
}
|
||||||
|
.fade-enter-active,
|
||||||
|
.fade-leave-active {
|
||||||
|
transition: opacity 1s;
|
||||||
|
}
|
||||||
|
|||||||
@@ -1,6 +1,11 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="panel list-page">
|
<div class="panel list-page">
|
||||||
<div class="main-list">
|
<div class="main-list">
|
||||||
|
<div>
|
||||||
|
<transition name="el-zoom-in-center">
|
||||||
|
<div class="loading" v-if="isLoading"></div>
|
||||||
|
</transition>
|
||||||
|
</div>
|
||||||
<div class="main-container" style="padding-right: 0">
|
<div class="main-container" style="padding-right: 0">
|
||||||
<div class="top-tools">
|
<div class="top-tools">
|
||||||
<div v-if="panelData.length == 0" class="top-tool-left" style="margin-left: 10px;">
|
<div v-if="panelData.length == 0" class="top-tool-left" style="margin-left: 10px;">
|
||||||
@@ -108,12 +113,14 @@ import chartTempBox from '@/components/common/rightBox/chartTempBox'
|
|||||||
import topToolMoreOptions from '@/components/common/popBox/topToolMoreOptions'
|
import topToolMoreOptions from '@/components/common/popBox/topToolMoreOptions'
|
||||||
import Template from '@/components/page/config/template'
|
import Template from '@/components/page/config/template'
|
||||||
import { fromRoute } from '@/components/common/js/constants'
|
import { fromRoute } from '@/components/common/js/constants'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'panel',
|
name: 'panel',
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
fromRoute,
|
fromRoute,
|
||||||
overScroll10: false,
|
overScroll10: false,
|
||||||
|
isLoading: true,
|
||||||
panelLock: true,
|
panelLock: true,
|
||||||
showTopBtn: false, // top按钮
|
showTopBtn: false, // top按钮
|
||||||
visible: false,
|
visible: false,
|
||||||
@@ -546,9 +553,11 @@ export default {
|
|||||||
this.$refs.selectPanel.$refs.panelTree.setCurrentKey(this.showPanel)
|
this.$refs.selectPanel.$refs.panelTree.setCurrentKey(this.showPanel)
|
||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
})
|
})
|
||||||
|
this.isLoading = false
|
||||||
} else {
|
} else {
|
||||||
this.showPanel.id = ''
|
this.showPanel.id = ''
|
||||||
this.filter.panelId = ''
|
this.filter.panelId = ''
|
||||||
|
this.isLoading = true
|
||||||
}
|
}
|
||||||
this.pageObj.total = response.data.total
|
this.pageObj.total = response.data.total
|
||||||
if (!isInitData && (this.panel.id === '' || this.panel.id === this.showPanel.id)) {
|
if (!isInitData && (this.panel.id === '' || this.panel.id === this.showPanel.id)) {
|
||||||
@@ -923,3 +932,14 @@ export default {
|
|||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
@import '@/assets/css/common/tableCommon.scss';
|
@import '@/assets/css/common/tableCommon.scss';
|
||||||
</style>
|
</style>
|
||||||
|
<style scoped>
|
||||||
|
.loading {
|
||||||
|
position: fixed;
|
||||||
|
left: 250px;
|
||||||
|
top: 59px;
|
||||||
|
height: 100%;
|
||||||
|
width: 100%;
|
||||||
|
background: center center no-repeat #fff;
|
||||||
|
z-index: 10;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user