fix: 关闭panel页面首次加载的动画
This commit is contained in:
@@ -345,3 +345,8 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
.no-animation {
|
||||||
|
.vue-grid-item {
|
||||||
|
transition: none
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
<grid-layout
|
<grid-layout
|
||||||
ref="layout"
|
ref="layout"
|
||||||
v-if="gridLayoutShow"
|
v-if="gridLayoutShow"
|
||||||
|
:class="firstInit ? 'no-animation' : ''"
|
||||||
:col-num="12"
|
:col-num="12"
|
||||||
:maxRows="12"
|
:maxRows="12"
|
||||||
:is-draggable="!panelLock"
|
:is-draggable="!panelLock"
|
||||||
@@ -124,6 +125,7 @@ export default {
|
|||||||
fromRoute,
|
fromRoute,
|
||||||
gridLayoutLoading: false,
|
gridLayoutLoading: false,
|
||||||
gridLayoutShow: false,
|
gridLayoutShow: false,
|
||||||
|
firstInit: true,
|
||||||
filter: {}, // chart列表查询条件
|
filter: {}, // chart列表查询条件
|
||||||
copyDataList: [],
|
copyDataList: [],
|
||||||
noData: false, // no data
|
noData: false, // no data
|
||||||
@@ -267,7 +269,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
created () {
|
created () {
|
||||||
|
this.firstInit = true
|
||||||
},
|
},
|
||||||
mounted () {
|
mounted () {
|
||||||
this.init()
|
this.init()
|
||||||
@@ -281,6 +283,7 @@ export default {
|
|||||||
deep: true,
|
deep: true,
|
||||||
handler (n, o) {
|
handler (n, o) {
|
||||||
this.gridLayoutShow = false
|
this.gridLayoutShow = false
|
||||||
|
this.firstInit = true
|
||||||
this.gridLayoutLoading = true
|
this.gridLayoutLoading = true
|
||||||
this.noData = !n || n.length < 1
|
this.noData = !n || n.length < 1
|
||||||
const tempList = n.map(item => {
|
const tempList = n.map(item => {
|
||||||
@@ -322,6 +325,9 @@ export default {
|
|||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.gridLayoutShow = true
|
this.gridLayoutShow = true
|
||||||
})
|
})
|
||||||
|
setTimeout(() => {
|
||||||
|
this.firstInit = false
|
||||||
|
},200)
|
||||||
this.gridLayoutLoading = false
|
this.gridLayoutLoading = false
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,14 +25,15 @@
|
|||||||
<div v-if="systemNameShow[0].error" class="el-form-item__error" style="top: 10px;left: 164px"> {{systemNameShow[0].error}}</div>
|
<div v-if="systemNameShow[0].error" class="el-form-item__error" style="top: 10px;left: 164px"> {{systemNameShow[0].error}}</div>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="system-chart-config" v-loading="loading" v-for="(item, index) in chartConfig.param.datasource " :key="index">
|
<transition name="el-zoom-in-top">
|
||||||
|
<div class="system-chart-config" v-loading="loading" v-for="(item, index) in chartConfig.param.datasource " :key="index" v-show="systemNameShow[0].show">
|
||||||
<div class="system-chart-config-left">
|
<div class="system-chart-config-left">
|
||||||
<ul>
|
<ul>
|
||||||
<li
|
<li
|
||||||
v-for="(system,index1) in systemData"
|
v-for="(system,index1) in systemData"
|
||||||
:key="index1"
|
:key="index1"
|
||||||
class="system-chart-item"
|
class="system-chart-item"
|
||||||
:class="item.type === system.system ? 'is-select' : ''"
|
:class="system.name == chartConfig.param.datasource[index].type ? 'is-select' : ''"
|
||||||
@click="changeSystem(system, index)"
|
@click="changeSystem(system, index)"
|
||||||
>{{system.name}}</li>
|
>{{system.name}}</li>
|
||||||
</ul>
|
</ul>
|
||||||
@@ -44,7 +45,7 @@
|
|||||||
class="form-item--half-width"
|
class="form-item--half-width"
|
||||||
prop="param.systemGroup"
|
prop="param.systemGroup"
|
||||||
>
|
>
|
||||||
<el-select size="small" v-model="item.systemGroup" multiple collapse-tags :placeholder="$t('el.select.placeholder')" @change="systemGroupChange(index)">
|
<el-select size="small" v-model="item.systemGroup" multiple collapse-tags :placeholder="$t('el.select.placeholder')" @change="systemGroupChange(index)" popper-class="right-box-select-top prevent-clickoutside">
|
||||||
<el-option v-for="group in groupList" :value="group.name" :key="group.name" :label="group.name"/>
|
<el-option v-for="group in groupList" :value="group.name" :key="group.name" :label="group.name"/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@@ -54,7 +55,7 @@
|
|||||||
class="form-item--half-width"
|
class="form-item--half-width"
|
||||||
prop="param.systemSelect"
|
prop="param.systemSelect"
|
||||||
>
|
>
|
||||||
<el-select size="small" v-model="item.systemSelect" :placeholder="$t('el.select.placeholder')" @change="systemSelectChange(index)">
|
<el-select size="small" v-model="item.systemSelect" :placeholder="$t('el.select.placeholder')" @change="systemSelectChange(index)" popper-class="right-box-select-top prevent-clickoutside">
|
||||||
<el-option v-for="selectItem in selectList" :value="selectItem.name" :key="selectItem.name" :label="selectItem.name"/>
|
<el-option v-for="selectItem in selectList" :value="selectItem.name" :key="selectItem.name" :label="selectItem.name"/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@@ -90,6 +91,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</transition>
|
||||||
<!--title-->
|
<!--title-->
|
||||||
<div class="form__sub-title">
|
<div class="form__sub-title">
|
||||||
<span>{{$t('dashboard.panel.chartForm.displayConfig')}}</span>
|
<span>{{$t('dashboard.panel.chartForm.displayConfig')}}</span>
|
||||||
|
|||||||
Reference in New Issue
Block a user