Commit 91db5aa0 by tangqy

添加注释

parent 8c591a9a
......@@ -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
}
}
}
}
......
<template lang="pug">
.menus-templete
//- 快捷菜单设置菜单,有确定,取消按钮
el-row.meuns-nav
el-menu(@click="toggleMenus($event)")&attributes({
'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