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
0de68f83
Commit
0de68f83
authored
May 27, 2021
by
前端-钟卫鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 仓位文案修改,品牌商品详情返回按钮焦点区域控制处理,处理没有参数NiceForm异常问题
parent
070a05f5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
7 deletions
+26
-7
index.tsx
src/components/NiceForm/index.tsx
+5
-3
index.tsx
src/components/ReturnEle/index.tsx
+20
-3
adjustRepository.tsx
src/pages/repositories/adjustRepository.tsx
+1
-1
No files found.
src/components/NiceForm/index.tsx
View file @
0de68f83
...
...
@@ -120,9 +120,11 @@ const NiceForm: React.FC<NiceFormProps> = props => {
useEffect
(()
=>
{
let
paginationInfo
:
currentStateType
=
getCurrentState
();
reset
.
actions
.
setFormState
(
state
=>
(
state
.
values
=
paginationInfo
.
queryParams
),
);
if
(
paginationInfo
?.
queryParams
)
{
reset
.
actions
.
setFormState
(
state
=>
(
state
.
values
=
paginationInfo
.
queryParams
),
);
}
},
[])
return
(
...
...
src/components/ReturnEle/index.tsx
View file @
0de68f83
...
...
@@ -11,9 +11,27 @@ interface IProps {
const
ReutrnEle
:
React
.
FC
<
IProps
>
=
(
props
)
=>
{
const
{
description
,
logoSrc
}
=
props
const
bubbles
=
(
e
:
any
)
=>
{
let
ev
=
e
||
window
.
event
;
if
(
ev
&&
ev
.
stopPropagation
)
{
ev
.
stopPropagation
();
}
else
{
ev
.
cancelBubble
=
true
;
}
}
return
<>
<
span
style=
{
{
fontSize
:
12
,
color
:
'#909399FF'
}
}
><
ArrowLeftOutlined
/>
{
logoSrc
?
<
img
src=
{
logoSrc
}
style=
{
{
width
:
48
,
height
:
48
,
margin
:
'0 0 0 14px'
}
}
/>
:
description
}
</
span
>
<
span
style=
{
{
fontSize
:
12
,
color
:
'#909399FF'
}
}
>
<
ArrowLeftOutlined
/>
{
logoSrc
?
<
img
src=
{
logoSrc
}
style=
{
{
width
:
48
,
height
:
48
,
margin
:
'0 0 0 14px'
,
cursor
:
'default'
}
}
onClick=
{
bubbles
}
/>
:
description
}
</
span
>
</>
}
export
default
ReutrnEle
\ No newline at end of file
export
default
ReutrnEle
src/pages/repositories/adjustRepository.tsx
View file @
0de68f83
...
...
@@ -218,7 +218,7 @@ const AddRepository:React.FC<{}> = (props) => {
<
Tabs
.
TabPane
key=
'tab1'
tab=
'仓位设置'
>
<
PositionSetting
onFieldChange=
{
onPublicFieldChange
}
addSchemaAction=
{
addSchemaAction
}
schema=
{
repositTabOneSchema
}
formSubmit=
{
formSubmit
}
/>
</
Tabs
.
TabPane
>
<
Tabs
.
TabPane
key=
'tab2'
tab=
'库存调入\调
拨
'
>
<
Tabs
.
TabPane
key=
'tab2'
tab=
'库存调入\调
出
'
>
<
Tabs
defaultActiveKey=
'tab2-1'
tabPosition=
'left'
>
<
Tabs
.
TabPane
tab=
'库存调入'
key=
"tab2-1"
>
{
/* 使用formProvider 共享两个表单中的值 */
}
...
...
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