Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
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
e4e06e22
Commit
e4e06e22
authored
Nov 05, 2025
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ERP
parent
7113755c
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1637 additions
and
45 deletions
+1637
-45
index.js
src/router/index.js
+5
-0
permission.js
src/store/modules/permission.js
+4
-1
index.vue
src/views/index.vue
+12
-44
index.vue
src/views/tool/getfs/index.vue
+1616
-0
No files found.
src/router/index.js
View file @
e4e06e22
...
@@ -56,6 +56,11 @@ export const constantRoutes = [
...
@@ -56,6 +56,11 @@ export const constantRoutes = [
component
:
()
=>
import
(
'@/views/register'
),
component
:
()
=>
import
(
'@/views/register'
),
hidden
:
true
hidden
:
true
},
},
{
path
:
'/getfs'
,
component
:
()
=>
import
(
'@/views/tool/getfs'
),
hidden
:
true
},
{
{
path
:
'/404'
,
path
:
'/404'
,
component
:
()
=>
import
(
'@/views/error/404'
),
component
:
()
=>
import
(
'@/views/error/404'
),
...
...
src/store/modules/permission.js
View file @
e4e06e22
...
@@ -184,7 +184,10 @@ const permission = {
...
@@ -184,7 +184,10 @@ const permission = {
}
else
if
(
homePage
[
0
].
erpComponent
)
{
}
else
if
(
homePage
[
0
].
erpComponent
)
{
homePage
[
0
].
component
=
loadErpView
(
homePage
[
0
].
component
)
homePage
[
0
].
component
=
loadErpView
(
homePage
[
0
].
component
)
}
else
{
}
else
if
(
homePage
[
0
].
iotComponent
)
{
homePage
[
0
].
component
=
loadIotView
(
homePage
[
0
].
component
)
}
else
{
homePage
[
0
].
component
=
loadView
(
homePage
[
0
].
component
)
homePage
[
0
].
component
=
loadView
(
homePage
[
0
].
component
)
}
}
...
...
src/views/index.vue
View file @
e4e06e22
<
template
>
<
template
>
<div
class=
"app-container home"
>
<div
class=
"app-container home"
>
<!--
<AuxMulSelect
:options=
'options'
v-model=
"test"
/>
-->
<el-skeleton
animated
style=
"width: 100%"
>
<el-skeleton
animated
style=
"width: 100%"
>
<template
slot=
"template"
>
<template
slot=
"template"
>
...
@@ -19,53 +19,21 @@
...
@@ -19,53 +19,21 @@
export
default
{
export
default
{
name
:
"Index"
,
name
:
"Index"
,
mounted
()
{
mounted
()
{
/* 递归设置*/
function
dgCrateRoutes
(
arr
,
pid
){
let
oldarr
=
JSON
.
parse
(
JSON
.
stringify
(
arr
))
let
outarr
=
[]
oldarr
.
forEach
((
e
,
index
)
=>
{
if
(
e
.
fmkid
==
pid
){
let
routes
=
routing
(
e
.
mkid
)
let
news
=
{...
e
,...
routes
}
outarr
.
push
(
news
)
e
.
children
=
dgCrateRoutes
(
oldarr
,
e
.
mkid
)
}
})
return
outarr
}
function
routing
(
mkid
){
let
componentInfo
=
{}
if
(
mkid
==
"101001300"
){
componentInfo
=
{
component
:
"system/user/index"
,
hidden
:
false
,
mata
:{
"title"
:
"用户管理"
,
"icon"
:
"user"
,
"noCache"
:
false
,
"link"
:
null
},
name
:
'User'
,
path
:
"user"
}
}
else
if
(
mkid
==
'101000000'
){
componentInfo
=
{
component
:
"Layout"
,
alwaysShow
:
true
,
hidden
:
false
,
name
:
"System"
,
path
:
"/system"
,
redirect
:
"noRedirect"
}
}
return
componentInfo
}
console
.
log
(
'系统管理'
,
dgCrateRoutes
(
menus
,
0
))
},
},
data
()
{
data
()
{
return
{
return
{
test
:
'1,2'
,
options
:[
{
id
:
1
,
name
:
'1n'
},
{
id
:
2
,
name
:
'2n'
}
],
// 版本号
// 版本号
version
:
"3.8.3"
,
version
:
"3.8.3"
,
};
};
...
...
src/views/tool/getfs/index.vue
0 → 100644
View file @
e4e06e22
This diff is collapsed.
Click to expand it.
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