Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
cocktail-party-server
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
cocktail-party
cocktail-party-server
Commits
6130bebb
提交
6130bebb
authored
3月 06, 2022
作者:
RuoYi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
开启TopNav没有子菜单情况隐藏侧边栏
上级
9f944c04
隐藏空白字符变更
内嵌
并排
正在显示
27 个修改的文件
包含
57 行增加
和
52 行删除
+57
-52
index-tree.vue.vm
ruoyi-generator/src/main/resources/vm/vue/index-tree.vue.vm
+1
-1
SysMenuServiceImpl.java
...ava/com/ruoyi/system/service/impl/SysMenuServiceImpl.java
+1
-1
sidebar.scss
ruoyi-ui/src/assets/styles/sidebar.scss
+4
-0
index.vue
ruoyi-ui/src/components/TopNav/index.vue
+15
-23
index.vue
ruoyi-ui/src/layout/components/Settings/index.vue
+1
-0
index.vue
ruoyi-ui/src/layout/index.vue
+2
-2
index.js
ruoyi-ui/src/router/index.js
+6
-0
app.js
ruoyi-ui/src/store/modules/app.js
+8
-1
permission.js
ruoyi-ui/src/store/modules/permission.js
+1
-6
index.vue
ruoyi-ui/src/views/monitor/job/index.vue
+1
-1
log.vue
ruoyi-ui/src/views/monitor/job/log.vue
+1
-1
index.vue
ruoyi-ui/src/views/monitor/logininfor/index.vue
+1
-1
index.vue
ruoyi-ui/src/views/monitor/online/index.vue
+1
-1
index.vue
ruoyi-ui/src/views/monitor/operlog/index.vue
+1
-1
index.vue
ruoyi-ui/src/views/system/config/index.vue
+1
-1
index.vue
ruoyi-ui/src/views/system/dept/index.vue
+1
-1
data.vue
ruoyi-ui/src/views/system/dict/data.vue
+1
-1
index.vue
ruoyi-ui/src/views/system/dict/index.vue
+1
-1
index.vue
ruoyi-ui/src/views/system/menu/index.vue
+1
-1
index.vue
ruoyi-ui/src/views/system/notice/index.vue
+1
-1
index.vue
ruoyi-ui/src/views/system/post/index.vue
+1
-1
authUser.vue
ruoyi-ui/src/views/system/role/authUser.vue
+1
-1
index.vue
ruoyi-ui/src/views/system/role/index.vue
+1
-1
selectUser.vue
ruoyi-ui/src/views/system/role/selectUser.vue
+1
-1
index.vue
ruoyi-ui/src/views/system/user/index.vue
+1
-1
importTable.vue
ruoyi-ui/src/views/tool/gen/importTable.vue
+1
-1
index.vue
ruoyi-ui/src/views/tool/gen/index.vue
+1
-1
没有找到文件。
ruoyi-generator/src/main/resources/vm/vue/index-tree.vue.vm
浏览文件 @
6130bebb
<template>
<div class="app-container">
<el-form :model="queryParams" ref="queryForm" size="small" inline="true" v-show="showSearch" label-width="68px">
<el-form :model="queryParams" ref="queryForm" size="small"
:
inline="true" v-show="showSearch" label-width="68px">
#foreach($column in $columns)
#if($column.query)
#set($dictType=$column.dictType)
...
...
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysMenuServiceImpl.java
浏览文件 @
6130bebb
...
...
@@ -176,7 +176,7 @@ public class SysMenuServiceImpl implements ISysMenuService
else
if
(
menu
.
getParentId
().
intValue
()
==
0
&&
isInnerLink
(
menu
))
{
router
.
setMeta
(
new
MetaVo
(
menu
.
getMenuName
(),
menu
.
getIcon
()));
router
.
setPath
(
"/
inner
"
);
router
.
setPath
(
"/"
);
List
<
RouterVo
>
childrenList
=
new
ArrayList
<
RouterVo
>();
RouterVo
children
=
new
RouterVo
();
String
routerPath
=
innerLinkReplaceEach
(
menu
.
getPath
());
...
...
ruoyi-ui/src/assets/styles/sidebar.scss
浏览文件 @
6130bebb
...
...
@@ -7,6 +7,10 @@
position
:
relative
;
}
.sidebarHide
{
margin-left
:
0
!
important
;
}
.sidebar-container
{
-webkit-transition
:
width
.28s
;
transition
:
width
0
.28s
;
...
...
ruoyi-ui/src/components/TopNav/index.vue
浏览文件 @
6130bebb
...
...
@@ -71,7 +71,7 @@ export default {
for
(
var
item
in
router
.
children
)
{
if
(
router
.
children
[
item
].
parentPath
===
undefined
)
{
if
(
router
.
path
===
"/"
)
{
router
.
children
[
item
].
path
=
"/
redirect/
"
+
router
.
children
[
item
].
path
;
router
.
children
[
item
].
path
=
"/"
+
router
.
children
[
item
].
path
;
}
else
{
if
(
!
this
.
ishttp
(
router
.
children
[
item
].
path
))
{
router
.
children
[
item
].
path
=
router
.
path
+
"/"
+
router
.
children
[
item
].
path
;
...
...
@@ -87,22 +87,23 @@ export default {
// 默认激活的菜单
activeMenu
()
{
const
path
=
this
.
$route
.
path
;
let
activePath
=
this
.
defaultRouter
()
;
let
activePath
=
path
;
if
(
path
.
lastIndexOf
(
"/"
)
>
0
)
{
const
tmpPath
=
path
.
substring
(
1
,
path
.
length
);
activePath
=
"/"
+
tmpPath
.
substring
(
0
,
tmpPath
.
indexOf
(
"/"
));
this
.
$store
.
dispatch
(
'app/toggleSideBarHide'
,
false
);
}
else
if
(
"/index"
==
path
||
""
==
path
)
{
if
(
!
this
.
isFrist
)
{
this
.
isFrist
=
true
;
}
else
{
activePath
=
"index"
;
}
this
.
$store
.
dispatch
(
'app/toggleSideBarHide'
,
true
);
}
else
if
(
!
this
.
$route
.
children
)
{
activePath
=
path
;
this
.
$store
.
dispatch
(
'app/toggleSideBarHide'
,
true
);
}
var
routes
=
this
.
activeRoutes
(
activePath
);
if
(
routes
.
length
===
0
)
{
activePath
=
this
.
currentIndex
||
this
.
defaultRouter
()
this
.
activeRoutes
(
activePath
);
}
this
.
activeRoutes
(
activePath
);
return
activePath
;
},
},
...
...
@@ -121,29 +122,21 @@ export default {
const
width
=
document
.
body
.
getBoundingClientRect
().
width
/
3
;
this
.
visibleNumber
=
parseInt
(
width
/
85
);
},
// 默认激活的路由
defaultRouter
()
{
let
router
;
Object
.
keys
(
this
.
routers
).
some
((
key
)
=>
{
if
(
!
this
.
routers
[
key
].
hidden
)
{
router
=
this
.
routers
[
key
].
path
;
return
true
;
}
});
return
router
;
},
// 菜单选择事件
handleSelect
(
key
,
keyPath
)
{
this
.
currentIndex
=
key
;
const
route
=
this
.
routers
.
find
(
item
=>
item
.
path
===
key
);
if
(
this
.
ishttp
(
key
))
{
// http(s):// 路径新窗口打开
window
.
open
(
key
,
"_blank"
);
}
else
if
(
key
.
indexOf
(
"/redirect"
)
!==
-
1
)
{
// /redirect 路径内部打开
this
.
$router
.
push
({
path
:
key
.
replace
(
"/redirect"
,
""
)
});
}
else
if
(
!
route
||
!
route
.
children
)
{
// 没有子路由路径内部打开
this
.
$router
.
push
({
path
:
key
});
this
.
$store
.
dispatch
(
'app/toggleSideBarHide'
,
true
);
}
else
{
// 显示左侧联动菜单
this
.
activeRoutes
(
key
);
this
.
$store
.
dispatch
(
'app/toggleSideBarHide'
,
false
);
}
},
// 当前激活的路由
...
...
@@ -159,9 +152,8 @@ export default {
if
(
routes
.
length
>
0
)
{
this
.
$store
.
commit
(
"SET_SIDEBAR_ROUTERS"
,
routes
);
}
return
routes
;
},
ishttp
(
url
)
{
ishttp
(
url
)
{
return
url
.
indexOf
(
'http://'
)
!==
-
1
||
url
.
indexOf
(
'https://'
)
!==
-
1
}
},
...
...
ruoyi-ui/src/layout/components/Settings/index.vue
浏览文件 @
6130bebb
...
...
@@ -108,6 +108,7 @@ export default {
value
:
val
})
if
(
!
val
)
{
this
.
$store
.
dispatch
(
'app/toggleSideBarHide'
,
false
);
this
.
$store
.
commit
(
"SET_SIDEBAR_ROUTERS"
,
this
.
$store
.
state
.
permission
.
defaultRoutes
);
}
}
...
...
ruoyi-ui/src/layout/index.vue
浏览文件 @
6130bebb
<
template
>
<div
:class=
"classObj"
class=
"app-wrapper"
:style=
"
{'--current-color': theme}">
<div
v-if=
"device==='mobile'&&sidebar.opened"
class=
"drawer-bg"
@
click=
"handleClickOutside"
/>
<sidebar
class=
"sidebar-container"
/>
<div
:class=
"
{hasTagsView:needTagsView}" class="main-container">
<sidebar
v-if=
"!sidebar.hide"
class=
"sidebar-container"
/>
<div
:class=
"
{hasTagsView:needTagsView
,sidebarHide:sidebar.hide
}" class="main-container">
<div
:class=
"
{'fixed-header':fixedHeader}">
<navbar
/>
<tags-view
v-if=
"needTagsView"
/>
...
...
ruoyi-ui/src/router/index.js
浏览文件 @
6130bebb
...
...
@@ -164,6 +164,12 @@ export const dynamicRoutes = [
}
]
// 防止连续点击多次路由报错
let
routerPush
=
Router
.
prototype
.
push
;
Router
.
prototype
.
push
=
function
push
(
location
)
{
return
routerPush
.
call
(
this
,
location
).
catch
(
err
=>
err
)
}
export
default
new
Router
({
mode
:
'history'
,
// 去掉url中的#
scrollBehavior
:
()
=>
({
y
:
0
}),
...
...
ruoyi-ui/src/store/modules/app.js
浏览文件 @
6130bebb
...
...
@@ -3,7 +3,8 @@ import Cookies from 'js-cookie'
const
state
=
{
sidebar
:
{
opened
:
Cookies
.
get
(
'sidebarStatus'
)
?
!!+
Cookies
.
get
(
'sidebarStatus'
)
:
true
,
withoutAnimation
:
false
withoutAnimation
:
false
,
hide
:
false
},
device
:
'desktop'
,
size
:
Cookies
.
get
(
'size'
)
||
'medium'
...
...
@@ -30,6 +31,9 @@ const mutations = {
SET_SIZE
:
(
state
,
size
)
=>
{
state
.
size
=
size
Cookies
.
set
(
'size'
,
size
)
},
SET_SIDEBAR_HIDE
:
(
state
,
status
)
=>
{
state
.
sidebar
.
hide
=
status
}
}
...
...
@@ -45,6 +49,9 @@ const actions = {
},
setSize
({
commit
},
size
)
{
commit
(
'SET_SIZE'
,
size
)
},
toggleSideBarHide
({
commit
},
status
)
{
commit
(
'SET_SIDEBAR_HIDE'
,
status
)
}
}
...
...
ruoyi-ui/src/store/modules/permission.js
浏览文件 @
6130bebb
...
...
@@ -22,12 +22,7 @@ const permission = {
state
.
defaultRoutes
=
constantRoutes
.
concat
(
routes
)
},
SET_TOPBAR_ROUTES
:
(
state
,
routes
)
=>
{
// 顶部导航菜单默认添加统计报表栏指向首页
const
index
=
[{
path
:
'index'
,
meta
:
{
title
:
'统计报表'
,
icon
:
'dashboard'
}
}]
state
.
topbarRouters
=
routes
.
concat
(
index
);
state
.
topbarRouters
=
routes
},
SET_SIDEBAR_ROUTERS
:
(
state
,
routes
)
=>
{
state
.
sidebarRouters
=
routes
...
...
ruoyi-ui/src/views/monitor/job/index.vue
浏览文件 @
6130bebb
<
template
>
<div
class=
"app-container"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
inline=
"true"
v-show=
"showSearch"
label-width=
"68px"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
:
inline=
"true"
v-show=
"showSearch"
label-width=
"68px"
>
<el-form-item
label=
"任务名称"
prop=
"jobName"
>
<el-input
v-model=
"queryParams.jobName"
...
...
ruoyi-ui/src/views/monitor/job/log.vue
浏览文件 @
6130bebb
<
template
>
<div
class=
"app-container"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
inline=
"true"
v-show=
"showSearch"
label-width=
"68px"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
:
inline=
"true"
v-show=
"showSearch"
label-width=
"68px"
>
<el-form-item
label=
"任务名称"
prop=
"jobName"
>
<el-input
v-model=
"queryParams.jobName"
...
...
ruoyi-ui/src/views/monitor/logininfor/index.vue
浏览文件 @
6130bebb
<
template
>
<div
class=
"app-container"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
inline=
"true"
v-show=
"showSearch"
label-width=
"68px"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
:
inline=
"true"
v-show=
"showSearch"
label-width=
"68px"
>
<el-form-item
label=
"登录地址"
prop=
"ipaddr"
>
<el-input
v-model=
"queryParams.ipaddr"
...
...
ruoyi-ui/src/views/monitor/online/index.vue
浏览文件 @
6130bebb
<
template
>
<div
class=
"app-container"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
inline=
"true"
label-width=
"68px"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
:
inline=
"true"
label-width=
"68px"
>
<el-form-item
label=
"登录地址"
prop=
"ipaddr"
>
<el-input
v-model=
"queryParams.ipaddr"
...
...
ruoyi-ui/src/views/monitor/operlog/index.vue
浏览文件 @
6130bebb
<
template
>
<div
class=
"app-container"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
inline=
"true"
v-show=
"showSearch"
label-width=
"68px"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
:
inline=
"true"
v-show=
"showSearch"
label-width=
"68px"
>
<el-form-item
label=
"系统模块"
prop=
"title"
>
<el-input
v-model=
"queryParams.title"
...
...
ruoyi-ui/src/views/system/config/index.vue
浏览文件 @
6130bebb
<
template
>
<div
class=
"app-container"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
inline=
"true"
v-show=
"showSearch"
label-width=
"68px"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
:
inline=
"true"
v-show=
"showSearch"
label-width=
"68px"
>
<el-form-item
label=
"参数名称"
prop=
"configName"
>
<el-input
v-model=
"queryParams.configName"
...
...
ruoyi-ui/src/views/system/dept/index.vue
浏览文件 @
6130bebb
<
template
>
<div
class=
"app-container"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
inline=
"true"
v-show=
"showSearch"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
:
inline=
"true"
v-show=
"showSearch"
>
<el-form-item
label=
"部门名称"
prop=
"deptName"
>
<el-input
v-model=
"queryParams.deptName"
...
...
ruoyi-ui/src/views/system/dict/data.vue
浏览文件 @
6130bebb
<
template
>
<div
class=
"app-container"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
inline=
"true"
v-show=
"showSearch"
label-width=
"68px"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
:
inline=
"true"
v-show=
"showSearch"
label-width=
"68px"
>
<el-form-item
label=
"字典名称"
prop=
"dictType"
>
<el-select
v-model=
"queryParams.dictType"
>
<el-option
...
...
ruoyi-ui/src/views/system/dict/index.vue
浏览文件 @
6130bebb
<
template
>
<div
class=
"app-container"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
inline=
"true"
v-show=
"showSearch"
label-width=
"68px"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
:
inline=
"true"
v-show=
"showSearch"
label-width=
"68px"
>
<el-form-item
label=
"字典名称"
prop=
"dictName"
>
<el-input
v-model=
"queryParams.dictName"
...
...
ruoyi-ui/src/views/system/menu/index.vue
浏览文件 @
6130bebb
<
template
>
<div
class=
"app-container"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
inline=
"true"
v-show=
"showSearch"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
:
inline=
"true"
v-show=
"showSearch"
>
<el-form-item
label=
"菜单名称"
prop=
"menuName"
>
<el-input
v-model=
"queryParams.menuName"
...
...
ruoyi-ui/src/views/system/notice/index.vue
浏览文件 @
6130bebb
<
template
>
<div
class=
"app-container"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
inline=
"true"
v-show=
"showSearch"
label-width=
"68px"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
:
inline=
"true"
v-show=
"showSearch"
label-width=
"68px"
>
<el-form-item
label=
"公告标题"
prop=
"noticeTitle"
>
<el-input
v-model=
"queryParams.noticeTitle"
...
...
ruoyi-ui/src/views/system/post/index.vue
浏览文件 @
6130bebb
<
template
>
<div
class=
"app-container"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
inline=
"true"
v-show=
"showSearch"
label-width=
"68px"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
:
inline=
"true"
v-show=
"showSearch"
label-width=
"68px"
>
<el-form-item
label=
"岗位编码"
prop=
"postCode"
>
<el-input
v-model=
"queryParams.postCode"
...
...
ruoyi-ui/src/views/system/role/authUser.vue
浏览文件 @
6130bebb
<
template
>
<div
class=
"app-container"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
inline=
"true"
v-show=
"showSearch"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
:
inline=
"true"
v-show=
"showSearch"
>
<el-form-item
label=
"用户名称"
prop=
"userName"
>
<el-input
v-model=
"queryParams.userName"
...
...
ruoyi-ui/src/views/system/role/index.vue
浏览文件 @
6130bebb
<
template
>
<div
class=
"app-container"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
inline=
"true"
v-show=
"showSearch"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
:
inline=
"true"
v-show=
"showSearch"
>
<el-form-item
label=
"角色名称"
prop=
"roleName"
>
<el-input
v-model=
"queryParams.roleName"
...
...
ruoyi-ui/src/views/system/role/selectUser.vue
浏览文件 @
6130bebb
<
template
>
<!-- 授权用户 -->
<el-dialog
title=
"选择用户"
:visible
.
sync=
"visible"
width=
"800px"
top=
"5vh"
append-to-body
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
inline=
"true"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
:
inline=
"true"
>
<el-form-item
label=
"用户名称"
prop=
"userName"
>
<el-input
v-model=
"queryParams.userName"
...
...
ruoyi-ui/src/views/system/user/index.vue
浏览文件 @
6130bebb
...
...
@@ -27,7 +27,7 @@
</el-col>
<!--用户数据-->
<el-col
:span=
"20"
:xs=
"24"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
inline=
"true"
v-show=
"showSearch"
label-width=
"68px"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
:
inline=
"true"
v-show=
"showSearch"
label-width=
"68px"
>
<el-form-item
label=
"用户名称"
prop=
"userName"
>
<el-input
v-model=
"queryParams.userName"
...
...
ruoyi-ui/src/views/tool/gen/importTable.vue
浏览文件 @
6130bebb
<
template
>
<!-- 导入表 -->
<el-dialog
title=
"导入表"
:visible
.
sync=
"visible"
width=
"800px"
top=
"5vh"
append-to-body
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
inline=
"true"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
:
inline=
"true"
>
<el-form-item
label=
"表名称"
prop=
"tableName"
>
<el-input
v-model=
"queryParams.tableName"
...
...
ruoyi-ui/src/views/tool/gen/index.vue
浏览文件 @
6130bebb
<
template
>
<div
class=
"app-container"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
inline=
"true"
v-show=
"showSearch"
label-width=
"68px"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
:
inline=
"true"
v-show=
"showSearch"
label-width=
"68px"
>
<el-form-item
label=
"表名称"
prop=
"tableName"
>
<el-input
v-model=
"queryParams.tableName"
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论