From 1343e97aae92b83dfee67fd2bf38c608d52f682f Mon Sep 17 00:00:00 2001 From: chenxt <10125295+chen-xintao97@user.noreply.gitee.com> Date: Wed, 4 Mar 2026 13:32:04 +0800 Subject: [PATCH] 补版颜色选择 --- src/components/Common/CommonComponent/index.js | 14 +++++++++----- src/components/Common/CommonTable/index.js | 9 ++++++--- src/default.less | 4 +++- src/mes/common/commonModelComponent/index.js | 245 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++----- src/mes/common/commonModelComponent/index.less | 16 ++++++++++++++++ 5 files changed, 274 insertions(+), 14 deletions(-) diff --git a/src/components/Common/CommonComponent/index.js b/src/components/Common/CommonComponent/index.js index 251819f..689ffbf 100644 --- a/src/components/Common/CommonComponent/index.js +++ b/src/components/Common/CommonComponent/index.js @@ -744,7 +744,7 @@ export default class CommonComponent extends Component { }; getSelectTableOption = () => { const { selectTableData } = this.state; - const { showConfig , app} = this.props; + const { showConfig, app } = this.props; const { userinfo } = app; let { sTableTitleSql } = showConfig; /* 根据用户配置语言 设置表格标题 */ @@ -1235,7 +1235,7 @@ export default class CommonComponent extends Component { } } /* 返回值 */ - + return options; }; @@ -1953,7 +1953,7 @@ export default class CommonComponent extends Component { const sFontColor = this.props.showConfig.sFontColor; obj.labelCol.style = { color: sFontColor, fontWeight: 'bold', backgroundColor: '#BFEFFF' }; } - + /* 返回值 */ return obj; }; @@ -2669,6 +2669,10 @@ export default class CommonComponent extends Component { this.props.onPreviewImage(e, dataUrl); } handleViewChoose = () => { + if (this.props?.formId === '172117190122117645759356840' && this.props?.showConfig?.sName.includes('Color')) { + this.props.onViewChoose(this.props.name, this.props.showConfig.sName, this.props.record, null, true); + return + } this.props.onViewChoose(this.props.name, this.props.showConfig.sName, this.props.record); } handleMemoShow = () => { @@ -3053,10 +3057,10 @@ export default class CommonComponent extends Component { /* 页面输出 */ const className = iColValue === 24 ? 'input24' : iColValue === 18 ? 'input18' : iColValue === 12 ? 'input12' : 'changeClassName'; const mesInputBlue = enabled && !this.props.bNoMesBlue && this.firstDataIndex !== 'b'; - const {bManual = false} = this.props?.app?.userinfo || {} + const { bManual = false } = this.props?.app?.userinfo || {} return (