Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
sts网站
Project
Project
Details
Activity
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
liyang
sts网站
Commits
5d4b0e6b
Commit
5d4b0e6b
authored
Nov 19, 2019
by
RuoYi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加主目录添加/删除操作
parent
e6cd9c43
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
index.vue
ruoyi-ui/src/views/system/menu/index.vue
+7
-5
No files found.
ruoyi-ui/src/views/system/menu/index.vue
View file @
5d4b0e6b
...
...
@@ -41,7 +41,7 @@
<el-table-column
prop=
"orderNum"
label=
"排序"
width=
"60px"
></el-table-column>
<el-table-column
prop=
"perms"
label=
"权限标识"
width=
"130px"
:show-overflow-tooltip=
"true"
></el-table-column>
<el-table-column
prop=
"component"
label=
"组件路径"
width=
"180px"
:show-overflow-tooltip=
"true"
></el-table-column>
<el-table-column
prop=
"visible"
label=
"
可见"
:formatter=
"visibleFormat"
width=
"80px"
></el-table-column>
<el-table-column
prop=
"visible"
label=
"可见"
:formatter=
"visibleFormat"
width=
"80px"
></el-table-column>
<el-table-column
label=
"创建时间"
align=
"center"
prop=
"createTime"
width=
"180"
>
<
template
slot-scope=
"scope"
>
<span>
{{
parseTime
(
scope
.
row
.
createTime
)
}}
</span>
...
...
@@ -63,7 +63,6 @@
v-hasPermi=
"['system:menu:add']"
>
新增
</el-button>
<el-button
v-if=
"scope.row.parentId != 0"
size=
"mini"
type=
"text"
icon=
"el-icon-delete"
...
...
@@ -78,7 +77,7 @@
<el-dialog
:title=
"title"
:visible
.
sync=
"open"
width=
"600px"
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"80px"
>
<el-row>
<el-col
:span=
"24"
v-if=
"form.parentId !== 0"
>
<el-col
:span=
"24"
>
<el-form-item
label=
"上级菜单"
>
<treeselect
v-model=
"form.parentId"
...
...
@@ -188,7 +187,7 @@ export default {
// 菜单表格树数据
menuList
:
[],
// 菜单树选项
menuOptions
:
undefined
,
menuOptions
:
[]
,
// 弹出层标题
title
:
""
,
// 是否显示弹出层
...
...
@@ -235,7 +234,10 @@ export default {
/** 查询菜单下拉树结构 */
getTreeselect
()
{
treeselect
().
then
(
response
=>
{
this
.
menuOptions
=
response
.
data
;
this
.
menuOptions
=
[];
const
menu
=
{
id
:
0
,
label
:
'主类目'
,
children
:
[]
};
menu
.
children
=
response
.
data
;
this
.
menuOptions
.
push
(
menu
);
});
},
// 菜单显示状态字典翻译
...
...
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