add search filters to LibraryList and LibraryMap
This commit is contained in:
@@ -20,7 +20,8 @@ export default {
|
||||
nodeDepartId: undefined,
|
||||
trees: {},
|
||||
mode: undefined,
|
||||
nodebook: undefined
|
||||
nodebook: undefined,
|
||||
search: ''
|
||||
},
|
||||
|
||||
mutations: {
|
||||
@@ -67,6 +68,10 @@ export default {
|
||||
|
||||
'SET_NODE_DEPART_ID' (state, id) {
|
||||
state.nodeDepartId = id
|
||||
},
|
||||
|
||||
'SET_SEARCH' (state, str) {
|
||||
state.search = str
|
||||
}
|
||||
},
|
||||
|
||||
@@ -165,7 +170,9 @@ export default {
|
||||
},
|
||||
|
||||
getters: {
|
||||
mode: (state) => state.mode,
|
||||
mode: state => state.mode,
|
||||
nodeDepartId: state => state.nodeDepartId,
|
||||
search: state => state.search,
|
||||
|
||||
nodebook: (state, getters, rootState) => {
|
||||
if (!state.nodebook) return []
|
||||
|
||||
Reference in New Issue
Block a user