NEZ-1514 feat:全局搜索功能
This commit is contained in:
@@ -96,6 +96,23 @@ export default {
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
tableData: {
|
||||
immediate: true,
|
||||
handler (n) {
|
||||
if (n && n.length) {
|
||||
const id = this.$store.getters.getGlobalSearchId
|
||||
if (id) {
|
||||
setTimeout(() => {
|
||||
if (document.getElementById('globalSearch' + id)) {
|
||||
document.getElementById('globalSearch' + id).scrollIntoView(true)
|
||||
this.$store.commit('setGlobalSearchId', '')
|
||||
}
|
||||
}, 500)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// document.querySelector("#header").scrollIntoView(true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user