forked from github/dataease
fix(仪表板): 修复仪表板联动后需要清除联动条件才能进行下次联动的问题
This commit is contained in:
parent
b2fc30bed3
commit
328b648e43
@ -1815,7 +1815,7 @@ body.tox-dialog__disable-scroll {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.tox .tox-editor-header {
|
.tox .tox-editor-header {
|
||||||
z-index: 1;
|
z-index: 1000;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tox:not(.tox-tinymce-inline) .tox-editor-header {
|
.tox:not(.tox-tinymce-inline) .tox-editor-header {
|
||||||
|
File diff suppressed because one or more lines are too long
@ -1815,7 +1815,7 @@ body.tox-dialog__disable-scroll {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.tox .tox-editor-header {
|
.tox .tox-editor-header {
|
||||||
z-index: 1;
|
z-index: 1000;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tox:not(.tox-tinymce-inline) .tox-editor-header {
|
.tox:not(.tox-tinymce-inline) .tox-editor-header {
|
||||||
|
File diff suppressed because one or more lines are too long
@ -77,6 +77,8 @@ export default {
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
drawLeft: 'none',
|
||||||
|
drawRight: 'auto',
|
||||||
initReady: false,
|
initReady: false,
|
||||||
editReady: false,
|
editReady: false,
|
||||||
editShow: true,
|
editShow: true,
|
||||||
@ -148,11 +150,21 @@ export default {
|
|||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.viewInit()
|
this.viewInit()
|
||||||
|
bus.$on('change_panel_right_draw', this.changeRightDrawOpen)
|
||||||
},
|
},
|
||||||
beforeDestroy() {
|
beforeDestroy() {
|
||||||
bus.$off('fieldSelect-' + this.element.propValue.viewId)
|
bus.$off('fieldSelect-' + this.element.propValue.viewId)
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
changeRightDrawOpen(param){
|
||||||
|
if(param){
|
||||||
|
this.drawLeft = 'auto!important'
|
||||||
|
this.drawRight = '380px'
|
||||||
|
}else{
|
||||||
|
this.drawLeft = 'none'
|
||||||
|
this.drawRight = 'auto'
|
||||||
|
}
|
||||||
|
},
|
||||||
viewInit() {
|
viewInit() {
|
||||||
bus.$on('fieldSelect-' + this.element.propValue.viewId, this.fieldSelect)
|
bus.$on('fieldSelect-' + this.element.propValue.viewId, this.fieldSelect)
|
||||||
tinymce.init({})
|
tinymce.init({})
|
||||||
@ -283,3 +295,11 @@ export default {
|
|||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
<style lang="scss">
|
||||||
|
.tox-tinymce-inline{
|
||||||
|
left: var(--drawLeft);
|
||||||
|
right: var(--drawRight);
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
|
||||||
|
@ -17,8 +17,8 @@ export const isChange = (conditions1, conditions2) => {
|
|||||||
let arr1 = JSON.parse(JSON.stringify(conditions1))
|
let arr1 = JSON.parse(JSON.stringify(conditions1))
|
||||||
let arr2 = JSON.parse(JSON.stringify(conditions2))
|
let arr2 = JSON.parse(JSON.stringify(conditions2))
|
||||||
const strCodeAt = (str) => str[0].charCodeAt()
|
const strCodeAt = (str) => str[0].charCodeAt()
|
||||||
arr1 = arr1.sort((s1, s2) => strCodeAt(s1.componentId) - strCodeAt(s2.componentId))
|
arr1 = arr1.sort((s1, s2) => strCodeAt(s1.componentId.trim() || s1.filedId) - strCodeAt(s2.componentId.trim() || s2.filedId))
|
||||||
arr2 = arr2.sort((s1, s2) => strCodeAt(s1.componentId) - strCodeAt(s2.componentId))
|
arr2 = arr2.sort((s1, s2) => strCodeAt(s1.componentId.trim() || s1.filedId) - strCodeAt(s2.componentId.trim() || s2.filedId))
|
||||||
return JSON.stringify(arr1) !== JSON.stringify(arr2)
|
return JSON.stringify(arr1) !== JSON.stringify(arr2)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user