Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gavel-erp-vue
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
李苏
gavel-erp-vue
Commits
8ed9de55
Commit
8ed9de55
authored
Nov 24, 2023
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
list 提交
parent
71457d42
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
90 deletions
+9
-90
index.js
src/commonList/index.js
+0
-90
user.js
src/store/modules/user.js
+9
-0
No files found.
src/commonList/index.js
deleted
100644 → 0
View file @
71457d42
export
default
{
list
:[
{
path
:
'/baseData'
,
component
:
'Layout'
,
hidden
:
false
,
alwaysShow
:
true
,
redirect
:
'store'
,
meta
:
{
title
:
"基础数据"
,
icon
:
"fa-cog"
,
noCache
:
false
,
link
:
null
,
mkid
:
215000000
},
children
:[
/* 计量单位*/
{
erpComponent
:
true
,
component
:
'template/index'
,
hidden
:
false
,
meta
:{
"title"
:
"财务"
,
"icon"
:
""
,
"noCache"
:
false
,
"link"
:
null
,
"mkid"
:
215060000
,
},
redirect
:
'meteringUnit'
,
name
:
'finance'
,
path
:
"finance"
,
children
:[{
erpComponent
:
true
,
component
:
'template/view/index'
,
hidden
:
false
,
meta
:{
"title"
:
"发票分类"
,
"icon"
:
""
,
"noCache"
:
false
,
"link"
:
null
,
"mkid"
:
215060100
,
},
name
:
'financeClassification'
,
path
:
"financeClassification"
,
},
{
erpComponent
:
true
,
component
:
'baseData/finance/period/index'
,
hidden
:
false
,
meta
:{
"title"
:
"会计期间"
,
"icon"
:
""
,
"noCache"
:
false
,
"link"
:
null
,
"mkid"
:
215060200
,
},
name
:
'financePeriod'
,
path
:
"financePeriod"
,
},
{
erpComponent
:
true
,
component
:
'template/view/index'
,
hidden
:
false
,
meta
:{
"title"
:
"会计单位"
,
"icon"
:
""
,
"noCache"
:
false
,
"link"
:
null
,
"mkid"
:
215060300
,
},
name
:
'financeUnit'
,
path
:
"financeUnit"
,
},
{
erpComponent
:
true
,
component
:
'baseData/finance/store/index'
,
hidden
:
false
,
meta
:{
"title"
:
"仓库财务信息"
,
"icon"
:
""
,
"noCache"
:
false
,
"link"
:
null
,
"mkid"
:
215060400
,
},
name
:
'financeStore'
,
path
:
"financeStore"
,
},
]
}
]
}
]
}
src/store/modules/user.js
View file @
8ed9de55
import
{
login
,
logout
,
getInfo
}
from
'@/api/login'
import
{
getToken
,
setToken
,
removeToken
,
setUserid
}
from
'@/utils/auth'
import
materialProp
from
'common/src/utils/materialProp'
const
user
=
{
state
:
{
...
...
@@ -52,6 +53,14 @@ const user = {
localStorage
.
setItem
(
'systemid'
,
systemid
)
/* 存储本地一份 */
setToken
(
res
.
data
.
token
)
/* ERP项目查询物料属性*/
materialProp
().
then
(
res
=>
{
let
list
=
[
'isKwgl'
,
'isPhgl'
,
'isFjldw'
]
list
.
forEach
(
item
=>
{
localStorage
.
setItem
(
item
,
res
[
item
])
})
})
commit
(
'SET_TOKEN'
,
res
.
data
.
token
)
setUserid
(
res
.
data
.
userid
)
resolve
()
...
...
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