From aea6b4ee5565c1f17f2e3d141f0d2145530667fd Mon Sep 17 00:00:00 2001 From: Lei OT Date: Wed, 6 Aug 2025 16:43:58 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BA=A7=E5=93=81=E5=AE=A1=E6=A0=B8:?= =?UTF-8?q?=20=E7=BC=96=E8=BE=91=E5=8F=98=E6=9B=B4,=20=E5=91=A8=E6=9C=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../products/Detail/ProductQuotationLogPopover.jsx | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/views/products/Detail/ProductQuotationLogPopover.jsx b/src/views/products/Detail/ProductQuotationLogPopover.jsx index 9623655..d5f58cc 100644 --- a/src/views/products/Detail/ProductQuotationLogPopover.jsx +++ b/src/views/products/Detail/ProductQuotationLogPopover.jsx @@ -131,8 +131,15 @@ export const columnsSets = (t, colorize = true) => [ render: (text, { weekdays, audit_state_id, lastedit_changed }) => { const _changed = parseJson(lastedit_changed); const ifCompare = colorize && !statesForHideEdited.includes(audit_state_id); - const ifData = !isEmpty((_changed.weekdayList || []).filter((s) => s)); - const preValue = ifCompare && ifData ?
{_changed.weekdayList}
: null; + const ifData = !isEmpty(_changed.weekdays); + const _weekdays = ifData + ? _changed.weekdays + .split(',') + .filter(Boolean) + .map((w) => t(`common:weekdaysShort.${w}`)) + .join(', ') + : ''; + const preValue = ifCompare && ifData ?
{_weekdays}
: null; const editCls = ifCompare && ifData ? 'text-danger' : ''; return (