Skip to content

Commit

Permalink
更新其它方法
Browse files Browse the repository at this point in the history
Former-commit-id: 2b350f2c7dcabccf81332da56913ed5791b2630b [formerly 2b350f2c7dcabccf81332da56913ed5791b2630b [formerly 2b350f2c7dcabccf81332da56913ed5791b2630b [formerly 2b350f2c7dcabccf81332da56913ed5791b2630b [formerly fd209ad [formerly 2c257cb405ccac096443bd2fdccbaae5b7a7336c]]]]]
Former-commit-id: 434ea68
Former-commit-id: 9ac8dee
Former-commit-id: 16095a553ae10a98e0cbebdad85e31d0208e6326 [formerly eeb61bc0d3c1cce704fde0002c37dedae74b0238]
Former-commit-id: 5ce017604d4ab2d59966ec0506d8169e1d5bedce
Former-commit-id: d31d2b9eacc1a8babee74378e0e94dfd1ac9b2bd
Former-commit-id: 11ef4d394329d103b6092cb54d582e27cf3f55c9
Former-commit-id: 565b6d70b1ccc2315074c7ee0b8a1b12b1aed997
Former-commit-id: 47dc611dc81999519ee3a87706b3beec4d70d414
  • Loading branch information
FairyEver committed Jan 28, 2019
1 parent 87e1b9b commit ba13e07
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 25 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "d2-admin",
"version": "1.6.14",
"version": "1.6.15",
"private": true,
"scripts": {
"serve": "vue-cli-service serve --open",
Expand Down
13 changes: 3 additions & 10 deletions src/layout/header-aside/components/tabs/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<el-dropdown
size="default"
split-button
@click="handleControlBtnClick"
@click="closeAll"
@command="command => handleControlItemClick(command)">
<d2-icon name="times-circle"/>
<el-dropdown-menu slot="dropdown">
Expand Down Expand Up @@ -131,8 +131,7 @@ export default {
this.contextmenuFlag = false
}
const params = {
pageSelect: tagName,
vm: this
pageSelect: tagName
}
switch (command) {
case 'left':
Expand All @@ -145,19 +144,13 @@ export default {
this.closeOther(params)
break
case 'all':
this.closeAll(this)
this.closeAll()
break
default:
this.$message.error('无效的操作')
break
}
},
/**
* @description 接收点击关闭控制上按钮的事件
*/
handleControlBtnClick () {
this.closeAll(this)
},
/**
* @description 接收点击 tab 标签的事件
*/
Expand Down
18 changes: 5 additions & 13 deletions src/pages/demo/playground/store/page/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<el-button @click="handleCloseOther">
其它 <d2-icon name="times"/>
</el-button>
<el-button @click="handleCloseAll">
<el-button @click="closeAll">
全部 <d2-icon name="times-circle"/>
</el-button>
</el-button-group>
Expand Down Expand Up @@ -61,35 +61,27 @@ export default {
// 关闭当前
handleCloseCurrent () {
this.close({
tagName: this.$route.fullPath,
vm: this
tagName: this.$route.fullPath
})
},
// 关闭左侧
handleCloseLeft () {
this.closeLeft({
tagName: this.$route.fullPath,
vm: this
tagName: this.$route.fullPath
})
},
// 关闭右侧
handleCloseRight () {
this.closeRight({
tagName: this.$route.fullPath,
vm: this
tagName: this.$route.fullPath
})
},
// 关闭其他
handleCloseOther () {
this.closeOther({
tagName: this.$route.fullPath,
vm: this
tagName: this.$route.fullPath
})
},
// 关闭全部
handleCloseAll () {
this.closeAll(this)
},
// 清空当前页缓存并刷新此页面
handleCleanCacheAndRefreshCurrent () {
this.keepAliveRemove(this.$route.fullPath)
Expand Down
2 changes: 1 addition & 1 deletion src/store/modules/d2admin/modules/page.js.REMOVED.git-id
Original file line number Diff line number Diff line change
@@ -1 +1 @@
d249cb1f50667aeccdfc837b5b2986b0fe6b2dde
4b3ff7580fa4e0e1fede736ece71a9455d0ec4fe

0 comments on commit ba13e07

Please sign in to comment.