Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-operation-4
Overview
Overview
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
达摩4.0重构
haoban-operation-4
Commits
a27bbfeb
Commit
a27bbfeb
authored
Aug 07, 2020
by
caoyanzhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接口联调
parent
ed807cba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
17 deletions
+1
-17
menu-list.vue
src/views/permission/menu-config/menu-list.vue
+1
-17
No files found.
src/views/permission/menu-config/menu-list.vue
View file @
a27bbfeb
...
...
@@ -14,7 +14,7 @@
<el-table-column
label=
"节点名称"
prop=
"menuName"
:formatter=
"(row, col, val) => val || '--'"
></el-table-column>
<el-table-column
label=
"页面code"
prop=
"code"
:formatter=
"(row, col, val) => val || '--'"
></el-table-column>
<el-table-column
label=
"父级code"
prop=
"parentCode"
:formatter=
"(row, col, val) => val || '--'"
></el-table-column>
<el-table-column
:label=
"appType == 1 ? '好办版本' : '应用版本'"
prop=
"hbVersion"
:formatter=
"
formatVersion
"
></el-table-column>
<el-table-column
:label=
"appType == 1 ? '好办版本' : '应用版本'"
prop=
"hbVersion"
:formatter=
"
(row, col, val) => val || '--'
"
></el-table-column>
<el-table-column
label=
"操作"
width=
"320px"
>
<template
slot-scope=
"
{ row }">
<el-button
type=
"text"
@
click=
"onEditMenu(row)"
>
编辑
</el-button>
...
...
@@ -192,22 +192,6 @@ export default {
this
.
menuList
=
this
.
flatDataToTree
(
res
.
result
||
[]);
})
},
// 列表显示 格式化版本
formatVersion
(
row
,
col
,
val
)
{
let
result
=
'--'
;
if
(
this
.
appType
==
1
)
{
this
.
haobanVersionList
.
some
(
callback
);
}
else
{
this
.
appVersionList
.
some
(
callback
);
}
function
callback
(
el
)
{
if
(
el
.
versionCode
==
val
)
{
result
=
el
.
version
;
}
return
el
.
versionCode
==
val
;
}
return
result
;
},
// 收起、展开子节点
onExpandChange
()
{
this
.
showTable
=
false
;
...
...
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