Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sample-form-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
sample-form-platform
Commits
916bc99e
Commit
916bc99e
authored
May 06, 2025
by
“yiyousong”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf: 优化页面
parent
a04dfb47
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
7 deletions
+12
-7
sample-form-manager-ui/admin/src/pages/jump/jump.vue
sample-form-manager-ui/admin/src/pages/jump/jump.vue
+2
-1
sample-form-manager-ui/admin/src/pages/layouts/PageTabView.vue
...e-form-manager-ui/admin/src/pages/layouts/PageTabView.vue
+4
-4
sample-form-manager-ui/admin/src/pages/system/resourceManage/ResourceManage.vue
.../admin/src/pages/system/resourceManage/ResourceManage.vue
+5
-1
sample-form-manager-ui/admin/src/pages/system/user/User.vue
sample-form-manager-ui/admin/src/pages/system/user/User.vue
+1
-1
No files found.
sample-form-manager-ui/admin/src/pages/jump/jump.vue
View file @
916bc99e
...
@@ -27,6 +27,7 @@ export default {
...
@@ -27,6 +27,7 @@ export default {
"
SET_permissions
"
,
"
SET_permissions
"
,
"
SET_routes
"
,
"
SET_routes
"
,
"
SET_menusList
"
,
"
SET_menusList
"
,
"
SET_secondaryRoutes
"
,
]),
]),
// 获取token和站点信息
// 获取token和站点信息
async
getInfo
()
{
async
getInfo
()
{
...
@@ -57,9 +58,9 @@ export default {
...
@@ -57,9 +58,9 @@ export default {
this
.
SET_menusList
(
menus
);
this
.
SET_menusList
(
menus
);
this
.
setBtnPermissions
(
menuList
);
this
.
setBtnPermissions
(
menuList
);
calcMenu
();
calcMenu
();
if
(
routes
.
length
)
{
if
(
routes
.
length
)
{
let
path
=
routes
[
0
].
path
;
let
path
=
routes
[
0
].
path
;
this
.
SET_secondaryRoutes
(
path
);
this
.
$router
.
push
(
path
);
this
.
$router
.
push
(
path
);
}
else
{
}
else
{
this
.
$message
.
warning
(
"
暂无页面权限,请联系管理员!
"
);
this
.
$message
.
warning
(
"
暂无页面权限,请联系管理员!
"
);
...
...
sample-form-manager-ui/admin/src/pages/layouts/PageTabView.vue
View file @
916bc99e
<
template
>
<
template
>
<div
class=
"
system
"
>
<div
class=
"
page-tab-view
"
>
<el-tabs
:value=
"activeKey"
@
tab-click=
"changeRouter"
>
<el-tabs
:value=
"activeKey"
@
tab-click=
"changeRouter"
>
<el-tab-pane
v-for=
"v in secondaryRoutes"
:key=
"v.path"
:name=
"v.path"
>
<el-tab-pane
v-for=
"v in secondaryRoutes"
:key=
"v.path"
:name=
"v.path"
>
<template
slot=
"label"
>
<template
slot=
"label"
>
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
</
template
>
</
template
>
</el-tab-pane>
</el-tab-pane>
</el-tabs>
</el-tabs>
<div
class=
"
system-
out-box"
>
<div
class=
"out-box"
>
<router-view></router-view>
<router-view></router-view>
</div>
</div>
</div>
</div>
...
@@ -52,13 +52,13 @@ export default {
...
@@ -52,13 +52,13 @@ export default {
}
}
}
}
}
}
.
system
{
.
page-tab-view
{
width: 100%;
width: 100%;
height: 100%;
height: 100%;
background: #fff;
background: #fff;
display: flex;
display: flex;
flex-direction: column;
flex-direction: column;
.
system-
out-box {
.out-box {
flex: 1;
flex: 1;
padding: 15px;
padding: 15px;
overflow-y: auto;
overflow-y: auto;
...
...
sample-form-manager-ui/admin/src/pages/system/resourceManage/ResourceManage.vue
View file @
916bc99e
...
@@ -136,7 +136,11 @@ export default {
...
@@ -136,7 +136,11 @@ export default {
if
(
row
.
url
)
{
if
(
row
.
url
)
{
return
row
.
url
.
split
(
"
,
"
).
map
((
v
)
=>
{
return
row
.
url
.
split
(
"
,
"
).
map
((
v
)
=>
{
return
(
return
(
<
el
-
tag
class
=
"
mb-2 mr-2
"
type
=
"
info
"
size
=
"
mini
"
>
<
el
-
tag
style
=
"
margin-right: 5px; margin-bottom: 5px;
"
type
=
"
info
"
size
=
"
mini
"
>
{
v
}
{
v
}
<
/el-tag
>
<
/el-tag
>
);
);
...
...
sample-form-manager-ui/admin/src/pages/system/user/User.vue
View file @
916bc99e
...
@@ -114,7 +114,7 @@ export default {
...
@@ -114,7 +114,7 @@ export default {
formatter
:
(
row
)
=>
{
formatter
:
(
row
)
=>
{
if
(
row
.
roleIds
)
{
if
(
row
.
roleIds
)
{
return
(
return
(
<
div
class
=
"
flex justify-center gap-2
"
>
<
div
style
=
"
display: flex; justify-content: center; gap:4px
"
>
{
row
.
roleIds
.
split
(
"
,
"
).
map
((
v
)
=>
{
{
row
.
roleIds
.
split
(
"
,
"
).
map
((
v
)
=>
{
return
(
return
(
<
el
-
tag
size
=
"
small
"
type
=
"
info
"
>
<
el
-
tag
size
=
"
small
"
type
=
"
info
"
>
...
...
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