mirror of
https://github.com/jumpserver/lina.git
synced 2025-08-31 14:38:02 +00:00
Merge pull request #1928 from jumpserver/pr@dev@ticket_default_org
fix: ticket del global org
This commit is contained in:
@@ -122,7 +122,9 @@ export default {
|
||||
component: Select2,
|
||||
el: {
|
||||
multiple: false,
|
||||
options: this.$store.state.users.workbenchOrgs?.map((item) => {
|
||||
options: this.$store.state.users.workbenchOrgs.filter(item => {
|
||||
return item.id !== '00000000-0000-0000-0000-000000000000'
|
||||
})?.map((item) => {
|
||||
return { label: item.name, value: item.id }
|
||||
})
|
||||
},
|
||||
@@ -156,7 +158,9 @@ export default {
|
||||
},
|
||||
computed: {
|
||||
...mapState({
|
||||
workbenchOrgs: state => state.users.workbenchOrgs
|
||||
workbenchOrgs: state => state.users.workbenchOrgs.filter(item => {
|
||||
return item.id !== '00000000-0000-0000-0000-000000000000'
|
||||
})
|
||||
}),
|
||||
...mapGetters(['currentOrg'])
|
||||
},
|
||||
|
@@ -100,7 +100,9 @@ export default {
|
||||
component: Select2,
|
||||
el: {
|
||||
multiple: false,
|
||||
options: this.$store.state.users.workbenchOrgs?.map((item) => {
|
||||
options: this.$store.state.users.workbenchOrgs.filter(item => {
|
||||
return item.id !== '00000000-0000-0000-0000-000000000000'
|
||||
})?.map((item) => {
|
||||
return { label: item.name, value: item.id }
|
||||
})
|
||||
},
|
||||
@@ -130,7 +132,9 @@ export default {
|
||||
},
|
||||
computed: {
|
||||
...mapState({
|
||||
workbenchOrgs: state => state.users.workbenchOrgs
|
||||
workbenchOrgs: state => state.users.workbenchOrgs.filter(item => {
|
||||
return item.id !== '00000000-0000-0000-0000-000000000000'
|
||||
})
|
||||
}),
|
||||
...mapGetters(['currentOrg'])
|
||||
},
|
||||
|
Reference in New Issue
Block a user