diff --git a/components/apolloTable/component/base/_utils/getFormatter.tsx b/components/apolloTable/component/base/_utils/getFormatter.tsx index 6cc35459aaba63b27a5df0a8ba37306151fb5aed..084bdc056ff1d485a611fd864ab61ac42c50ecf8 100644 --- a/components/apolloTable/component/base/_utils/getFormatter.tsx +++ b/components/apolloTable/component/base/_utils/getFormatter.tsx @@ -14,7 +14,7 @@ const initValue = (val) => { export const GetFormatter = { INPUT: (val) => { const newValue = initValue(val); - return newValue ? newValue[0].value : undefined; + return newValue ? newValue[0].text || newValue[0].value : undefined; }, SEARCH: (val) => { const newValue = initValue(val); @@ -101,7 +101,7 @@ export const GetFormatter = { if (unit && unit.code === 'wan') { let formateVal = Number((newValue[0] || {}).value); formateVal = formateVal ? formateVal / 10000 : formateVal; - newValue = [{ value: formateVal, text: formateVal }] + newValue = [{ value: formateVal, text: formateVal }]; } if (precision >= 0 && isNumber(newValue[0].value)) { return Number(newValue[0].value).toFixed(precision);