Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zghywpc-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
李苏
zghywpc-vue
Commits
61021f02
Commit
61021f02
authored
Sep 02, 2024
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整
parent
87ee4950
Changes
6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
604 additions
and
210 deletions
+604
-210
permission.js
src/store/modules/permission.js
+15
-55
index.vue
src/views/sbxxgl/ljhsz/index.vue
+1
-1
index.vue
src/views/yhlywsytst/yhlywsytst/index.vue
+583
-151
dhbg.png
src/views/yhlywsytst/yhlywsytst/static/dhbg.png
+0
-0
dhbg_active.png
src/views/yhlywsytst/yhlywsytst/static/dhbg_active.png
+0
-0
vue.config.js
vue.config.js
+5
-3
No files found.
src/store/modules/permission.js
View file @
61021f02
...
@@ -155,66 +155,26 @@ const permission = {
...
@@ -155,66 +155,26 @@ const permission = {
newCommonList
,
...
newErpList
,
...
newPowerRoutes
newCommonList
,
...
newErpList
,
...
newPowerRoutes
]
]
/* 重置首页路由*/
/* 重置首页路由*/
// let hompePage = treeToList([...newCommonList,...newErpList,...newPowerRoutes]).filter(item=>item.mkid==localStorage.getItem('homeMkid'))
let
ttlist
=
treeToList
([...
newCommonList
,
...
newErpList
,
...
newPowerRoutes
])
let
ttlist
=
treeToList
([...
newCommonList
,
...
newErpList
,
...
newPowerRoutes
])
let
homePage
=
ttlist
.
filter
(
item
=>
item
.
mkid
==
localStorage
.
getItem
(
'homeMkid'
))
let
homePage
=
ttlist
.
filter
(
item
=>
item
.
mkid
==
localStorage
.
getItem
(
'homeMkid'
))
/* 替换首页*/
if
(
true
)
{
if
(
homePage
&&
homePage
[
0
])
{
if
(
homePage
[
0
].
component
)
{
// Layout ParentView 组件特殊处理
if
(
homePage
[
0
].
component
===
'Layout'
)
{
homePage
[
0
].
component
=
Layout
}
else
if
(
homePage
[
0
].
component
===
'ParentView'
)
{
homePage
[
0
].
component
=
ParentView
}
else
if
(
homePage
[
0
].
component
===
'InnerLink'
)
{
homePage
[
0
].
component
=
InnerLink
}
else
{
if
(
homePage
[
0
].
commonComponent
)
{
homePage
[
0
].
component
=
loadCommonView
(
homePage
[
0
].
component
)
}
else
if
(
homePage
[
0
].
erpComponent
)
{
homePage
[
0
].
component
=
loadErpView
(
homePage
[
0
].
component
)
}
else
{
homePage
[
0
].
component
=
loadView
(
homePage
[
0
].
component
)
}
}
}
/* 移除默认路由*/
let
newHome
=
{
let
newHome
=
{
path
:
''
,
path
:
''
,
component
:
Layout
,
// component: () => import('@/views/yhlywsytst/yhlywsytst/index.vue'),
redirect
:
'index'
,
component
:
()
=>
import
(
'common/src/erpViews/template/index.vue'
),
hidden
:
true
,
children
:
[{
path
:
'index'
,
component
:
homePage
[
0
].
component
,
name
:
'Index'
,
meta
:
{
title
:
'首页'
,
icon
:
'dashboard'
,
affix
:
true
}
}]
}
router
.
addRoutes
([
newHome
])
constantRoutes
.
push
(
newHome
)
}
else
{
let
newHome
=
{
path
:
''
,
component
:
Layout
,
redirect
:
'index'
,
redirect
:
'index'
,
hidden
:
true
,
hidden
:
true
,
noCache
:
true
,
children
:
[{
children
:
[{
path
:
'index'
,
path
:
'index'
,
component
:
()
=>
import
(
'@/views/
index
'
),
component
:
()
=>
import
(
'@/views/
yhlywsytst/yhlywsytst/index.vue
'
),
name
:
'Index'
,
name
:
'Index'
,
meta
:
{
meta
:
{
title
:
'首页'
,
title
:
'首页'
,
icon
:
'dashboard'
,
icon
:
'dashboard'
,
affix
:
true
affix
:
true
}
},
noCache
:
true
,
}]
}]
}
}
router
.
addRoutes
([
newHome
])
router
.
addRoutes
([
newHome
])
...
...
src/views/sbxxgl/ljhsz/index.vue
View file @
61021f02
...
@@ -78,7 +78,7 @@
...
@@ -78,7 +78,7 @@
"type"
:
"RelSelect"
,
"type"
:
"RelSelect"
,
"value"
:
""
,
"value"
:
""
,
"typeConfig"
:
{
"typeConfig"
:
{
"src"
:
"/sbgl/usbxx/init/zt
"
,
"src"
:
"/sbgl/usbxx/init/zt"
,
"match"
:
{
"match"
:
{
"value"
:
"id"
,
"value"
:
"id"
,
"label"
:
"name"
"label"
:
"name"
...
...
src/views/yhlywsytst/yhlywsytst/index.vue
View file @
61021f02
This diff is collapsed.
Click to expand it.
src/views/yhlywsytst/yhlywsytst/static/dhbg.png
0 → 100644
View file @
61021f02
3.2 KB
src/views/yhlywsytst/yhlywsytst/static/dhbg_active.png
0 → 100644
View file @
61021f02
3.34 KB
vue.config.js
View file @
61021f02
...
@@ -43,9 +43,11 @@ module.exports = {
...
@@ -43,9 +43,11 @@ module.exports = {
[
process
.
env
.
VUE_APP_BASE_API
]:
{
[
process
.
env
.
VUE_APP_BASE_API
]:
{
// target: `http://192.168.30.254:18080/dmg`,
// target: `http://192.168.30.254:18080/dmg`,
// target: `http://192.168.30.254:28084/erp`,
// target: `http://192.168.30.254:28084/erp`,
// target: `http://192.168.30.108:9080/lxyl`,
// target: 'http://192.168.30.109:9078/zghywpc',
target
:
'http://localhost:9080/lxyl'
,
target
:
'http://localhost:9078/zghywpc'
,
// target: `http://192.168.30.117:9080/lxyl`,
// target: 'http://119.3.92.249:28090/zghywpc',
// target: `http://192.168.30.118:9077/zghywpc`,
// target:'http://192.168.30.105:9080/lxyl',
// target:'http://192.168.30.105:9080/lxyl',
changeOrigin
:
true
,
changeOrigin
:
true
,
pathRewrite
:
{
pathRewrite
:
{
...
...
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