Merge branch 'optimize' of github.com:gcpaas/DataRoom into optimize

main
wu.jian2 2 years ago
commit ce1aefc980

@ -167,6 +167,7 @@ import ColorSelect from 'packages/ColorMultipleSelect/index.vue'
import PaddingSetting from 'packages/BigScreenDesign/RightSetting/PaddingSetting/index.vue' import PaddingSetting from 'packages/BigScreenDesign/RightSetting/PaddingSetting/index.vue'
import GradualSetting from 'packages/BigScreenDesign/RightSetting/GradualSetting/index.vue' import GradualSetting from 'packages/BigScreenDesign/RightSetting/GradualSetting/index.vue'
import PosWhSetting from 'packages/BigScreenDesign/RightSetting/PosWhSetting.vue' import PosWhSetting from 'packages/BigScreenDesign/RightSetting/PosWhSetting.vue'
import _ from 'lodash'
export default { export default {
name: 'CustomComponentSetting', name: 'CustomComponentSetting',
components: { components: {
@ -207,7 +208,7 @@ export default {
return this.$store.state.bigScreen.activeItemConfig return this.$store.state.bigScreen.activeItemConfig
}, },
set (val) { set (val) {
this.$store.state.bigScreen.activeItemConfig = val this.$store.commit('bigScreen/changeActiveItemConfig', val)
} }
}, },
appCode: { appCode: {
@ -219,8 +220,17 @@ export default {
return this.$route.query.code return this.$route.query.code
} }
}, },
watch: {}, watch: {
groupList: {
handler (val) {
const setList = [].concat(...val.map(item => item.list))
this.$store.commit('bigScreen/changeActiveItemConfig', { ...this.config, setting: [...this.config.setting, ...setList] })
},
deep: true
}
},
mounted () { mounted () {
this.init()
const groupNameList = [] const groupNameList = []
this.config.setting.filter( this.config.setting.filter(
(item) => item.tabName === 'custom' (item) => item.tabName === 'custom'
@ -254,7 +264,11 @@ export default {
} }
} }
}, },
methods: {} methods: {
init () {
this.config = this.$store.state.bigScreen.activeItemConfig
}
}
} }
</script> </script>

Loading…
Cancel
Save