Commit 91db5aa0 by tangqy

添加注释

parent 8c591a9a
...@@ -93,10 +93,10 @@ export default { ...@@ -93,10 +93,10 @@ export default {
data () { data () {
return { return {
dialogFormVisible: false, dialogFormVisible: false,
selectList: [], selectList: [], // 已选择的条目,存的是路径 ['1-1-0','1-1-1']
tempSelectList: [], tempSelectList: [], // 没有点确定选择的临时条目,存的是路径 ['1-1-0','1-1-1']
quickItems: [], quickItems: [], // 已选择的条目,存的是选择的对象 [{},{}]
tempQuickItems: [], tempQuickItems: [], // 没有点确定选择的临时条目,存的是选择的对象 [{},{}]
limitLength: 10, limitLength: 10,
isSure: false isSure: false
} }
...@@ -147,7 +147,7 @@ export default { ...@@ -147,7 +147,7 @@ export default {
const totalLength = this.tempQuickItems.length + this.quickItems.length const totalLength = this.tempQuickItems.length + this.quickItems.length
if (this.limitLength < totalLength) { if (this.limitLength < totalLength) {
this.$message({ this.$message({
message: '最多选择十个快捷菜单', message: `最多选择${this.limitLength}个快捷菜单`,
type: 'warning' type: 'warning'
}) })
return false return false
...@@ -168,15 +168,6 @@ export default { ...@@ -168,15 +168,6 @@ export default {
this.tempQuickItems.slice(idx, 1) this.tempQuickItems.slice(idx, 1)
} }
} }
},
handlerLength (length) {
if (this.limitLength < length) {
this.$message({
message: '最多选择十个快捷菜单',
type: 'warning'
})
return false
}
} }
} }
} }
......
<template lang="pug"> <template lang="pug">
.menus-templete .menus-templete
//- 快捷菜单设置菜单,有确定,取消按钮
el-row.meuns-nav el-row.meuns-nav
el-menu(@click="toggleMenus($event)")&attributes({ el-menu(@click="toggleMenus($event)")&attributes({
'default-active':"2", 'default-active':"2",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment