mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-14 14:19:16 +00:00
perf: 优化平台列表tab页点击导出会导出全部数据问题
This commit is contained in:
@@ -97,6 +97,9 @@ export default {
|
|||||||
name: this?.name
|
name: this?.name
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
exportOptions: {
|
||||||
|
url: vm.url
|
||||||
|
},
|
||||||
moreCreates: {
|
moreCreates: {
|
||||||
callback: (item) => {
|
callback: (item) => {
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
@@ -127,6 +130,7 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
changeMoreCreates() {
|
changeMoreCreates() {
|
||||||
this.tableConfig.url = this.url
|
this.tableConfig.url = this.url
|
||||||
|
this.headerActions.exportOptions.url = this.url
|
||||||
this.headerActions.moreCreates.dropdown = this.$store.state.assets.assetCategoriesDropdown.filter(item => {
|
this.headerActions.moreCreates.dropdown = this.$store.state.assets.assetCategoriesDropdown.filter(item => {
|
||||||
return item.category === this.tab.activeMenu
|
return item.category === this.tab.activeMenu
|
||||||
})
|
})
|
||||||
|
Reference in New Issue
Block a user