forked from github/dataease
fix: 修复主题滑块删除最后一下主题,滑块箭头指向不对问题
This commit is contained in:
parent
47203613d9
commit
0c97b7b9b3
@ -154,11 +154,16 @@ export default {
|
||||
})
|
||||
},
|
||||
querySubjectWithGroup() {
|
||||
this.slidersLoading = true
|
||||
const _this = this
|
||||
_this.slidersLoading = true
|
||||
querySubjectWithGroup({}).then(response => {
|
||||
this.sliders = []
|
||||
this.sliders = response.data
|
||||
this.slidersLoading = false
|
||||
_this.sliders = []
|
||||
_this.sliders = response.data
|
||||
_this.slidersLoading = false
|
||||
if (_this.sliders.length < _this.currentIndex) {
|
||||
_this.currentIndex = 1
|
||||
this.$emit('reload')
|
||||
}
|
||||
}).catch(() => {
|
||||
this.slidersLoading = false
|
||||
})
|
||||
|
@ -9,7 +9,7 @@
|
||||
style="height: 1px; position: absolute; left: 15px; right: 15px; top: 40px; box-sizing:border-box;border-bottom: 1px solid #e8eaed"
|
||||
/>
|
||||
<div>
|
||||
<slider />
|
||||
<slider v-if="sliderShow" @reload="sliderReload" />
|
||||
</div>
|
||||
<!--折叠面板-->
|
||||
<div v-if="collapseShow" style="margin: 10px;overflow-y: auto">
|
||||
@ -83,6 +83,7 @@ export default {
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
sliderShow: true,
|
||||
panelInfo: this.$store.state.panel.panelInfo,
|
||||
activeNames: ['panel'],
|
||||
chart: null,
|
||||
@ -110,7 +111,12 @@ export default {
|
||||
},
|
||||
|
||||
methods: {
|
||||
|
||||
sliderReload() {
|
||||
this.sliderShow = false
|
||||
this.$nextTick(() => {
|
||||
this.sliderShow = true
|
||||
})
|
||||
},
|
||||
init() {
|
||||
// 初始化赋值
|
||||
const chart = deepCopy(this.canvasStyleData.chart)
|
||||
|
Loading…
Reference in New Issue
Block a user