From ebc969791b3a876b321f62f6f0abb85a688dba5a Mon Sep 17 00:00:00 2001 From: chenxt <10125295+chen-xintao97@user.noreply.gitee.com> Date: Fri, 17 Jul 2026 14:52:46 +0800 Subject: [PATCH] 颜色选择样式修改 --- src/mes/common/commonModelComponent/index.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/mes/common/commonModelComponent/index.js b/src/mes/common/commonModelComponent/index.js index f3fc802..d251c7f 100644 --- a/src/mes/common/commonModelComponent/index.js +++ b/src/mes/common/commonModelComponent/index.js @@ -3667,9 +3667,10 @@ const SisColorChooseComponent = props => { ]; const handlePlateNumChange = (value, record) => { + const numValue = value.replace(/[^\d]/g, ''); const newData = rightData.map(item => { if (item.sId === record.sId) { - return { ...item, dColor: Number(value) || 0 }; + return { ...item, dColor: Number(numValue) || 0 }; } return item; }); @@ -3683,12 +3684,11 @@ const SisColorChooseComponent = props => { ...col, render: (text, record) => ( handlePlateNumChange(e.target.value, record)} style={{ - width: '80px', + width: '120px', padding: '4px 8px', border: '1px solid #d9d9d9', borderRadius: '4px', @@ -3736,7 +3736,7 @@ const SisColorChooseComponent = props => { title='颜色选择' open={sisColorChooseVisible} width={1000} - height={400} + bodyStyle={{ height: 500 }} footer={ -- libgit2 0.22.2