Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
Project
Project
Details
Activity
Releases
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
周远喜
mes-ui
Commits
2f9e8b9b
Commit
2f9e8b9b
authored
Apr 20, 2020
by
周远喜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
框架修改 数据字典bug处理
parent
9544c914
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
6 deletions
+30
-6
product.vue
layouts/basic-layout/product.vue
+1
-1
default.vue
layouts/default.vue
+4
-1
index.js
store/index.js
+25
-4
No files found.
layouts/basic-layout/product.vue
View file @
2f9e8b9b
...
...
@@ -74,7 +74,7 @@
</Header>
<div
class=
"i-tabs"
>
<transition
name=
"fade-quick"
>
<i-tabs
v-if=
"tabs"
v-show=
"showHeader"
@
on-reload=
"handleReload"
/>
<i-tabs
v-show=
"showHeader"
@
on-reload=
"handleReload"
/>
</transition>
</div>
<Content
class=
"i-layout-content"
>
...
...
layouts/default.vue
View file @
2f9e8b9b
...
...
@@ -22,6 +22,10 @@ export default {
menus
:
[]
};
},
async
fetch
({
store
,
params
})
{
await
store
.
dispatch
(
"loadDictionary"
);
// 加载数据字典
await
store
.
dispatch
(
"loadUsers"
);
//加载缓存的用户
},
created
()
{
// 处理路由 得到每一级的路由设置
this
.
$store
.
commit
(
"admin/page/init"
,
frameInRoutes
);
...
...
@@ -66,7 +70,6 @@ export default {
}
},
methods
:
{
getMenu
()
{
this
.
$http
.
sysUser
.
getusermenu
().
then
(
res
=>
{
if
(
res
.
result
)
{
...
...
store/index.js
View file @
2f9e8b9b
...
...
@@ -7,13 +7,16 @@ export const state=()=>({
userInfo
:{
userId
:
0
,
userName
:
""
}
},
cart
:[],
count
:
0
,
countAps
:
0
,
//aps排产
countAi
:
0
,
//智能排产
countAll
:
0
,
//整机排产
countRun
:
0
,
//流水排产
})
export
const
getters
=
{
dictionaryByKey
:
(
state
)
=>
(
key
)
=>
{
if
(
state
.
dictionary
){
return
;
}
let
result
=
[];
let
items
=
state
.
dictionary
.
get
(
key
);
if
(
items
)
{
...
...
@@ -47,6 +50,24 @@ export const mutations={
setDictionary
(
state
,
dictionary
)
{
state
.
dictionary
=
dictionary
;
},
setCart
(
state
,
cart
)
{
state
.
cart
=
cart
;
},
setCartCount
(
state
,
count
)
{
state
.
count
=
count
;
},
setCountAps
(
state
,
count
)
{
//设置aps排产数量
state
.
countAps
=
count
;
},
setCountAi
(
state
,
count
)
{
//设置智能排产数量
state
.
countAi
=
count
;
},
setCountAll
(
state
,
count
)
{
//设置整机排产数量
state
.
countAll
=
count
;
},
setCountRun
(
state
,
count
)
{
//设置流水排产数量
state
.
countRun
=
count
;
}
}
export
const
actions
=
{
...
...
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