Merge pull request #3602 from dataease/pr@dev@fix_filter_button_copy

fix(仪表板): 复用查询按钮后关联组件显示错误
This commit is contained in:
xuwei-fit2cloud 2022-11-02 13:34:27 +08:00 committed by GitHub
commit c7a4982195
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -623,6 +623,13 @@ const data = {
},
addCurMultiplexingComponent(state, { component, componentId }) {
if (componentId) {
if (component.type === 'custom-button' && component.serviceName === 'buttonSureWidget') {
const copyComponent = deepCopy(component)
copyComponent.options.attrs.customRange = false
copyComponent.options.attrs.filterIds = []
state.curMultiplexingComponents[componentId] = copyComponent
return
}
state.curMultiplexingComponents[componentId] = component
}
},