Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
lanbaoming
jiedao-app-operator-master
Commits
7eef0dbb
Commit
7eef0dbb
authored
Oct 25, 2023
by
dragondean@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化待出菜单角标
parent
902dbb56
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
6 deletions
+14
-6
SidebarItem.vue
src/layout/components/Sidebar/SidebarItem.vue
+1
-1
index.vue
src/layout/components/Sidebar/index.vue
+1
-5
user.js
src/store/modules/user.js
+9
-0
penddingList.vue
src/views/ecw/order/penddingList.vue
+3
-0
No files found.
src/layout/components/Sidebar/SidebarItem.vue
View file @
7eef0dbb
...
...
@@ -56,7 +56,7 @@ export default {
},
computed
:{
badge
(){
return
this
.
$store
.
getters
.
badgeData
[
this
.
item
.
meta
.
badgeField
]
return
this
.
$store
.
getters
.
badgeData
[
this
.
item
.
meta
?
.
badgeField
]
}
},
methods
:
{
...
...
src/layout/components/Sidebar/index.vue
View file @
7eef0dbb
...
...
@@ -55,11 +55,7 @@ export default {
}
},
created
()
{
// 查询待出订单数量 waitingShipment
getWaitingShipmentCount
().
then
(
res
=>
{
console
.
log
(
'
getWaitingShipmentCount
'
,
res
.
data
)
this
.
$store
.
commit
(
'
SET_BADGE_DATA
'
,
{
waitingShipment
:
res
.
data
},
)
})
this
.
$store
.
dispatch
(
'
getBadgeData
'
)
}
};
</
script
>
src/store/modules/user.js
View file @
7eef0dbb
...
...
@@ -2,6 +2,7 @@ import {login, logout, getInfo, socialLogin, socialLogin2} from '@/api/login'
import
{
getToken
,
setToken
,
removeToken
}
from
'
@/utils/auth
'
import
{
getNotReadInternalMessageTotal
,}
from
'
@/api/system/internalMessage
'
import
{
taskTodoCount
,
userMark
}
from
"
@/api/bpm/task
"
;
import
{
getWaitingShipmentCount
}
from
"
@/api/ecw/order
"
;
const
user
=
{
state
:
{
...
...
@@ -202,6 +203,14 @@ const user = {
reject
(
err
)
})
})
},
// 获取菜单角标数据,当前只有空运待出
getBadgeData
({
commit
}){
// 查询待出订单数量 waitingShipment
getWaitingShipmentCount
().
then
(
res
=>
{
console
.
log
(
'
getWaitingShipmentCount
'
,
res
.
data
)
commit
(
'
SET_BADGE_DATA
'
,
{
waitingShipment
:
res
.
data
},
)
})
}
}
}
...
...
src/views/ecw/order/penddingList.vue
View file @
7eef0dbb
...
...
@@ -363,6 +363,7 @@ export default {
},
activated
(){
this
.
getList
()
this
.
$store
.
dispatch
(
'
getBadgeData
'
)
},
created
()
{
this
.
getList
();
...
...
@@ -371,6 +372,8 @@ export default {
getCurrencyPage
(
this
.
params
).
then
(
res
=>
this
.
currencyList
=
res
.
data
.
list
)
getChannelList
().
then
(
res
=>
this
.
channelList
=
res
.
data
)
this
.
$store
.
dispatch
(
'
getBadgeData
'
)
},
methods
:
{
/** 查询列表 */
...
...
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