Merge remote-tracking branch 'origin/master'

main
liu.shiyi 2 years ago
commit b6c4509b8b

@ -114,20 +114,14 @@ export default {
// //
configStyle: { configStyle: {
handler (val, oldValue) { handler (val, oldValue) {
if (!_.isEqual(val, oldValue)) { this.handleConfigChange(val, oldValue, 'configStyle')
this.$emit('updateSetting', { ...val, type: this.config.type, code: this.config.code })
this.saveTimeLine(`更新${val?.title}组件属性`)
}
}, },
deep: true deep: true
}, },
// //
configDataSource: { configDataSource: {
handler (val, oldValue) { handler (val, oldValue) {
if (!_.isEqual(val, oldValue)) { this.handleConfigChange(val, oldValue, 'configDataSource')
this.$emit('updateDataSetting', this.config)
this.saveTimeLine(`更新${val?.title}组件属性`)
}
}, },
deep: true deep: true
} }
@ -137,6 +131,16 @@ export default {
...mapMutations('bigScreen', [ ...mapMutations('bigScreen', [
'saveTimeLine' 'saveTimeLine'
]), ]),
handleConfigChange (val, oldValue, type) {
if (!_.isEqual(val, oldValue)) {
if (type === 'configStyle') {
this.$emit('updateSetting', { ...val, type: this.config.type, code: this.config.code })
} else {
this.$emit('updateDataSetting', this.config)
}
this.saveTimeLine(`更新${val?.title ?? this.config.title}组件属性`)
}
},
close () { close () {
this.$emit('closeRightPanel') this.$emit('closeRightPanel')
}, },

@ -279,6 +279,11 @@ export default {
getLabelListByDatasetId(this.datasetId).then((data) => { getLabelListByDatasetId(this.datasetId).then((data) => {
this.selectLabelListInitial = _.cloneDeep(data) this.selectLabelListInitial = _.cloneDeep(data)
this.selectLabelList = _.cloneDeep(data) this.selectLabelList = _.cloneDeep(data)
let idList = []
data.forEach((item) => {
idList.push(item.id)
})
this.$emit('commit', idList)
}) })
} }
}, },

Loading…
Cancel
Save