bug fixed

Former-commit-id: 238ed16728c0be22854ec5f3fefabff707b7d1ba [formerly 238ed16728c0be22854ec5f3fefabff707b7d1ba [formerly 238ed16728c0be22854ec5f3fefabff707b7d1ba [formerly 238ed16728c0be22854ec5f3fefabff707b7d1ba [formerly 249790559ed1c4ca07ebf4bb1ceb3f7947bfcc60 [formerly d3d071acf90e6ff13f20700d29da681dd6fb2ea3]]]]]
Former-commit-id: 2e67366e7a2e5c37390f62f866f49058754bb618
Former-commit-id: d4caf73a9cecd20f20ce844b821c475a16afcbb8
Former-commit-id: 5219b66ff691e40b792d24b8093e111418748a60 [formerly ecc3fbea6954d1ab664ad0d9520027c23f26007a]
Former-commit-id: 92982117b9c5fe9de2a05c250f8959d93ea6c723
Former-commit-id: 57a2293971a72e6fa2ebf241bbd54c448d91e9e2
Former-commit-id: cf1369733bd29475cc69525b1189d81498379db0
Former-commit-id: 5e666d7738c4d11c856f21b8a9dd3e64a98e7e44
Former-commit-id: 5fad4e12a8b423b48633a96fc61bd95700bae651
This commit is contained in:
liyang
2018-08-09 19:37:08 +08:00
parent 4abdc61a80
commit 5ec1d84ca5
2 changed files with 5 additions and 13 deletions

View File

@@ -32,7 +32,7 @@
<el-dropdown
split-button
@click="handleControlBtnClick"
@command="handleControlItemClick">
@command="command => handleControlItemClick(command)">
<d2-icon name="times-circle"/>
<el-dropdown-menu slot="dropdown">
<el-dropdown-item command="left">
@@ -127,21 +127,13 @@ export default {
* @description 接收点击关闭控制上选项的事件
*/
handleControlItemClick (command, tagName = null) {
// 关闭右键菜单
this.contextmenuFlag = false
// 判断触发方式
let pageSelect = tagName
if (pageSelect) {
if (pageSelect._isVue) {
pageSelect = null
}
if (tagName) {
this.contextmenuFlag = false
}
// 设置传递参数
const params = {
pageSelect,
pageSelect: tagName,
vm: this
}
// 根据不同的类型触发不同的关闭事件
switch (command) {
case 'left':
this.d2adminTagCloseLeft(params)