mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-01 06:58:01 +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,
|
component: Select2,
|
||||||
el: {
|
el: {
|
||||||
multiple: false,
|
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 }
|
return { label: item.name, value: item.id }
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -156,7 +158,9 @@ export default {
|
|||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapState({
|
...mapState({
|
||||||
workbenchOrgs: state => state.users.workbenchOrgs
|
workbenchOrgs: state => state.users.workbenchOrgs.filter(item => {
|
||||||
|
return item.id !== '00000000-0000-0000-0000-000000000000'
|
||||||
|
})
|
||||||
}),
|
}),
|
||||||
...mapGetters(['currentOrg'])
|
...mapGetters(['currentOrg'])
|
||||||
},
|
},
|
||||||
|
@@ -100,7 +100,9 @@ export default {
|
|||||||
component: Select2,
|
component: Select2,
|
||||||
el: {
|
el: {
|
||||||
multiple: false,
|
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 }
|
return { label: item.name, value: item.id }
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -130,7 +132,9 @@ export default {
|
|||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapState({
|
...mapState({
|
||||||
workbenchOrgs: state => state.users.workbenchOrgs
|
workbenchOrgs: state => state.users.workbenchOrgs.filter(item => {
|
||||||
|
return item.id !== '00000000-0000-0000-0000-000000000000'
|
||||||
|
})
|
||||||
}),
|
}),
|
||||||
...mapGetters(['currentOrg'])
|
...mapGetters(['currentOrg'])
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user