修改eventBUs调用多次的问题
This commit is contained in:
@@ -128,6 +128,10 @@
|
||||
this.getData()
|
||||
this.getTableList()
|
||||
},
|
||||
beforeDestroy(){
|
||||
eventBUs.$off('searchQuery')
|
||||
eventBUs.$off('searchReset')
|
||||
},
|
||||
methods: {
|
||||
|
||||
getTextWith(text, fontStyle) {
|
||||
|
||||
@@ -127,6 +127,10 @@
|
||||
this.getTableList()
|
||||
this.userData = this.userInfo()
|
||||
},
|
||||
beforeDestroy(){
|
||||
eventBUs.$off('searchQuery')
|
||||
eventBUs.$off('searchReset')
|
||||
},
|
||||
methods: {
|
||||
...mapGetters(['userInfo']),
|
||||
getTextWith(text, fontStyle) {
|
||||
|
||||
@@ -138,6 +138,10 @@
|
||||
this.getData()
|
||||
this.getTableList()
|
||||
},
|
||||
beforeDestroy(){
|
||||
eventBUs.$off('searchQuery')
|
||||
eventBUs.$off('searchReset')
|
||||
},
|
||||
methods: {
|
||||
|
||||
getTextWith(text, fontStyle) {
|
||||
|
||||
@@ -124,6 +124,10 @@
|
||||
this.getData()
|
||||
this.getTableList()
|
||||
},
|
||||
beforeDestroy(){
|
||||
eventBUs.$off('searchQuery')
|
||||
eventBUs.$off('searchReset')
|
||||
},
|
||||
methods: {
|
||||
|
||||
getTextWith(text, fontStyle) {
|
||||
|
||||
@@ -132,6 +132,10 @@
|
||||
this.getTableList()
|
||||
this.userData = this.userInfo()
|
||||
},
|
||||
beforeDestroy(){
|
||||
eventBUs.$off('searchQuery')
|
||||
eventBUs.$off('searchReset')
|
||||
},
|
||||
methods: {
|
||||
...mapGetters(['userInfo']),
|
||||
urlClick(text, record) {
|
||||
|
||||
@@ -168,7 +168,9 @@
|
||||
},
|
||||
searchQueryList: {
|
||||
type: Array,
|
||||
default: []
|
||||
default: ()=>{
|
||||
return []
|
||||
}
|
||||
},
|
||||
isDefault: {
|
||||
type: Boolean,
|
||||
|
||||
@@ -123,6 +123,10 @@
|
||||
this.getData()
|
||||
this.getTableList()
|
||||
},
|
||||
beforeDestroy() {
|
||||
eventBUs.$off('searchQuery')
|
||||
eventBUs.$off('searchReset')
|
||||
},
|
||||
methods: {
|
||||
rowClassName(record) {
|
||||
return record.state == '废止' ? 'rowClassNameBack' : ''
|
||||
|
||||
@@ -181,6 +181,9 @@
|
||||
this.getList()
|
||||
})
|
||||
},
|
||||
beforeDestroy(){
|
||||
eventBUs.$off('searchQuery')
|
||||
},
|
||||
methods: {
|
||||
callback(tab) {
|
||||
this.activeTab = tab
|
||||
|
||||
Reference in New Issue
Block a user