From 4dca7ee290df11f5abe949b3107e40453b83734b Mon Sep 17 00:00:00 2001 From: Lei OT Date: Tue, 10 Sep 2024 11:46:23 +0800 Subject: [PATCH 1/6] =?UTF-8?q?fix:=20=E4=BA=A7=E5=93=81=E7=AE=A1:=20?= =?UTF-8?q?=E5=AE=A1=E6=A0=B8=E4=BA=BA=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/products/Manage.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/products/Manage.jsx b/src/views/products/Manage.jsx index 165805c..23c622f 100644 --- a/src/views/products/Manage.jsx +++ b/src/views/products/Manage.jsx @@ -74,7 +74,7 @@ function Index() { return {stateMapVal[`${r.audit_state_id}`]?.label}; }, }, - { title: t('products:AuditedBy'), key: 'audited_by', dataIndex: 'audited_by_name' }, + { title: t('products:AuditedBy'), key: 'audited_by', dataIndex: 'audited_by' }, { title: t('products:AuditDate'), key: 'audit_date', dataIndex: 'audit_date' }, { title: '', From f182ded513187449be873ffe05ded92330a07989 Mon Sep 17 00:00:00 2001 From: Lei OT Date: Tue, 10 Sep 2024 13:57:36 +0800 Subject: [PATCH 2/6] =?UTF-8?q?fix:=20=E4=BA=A7=E5=93=81=E7=AE=A1=E7=90=86?= =?UTF-8?q?:=20=E7=BC=96=E8=BE=91:=20=E6=8E=A8=E8=8D=90=E6=8C=87=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/products/Detail/ProductInfoForm.jsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/views/products/Detail/ProductInfoForm.jsx b/src/views/products/Detail/ProductInfoForm.jsx index 16259c2..7c55328 100644 --- a/src/views/products/Detail/ProductInfoForm.jsx +++ b/src/views/products/Detail/ProductInfoForm.jsx @@ -256,11 +256,11 @@ function getFields(props) { style={{ width: '100%' }} labelInValue={false} options={[ - { value: '1', label: 'Top 1' }, - { value: '2', label: 'Top 2' }, - { value: '3', label: 'Top 3' }, - { value: '4', label: '4' }, - { value: '5', label: '5' }, + { value: 1, label: 'Top 1' }, + { value: 2, label: 'Top 2' }, + { value: 3, label: 'Top 3' }, + { value: 4, label: '4' }, + { value: 5, label: '5' }, ]} /> , @@ -376,7 +376,7 @@ const formValuesMapper = (values) => { ], 'dept': { key: 'dept_id', transform: (value) => (typeof value === 'string' ? value : value?.value || value?.key || '') }, 'open_weekdays': { key: 'open_weekdays', transform: (value) => (Array.isArray(value) ? value.join(',') : value) }, - 'recommends_rate': { key: 'recommends_rate', transform: (value) => (typeof value === 'string' ? value : value?.value || value?.key || '') }, + 'recommends_rate': { key: 'recommends_rate', transform: (value) => ((typeof value === 'string' || typeof value === 'number') ? value : value?.value || value?.key || '') }, // 'lgc_details': [ // { // key: 'lgc_details', From 3bf491d8adbc59c32f27d4aa3b5e65a349a6236d Mon Sep 17 00:00:00 2001 From: Lei OT Date: Tue, 10 Sep 2024 14:04:26 +0800 Subject: [PATCH 3/6] =?UTF-8?q?fix:=20=E4=BA=A7=E5=93=81=E7=AE=A1=E7=90=86?= =?UTF-8?q?:=20=E7=BC=96=E8=BE=91:=20=E6=8E=A8=E8=8D=90=E6=8C=87=E6=95=B0,?= =?UTF-8?q?=20=E8=87=AA=E7=94=B1=E8=BE=93=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/products/Detail/ProductInfoForm.jsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/views/products/Detail/ProductInfoForm.jsx b/src/views/products/Detail/ProductInfoForm.jsx index 7c55328..5f3a815 100644 --- a/src/views/products/Detail/ProductInfoForm.jsx +++ b/src/views/products/Detail/ProductInfoForm.jsx @@ -250,7 +250,8 @@ function getFields(props) { 99, {/* */} - + /> */} , fieldProps?.recommends_rate?.col || midCol ), @@ -376,7 +377,7 @@ const formValuesMapper = (values) => { ], 'dept': { key: 'dept_id', transform: (value) => (typeof value === 'string' ? value : value?.value || value?.key || '') }, 'open_weekdays': { key: 'open_weekdays', transform: (value) => (Array.isArray(value) ? value.join(',') : value) }, - 'recommends_rate': { key: 'recommends_rate', transform: (value) => ((typeof value === 'string' || typeof value === 'number') ? value : value?.value || value?.key || '') }, + // 'recommends_rate': { key: 'recommends_rate', transform: (value) => ((typeof value === 'string' || typeof value === 'number') ? value : value?.value || value?.key || '') }, // 'lgc_details': [ // { // key: 'lgc_details', From df1a1f43bf2aeb55236f144fe07b03d7c886a7cf Mon Sep 17 00:00:00 2001 From: Lei OT Date: Tue, 10 Sep 2024 14:08:31 +0800 Subject: [PATCH 4/6] =?UTF-8?q?fix:=20=E4=BA=A7=E5=93=81=E7=AE=A1=E7=90=86?= =?UTF-8?q?:=20=E7=BC=96=E8=BE=91:=20=E6=8E=A8=E8=8D=90=E6=8C=87=E6=95=B0,?= =?UTF-8?q?=20=E8=87=AA=E7=94=B1=E8=BE=93=E5=85=A5=201-1000?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/products/Detail/ProductInfoForm.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/products/Detail/ProductInfoForm.jsx b/src/views/products/Detail/ProductInfoForm.jsx index 5f3a815..697c515 100644 --- a/src/views/products/Detail/ProductInfoForm.jsx +++ b/src/views/products/Detail/ProductInfoForm.jsx @@ -250,7 +250,7 @@ function getFields(props) { 99, {/* */} - + {/*