From ae19d4e585b775358fbd7845044fe51054f0afb4 Mon Sep 17 00:00:00 2001 From: pengm <674192343@qq.com> Date: Wed, 4 Jun 2025 12:04:35 +0800 Subject: [PATCH] 1.plc参数映射列表增加导入文本功能 --- src/components/Common/ToolBar/ToolBarNew.js | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++-- src/components/Common/ToolBar/index.less | 6 ++++++ 2 files changed, 56 insertions(+), 2 deletions(-) diff --git a/src/components/Common/ToolBar/ToolBarNew.js b/src/components/Common/ToolBar/ToolBarNew.js index 6d25e4c..5d18db0 100644 --- a/src/components/Common/ToolBar/ToolBarNew.js +++ b/src/components/Common/ToolBar/ToolBarNew.js @@ -2541,7 +2541,7 @@ class ToolBarComponent extends Component { boxVisible: true, makeUpPDFRecord, title: config.showName, - + onCancel: () => { this.setState({ BtnBoxData: null, makeUpPDFRecord: undefined }); this.props.onSaveState({ @@ -2580,7 +2580,7 @@ class ToolBarComponent extends Component { }); } else if (this.props.onButtonClick !== undefined) { this.props.onButtonClick(key); - } + } }; // 删除当前pane @@ -3891,6 +3891,34 @@ class ToolBarComponent extends Component { } }; + + /* 通用上传各种文件 */ + handleUploadFilesChange = info => { + const { file,} = info; + if (file.response && file.response.code === 1) { + /* 刷新列表 */ + message.open({ + type: 'success', + content: '文件上传成功', + duration: 1 + }); + this.handleRefresh(); + }else if (file.response && file.response.code === -8) { + Modal.info({ + title: '温馨提示:', + content: ( +