|
|
@@ -44,7 +44,7 @@ class ViewLayout extends React.PureComponent {
|
|
|
const { dispatch, main, dashboardDesigner } = this.props;
|
|
|
const { editingKey, richTextReadOnly } = this.state;
|
|
|
const { currentUser } = main;
|
|
|
- const { editMode, minLayoutHeight } = dashboardDesigner;
|
|
|
+ const { dashboardDesignerCode, editMode, minLayoutHeight } = dashboardDesigner;
|
|
|
const { code, name, viewType, layout, chartCode, chartOption } = item;
|
|
|
const iconCls = editMode ? 'visible-icon' : '';
|
|
|
|
|
|
@@ -99,7 +99,7 @@ class ViewLayout extends React.PureComponent {
|
|
|
{isPreview && <Icon className={iconCls} type="close" onClick={this.hidePreviewBox}/>}
|
|
|
</div>
|
|
|
</div>
|
|
|
- <ChartView chartRef={'chartRef-' + code} minLayoutHeight={minLayoutHeight} readOnly={richTextReadOnly} editMode={isPreview ? false : editMode} item={{...item}} reload={reload}/>
|
|
|
+ <ChartView chartRef={`chartRef-${dashboardDesignerCode}-${code}`} minLayoutHeight={minLayoutHeight} readOnly={richTextReadOnly} editMode={isPreview ? false : editMode} item={{...item}} reload={reload}/>
|
|
|
</div>
|
|
|
)
|
|
|
}
|