NEZ-1514 feat:全局搜索功能

This commit is contained in:
zhangyu
2022-01-17 16:32:00 +08:00
parent 7f6c7c504c
commit cc73e85860
14 changed files with 82 additions and 21 deletions

View File

@@ -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);
}
}