Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄庭坚
jinfa-platform
Commits
1bf2485b
Commit
1bf2485b
authored
Mar 31, 2022
by
前端-钟卫鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 商品保存草稿兼容货品和商品描述为null的情况
parent
4699cd5b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
productDescFormYang.tsx
...ommodity/products/addProductsItem/productDescFormYang.tsx
+3
-3
selectGoodsForm.tsx
...es/commodity/products/addProductsItem/selectGoodsForm.tsx
+1
-1
index.tsx
src/pages/commodity/products/index.tsx
+1
-1
No files found.
src/pages/commodity/products/addProductsItem/productDescFormYang.tsx
View file @
1bf2485b
...
...
@@ -48,9 +48,9 @@ const ProductDescFormYang: React.FC<{}> = () => {
setFileImageList
(()
=>
{
const
images
=
productInfoByEdit
.
commodityRemark
?.
imageList
return
{
descriptionImages
:
images
.
filter
(
item
=>
item
.
imageType
===
CommodityImagesType
.
DESCRIPTION_IMAGES
)
,
certificationImages
:
images
.
filter
(
item
=>
item
.
imageType
===
CommodityImagesType
.
CERTIFICATION_IMAGES
)
,
reportImages
:
images
.
filter
(
item
=>
item
.
imageType
===
CommodityImagesType
.
REPORT_IMAGES
)
descriptionImages
:
images
?
images
.
filter
(
item
=>
item
.
imageType
===
CommodityImagesType
.
DESCRIPTION_IMAGES
)
:
[]
,
certificationImages
:
images
?
images
.
filter
(
item
=>
item
.
imageType
===
CommodityImagesType
.
CERTIFICATION_IMAGES
)
:
[]
,
reportImages
:
images
?
images
.
filter
(
item
=>
item
.
imageType
===
CommodityImagesType
.
REPORT_IMAGES
)
:
[],
}
})
setVideoList
(
productInfoByEdit
.
commodityRemark
?.
video
)
...
...
src/pages/commodity/products/addProductsItem/selectGoodsForm.tsx
View file @
1bf2485b
...
...
@@ -42,7 +42,7 @@ const SelectGoodsForm: React.FC<{}> = (props) => {
item
[
next
.
id
]
=
next
;
return
item
},
{}))
const
filterGoods
=
goodsArr
.
filter
(
item
=>
item
[
'id'
]
!==
0
)
const
filterGoods
=
goodsArr
?
goodsArr
.
filter
(
item
=>
item
[
'id'
]
!==
0
)
:
[]
if
(
filterGoods
?.
length
>
0
)
{
setIsChecked
(
true
)
setIsSelectGoods
(
true
)
...
...
src/pages/commodity/products/index.tsx
View file @
1bf2485b
...
...
@@ -216,7 +216,7 @@ const Products: React.FC<{}> = () => {
title
:
intl
.
formatMessage
({
id
:
'commodity.products.columns.name'
}),
dataIndex
:
[
'draft'
,
'name'
],
key
:
'name'
,
className
:
'commonPickColor'
,
//
className: 'commonPickColor',
width
:
240
,
ellipsis
:
true
,
// render: (text: any, record: any) => <EyePreview url={`/memberCenter/commodityAbility/commodity/products/detail?id=${record.id}`}>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment