no message
Former-commit-id: 86f9ed2fff02c4a5fafc731888781edccedc5a28 [formerly 95972867313a71c118ea0eff9a1476ec558550de] [formerly 86f9ed2fff02c4a5fafc731888781edccedc5a28 [formerly 95972867313a71c118ea0eff9a1476ec558550de] [formerly 86f9ed2fff02c4a5fafc731888781edccedc5a28 [formerly 95972867313a71c118ea0eff9a1476ec558550de] [formerly 95972867313a71c118ea0eff9a1476ec558550de [formerly 463e594a6422611dd505ad6632c04ffd36d5dc4e [formerly 3ba0fd928198f4defa5a0a80418f6845b0910afb]]]]] Former-commit-id: b2cd29ab5f335d6458e649e8b075f73a3fdccab3 Former-commit-id: 5be4a40c9ba7df59fe9503dc43dcb8222bbe992f Former-commit-id: c06aa08bf003516c444daeac5dd5a6c8d46a16f0 [formerly 7d9b2259e80e1063cd2180ba72501cf0a7ddbe0a] Former-commit-id: d3114e236eea2869c4e06de235723761677d98bf Former-commit-id: 3ae1bc3ab30b51c747f08e2fc3122f7558f0e71c Former-commit-id: cf745e2968126d0bedf579bce2606cf7bf2a1570 Former-commit-id: f1aa2ab2b8f1b2e07a065d54ea520e7cce4a32f5 Former-commit-id: 744a9a299f2607ed751ed2118a841f6f2f9462f2
This commit is contained in:
@@ -60,7 +60,7 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
/**
|
||||
* 接收点击关闭控制上选项的事件
|
||||
* @description 接收点击关闭控制上选项的事件
|
||||
*/
|
||||
handleControlItemClick (command) {
|
||||
switch (command) {
|
||||
@@ -82,14 +82,14 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* 接收点击关闭控制上按钮的事件
|
||||
* @description 接收点击关闭控制上按钮的事件
|
||||
*/
|
||||
handleControlBtnClick () {
|
||||
// 关闭所有
|
||||
this.closeAllTag()
|
||||
},
|
||||
/**
|
||||
* 接收点击 tab 标签的事件
|
||||
* @description 接收点击 tab 标签的事件
|
||||
*/
|
||||
handleClick (tab, event) {
|
||||
const page = this.pageOpenedList.find(page => page.name === tab.name)
|
||||
@@ -102,7 +102,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* 点击 tab 上的删除按钮后首先触发这里
|
||||
* @description 点击 tab 上的删除按钮后首先触发这里
|
||||
*/
|
||||
handleTabsEdit (tagName, action) {
|
||||
if (action === 'remove') {
|
||||
@@ -111,25 +111,25 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* 关闭左侧的 tag
|
||||
* @description 关闭左侧的 tag
|
||||
*/
|
||||
closeAllTagLeft () {
|
||||
//
|
||||
this.$store.commit('d2adminTagCloseLeft')
|
||||
},
|
||||
/**
|
||||
* 关闭右侧的 tag
|
||||
* @description 关闭右侧的 tag
|
||||
*/
|
||||
closeAllTagRight () {
|
||||
//
|
||||
this.$store.commit('d2adminTagCloseRight')
|
||||
},
|
||||
/**
|
||||
* 关闭其它的 tag
|
||||
* @description 关闭其它的 tag
|
||||
*/
|
||||
closeAllTagOther () {
|
||||
this.$store.commit('d2adminTagCloseOther')
|
||||
},
|
||||
/**
|
||||
* 关闭全部的 tag
|
||||
* @description 关闭全部的 tag
|
||||
*/
|
||||
closeAllTag () {
|
||||
this.$store.commit('d2adminTagCloseAll')
|
||||
@@ -138,7 +138,7 @@ export default {
|
||||
})
|
||||
},
|
||||
/**
|
||||
* 关闭一个指定的 tag
|
||||
* @description 关闭一个指定的 tag
|
||||
*/
|
||||
closeTag (tagName) {
|
||||
// 下个新的页面
|
||||
@@ -166,11 +166,13 @@ export default {
|
||||
this.linkTo(newPage)
|
||||
}
|
||||
},
|
||||
// TODO: 需要完善赋值
|
||||
linkTo ({ name, argu, query }) {
|
||||
/**
|
||||
* @description 跳转到新的页面
|
||||
*/
|
||||
linkTo ({ name = '', argu = {}, query = {} }) {
|
||||
let routerObj = {
|
||||
name,
|
||||
params: argu || {},
|
||||
params: argu,
|
||||
query
|
||||
}
|
||||
this.$router.push(routerObj)
|
||||
|
||||
@@ -100,6 +100,22 @@ export default {
|
||||
}
|
||||
// 更新设置到数据库
|
||||
this.commit('d2adminVuex2Db', 'pageOpenedList')
|
||||
},
|
||||
/**
|
||||
* @class pageOpenedList
|
||||
* @description 关闭当前标签左边的标签
|
||||
* @param {state} state vuex state
|
||||
*/
|
||||
d2adminTagCloseLeft (state) {
|
||||
|
||||
},
|
||||
/**
|
||||
* @class pageOpenedList
|
||||
* @description 关闭当前标签右边的标签
|
||||
* @param {state} state vuex state
|
||||
*/
|
||||
d2adminTagCloseRight (state) {
|
||||
|
||||
},
|
||||
/**
|
||||
* @class pageOpenedList
|
||||
|
||||
Reference in New Issue
Block a user