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
linweijiong
jinfa-platform
Commits
d8d19164
Commit
d8d19164
authored
Jan 04, 2021
by
前端-钟卫鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:订单详情发货明细中添加跳转,处理再次点击同样的菜单重载页面没有清空筛选的数据问题
parent
49863d81
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
2 deletions
+11
-2
MenuSlider.tsx
src/layouts/components/MenuSlider.tsx
+8
-1
index.tsx
src/pages/transaction/components/orderDeleveRecord/index.tsx
+2
-0
RuleSetting.tsx
...s/transaction/transactionRules/components/RuleSetting.tsx
+1
-1
No files found.
src/layouts/components/MenuSlider.tsx
View file @
d8d19164
...
...
@@ -75,12 +75,19 @@ const MenuSlider: React.FC<MenuSliderProps> = (props) => {
}
const
clickMenuItem
=
({
item
,
key
,
keyPath
,
domEvent
})
=>
{
// 对比url和点击项的key 相同的话重载页面
// 对比url和点击项的key 相同的话重载页面
并清空筛选的store
if
(
key
===
currentSelectKey
[
currentSelectKey
.
length
-
1
])
{
clearHeightSearchParams
()
window
.
location
.
reload
()
}
}
const
clearHeightSearchParams
=
()
=>
{
let
currentState
=
JSON
.
parse
(
sessionStorage
.
getItem
(
"currentState"
))
let
result
=
{...
currentState
,
queryParams
:
{},
current
:
1
}
sessionStorage
.
setItem
(
"currentState"
,
JSON
.
stringify
(
result
))
}
return
<>
<
OuterSider
{
...
props
}
/>
<
Sider
theme=
"light"
className=
"menu_sider"
collapsed=
{
props
.
collapseState
}
>
...
...
src/pages/transaction/components/orderDeleveRecord/index.tsx
View file @
d8d19164
...
...
@@ -193,6 +193,7 @@ const OrderDeleveRecord:React.FC<OrderDeleveRecordProps> = (props) => {
dataIndex
:
'logisticsNo'
,
align
:
'center'
,
key
:
'logisticsNo'
,
render
:
text
=>
<
a
href=
""
>
{
text
}
</
a
>
},
{
title
:
'物流公司'
,
...
...
@@ -205,6 +206,7 @@ const OrderDeleveRecord:React.FC<OrderDeleveRecordProps> = (props) => {
dataIndex
:
'storageNo'
,
align
:
'center'
,
key
:
'storageNo'
,
render
:
text
=>
<
a
href=
""
>
{
text
}
</
a
>
},
{
title
:
'入库时间'
,
...
...
src/pages/transaction/transactionRules/components/RuleSetting.tsx
View file @
d8d19164
...
...
@@ -139,7 +139,7 @@ const RuleSetting:React.FC<RuleSettingProps> = (props) => {
const
clearModalParams
=
()
=>
{
let
currentState
=
JSON
.
parse
(
sessionStorage
.
getItem
(
"currentState"
))
let
result
=
{...
currentState
,
queryParams
:
{
currentPage
:
1
}
}
let
result
=
{...
currentState
,
queryParams
:
{
},
current
:
1
}
sessionStorage
.
setItem
(
"currentState"
,
JSON
.
stringify
(
result
))
}
...
...
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