Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
common-templete
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
汤强勇
common-templete
Commits
91db5aa0
Commit
91db5aa0
authored
Nov 07, 2018
by
tangqy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加注释
parent
8c591a9a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
14 deletions
+6
-14
edit.vue
src/components/menus/edit.vue
+5
-14
menusTemplete.vue
src/components/menus/menusTemplete.vue
+1
-0
No files found.
src/components/menus/edit.vue
View file @
91db5aa0
...
...
@@ -93,10 +93,10 @@ export default {
data
()
{
return
{
dialogFormVisible
:
false
,
selectList
:
[],
tempSelectList
:
[],
quickItems
:
[],
tempQuickItems
:
[],
selectList
:
[],
// 已选择的条目,存的是路径 ['1-1-0','1-1-1']
tempSelectList
:
[],
// 没有点确定选择的临时条目,存的是路径 ['1-1-0','1-1-1']
quickItems
:
[],
// 已选择的条目,存的是选择的对象 [{},{}]
tempQuickItems
:
[],
// 没有点确定选择的临时条目,存的是选择的对象 [{},{}]
limitLength
:
10
,
isSure
:
false
}
...
...
@@ -147,7 +147,7 @@ export default {
const
totalLength
=
this
.
tempQuickItems
.
length
+
this
.
quickItems
.
length
if
(
this
.
limitLength
<
totalLength
)
{
this
.
$message
({
message
:
'最多选择十个快捷菜单'
,
message
:
`最多选择
${
this
.
limitLength
}
个快捷菜单`
,
type
:
'warning'
})
return
false
...
...
@@ -168,15 +168,6 @@ export default {
this
.
tempQuickItems
.
slice
(
idx
,
1
)
}
}
},
handlerLength
(
length
)
{
if
(
this
.
limitLength
<
length
)
{
this
.
$message
({
message
:
'最多选择十个快捷菜单'
,
type
:
'warning'
})
return
false
}
}
}
}
...
...
src/components/menus/menusTemplete.vue
View file @
91db5aa0
<
template
lang=
"pug"
>
.menus-templete
//- 快捷菜单设置菜单,有确定,取消按钮
el-row.meuns-nav
el-menu(@click="toggleMenus($event)")&attributes({
'default-active':"2",
...
...
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