mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-15 14:24:39 +00:00
fix: 修复显示空更多操作列表的Bug
This commit is contained in:
@@ -211,7 +211,7 @@ export default {
|
||||
},
|
||||
headerActions: {
|
||||
hasLeftActions: this.hasLeftActions,
|
||||
hasBulkDelete: false,
|
||||
hasMoreActions: false,
|
||||
hasImport: this.hasImport,
|
||||
hasExport: this.hasExport,
|
||||
hasSearch: true,
|
||||
|
||||
@@ -25,6 +25,7 @@ export default {
|
||||
canCreate: defaultTrue,
|
||||
hasBulkDelete: defaultTrue,
|
||||
hasBulkUpdate: defaultFalse,
|
||||
hasMoreActions: defaultTrue,
|
||||
tableUrl: {
|
||||
type: String,
|
||||
default: ''
|
||||
@@ -123,6 +124,9 @@ export default {
|
||||
})
|
||||
},
|
||||
moreAction() {
|
||||
if (!this.hasMoreActions) {
|
||||
return
|
||||
}
|
||||
let dropdown = [...this.defaultMoreActions, ...this.extraMoreActions]
|
||||
dropdown = cleanActions(dropdown, true, {
|
||||
selectedRows: this.selectedRows,
|
||||
|
||||
@@ -60,7 +60,7 @@ export default {
|
||||
hasCreate: false,
|
||||
hasExport: false,
|
||||
hasImport: false,
|
||||
hasBulkDelete: false,
|
||||
hasMoreActions: false,
|
||||
createRoute: 'DatabaseAppCreate',
|
||||
moreCreates: {
|
||||
dropdown: [
|
||||
|
||||
@@ -49,7 +49,7 @@ export default {
|
||||
}
|
||||
},
|
||||
headerActions: {
|
||||
hasBulkDelete: false,
|
||||
hasMoreActions: false,
|
||||
hasExport: false,
|
||||
hasImport: false,
|
||||
createRoute: 'KubernetesAppCreate'
|
||||
|
||||
@@ -82,8 +82,7 @@ export default {
|
||||
hasRefresh: true,
|
||||
hasExport: false,
|
||||
hasImport: false,
|
||||
hasBulkDelete: false,
|
||||
hasBulkUpdate: false
|
||||
hasMoreActions: false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -80,7 +80,7 @@ export default {
|
||||
}
|
||||
},
|
||||
headerActions: {
|
||||
hasBulkDelete: false,
|
||||
hasMoreActions: false,
|
||||
hasImport: false,
|
||||
hasExport: false,
|
||||
createRoute: 'SyncInstanceTaskCreate'
|
||||
|
||||
@@ -87,7 +87,7 @@ export default {
|
||||
},
|
||||
headerActions: {
|
||||
hasRightActions: false,
|
||||
hasBulkDelete: false
|
||||
hasMoreActions: false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user