no message

Former-commit-id: cdcdb5dd88e58a3e26f54ee3ae1a0cc83ce83f20 [formerly cdcdb5dd88e58a3e26f54ee3ae1a0cc83ce83f20 [formerly cdcdb5dd88e58a3e26f54ee3ae1a0cc83ce83f20 [formerly cdcdb5dd88e58a3e26f54ee3ae1a0cc83ce83f20 [formerly 31cec02dfd7c845e1a2d75bce165e6e3ec054c46 [formerly ff90e389af802780e7c3501d1c5d8387eb6af6b8]]]]]
Former-commit-id: f0c46800807863ab7b3629a35c3231baed8ea1c9
Former-commit-id: f6b4cf11d6b0839f112a1672c300d1fb6d59ba70
Former-commit-id: d03ee0f0af1c1f0d83779cf1834b181f711b953d [formerly 7787f7f1e003a2dec4a85a7551ba5a6ce31f630b]
Former-commit-id: 56ecb0cef906382f23131499fa34266c5f845086
Former-commit-id: 8df445034cab37061cd5953d22e814bbe26e6840
Former-commit-id: caf8c8d018f8ae1c04e537377e4860fe6d29ca8b
Former-commit-id: 18f23af64396ce297fb7cf494c30adbd05e239b1
Former-commit-id: 364ce101edd9df6e42b6bd0f22d0e002a61031c6
This commit is contained in:
liyang
2018-07-01 11:23:33 +08:00
parent 3cef34afb6
commit b2a1940d94
2 changed files with 29 additions and 2 deletions

View File

@@ -19,8 +19,8 @@
</div>
</div>
<div class="d2-multiple-page-control-btn">
<el-dropdown split-button @click="handleClick">
<d2-icon name="times"/>
<el-dropdown split-button @click="handleControlBtnClick">
<d2-icon name="times-circle"/>
<el-dropdown-menu slot="dropdown">
<el-dropdown-item>
<d2-icon name="arrow-left" class="d2-mr-10"/>
@@ -32,6 +32,10 @@
</el-dropdown-item>
<el-dropdown-item>
<d2-icon name="times" class="d2-mr-10"/>
关闭其它
</el-dropdown-item>
<el-dropdown-item>
<d2-icon name="times-circle" class="d2-mr-10"/>
全部关闭
</el-dropdown-item>
</el-dropdown-menu>
@@ -55,6 +59,13 @@ export default {
})
},
methods: {
/**
* 接收点击关闭控制上按钮的事件
*/
handleControlBtnClick () {
// 关闭所有
this.closeAllTag()
},
/**
* 接收点击 tab 标签的事件
*/
@@ -77,6 +88,15 @@ export default {
this.closeTag(tagName)
}
},
/**
* 关闭全部的 tag
*/
closeAllTag () {
this.$store.commit('d2adminTagCloseAll')
this.$router.push({
name: 'index'
})
},
/**
* 关闭一个指定的 tag
*/