Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
scc-net
netvs
netvs-core
Commits
1fd2d8e7
Commit
1fd2d8e7
authored
Oct 12, 2020
by
janis.streib
🦉
Browse files
ADD: mgr2ou
parent
b51133af
Changes
1
Hide whitespace changes
Inline
Side-by-side
frontend/src/views/cntl/OU.vue
View file @
1fd2d8e7
...
...
@@ -34,11 +34,23 @@
{{
mgrs
[
data
.
item
.
mgr_login_name
].
email
}}
</b-link>
</
template
>
<
template
v-slot:head
(
actions
)
>
<b-button
@
click=
"assign_mgr(ou.short_name)"
block
variant=
"outline-success"
:id=
"'button-assign-mgr-' + ou.short_name"
>
<font-awesome-icon
:icon=
"['fas', 'plus']"
/>
</b-button>
<b-tooltip
:target=
"'button-assign-mgr-' + ou.short_name"
triggers=
"hover"
variant=
"success"
placement=
"left"
>
Neuen Account zuordnen
</b-tooltip>
</
template
>
</b-table>
</b-collapse>
</b-card>
</template>
</Loading>
<DBEditor
modal_id=
"assign_user_to_oe"
object_function=
"create"
object_fq_name=
"cntl.mgr2ou"
:presets=
"db_editor_presets"
:non_optionals_order=
"['ou_short_name', 'mgr_login_name']"
></DBEditor>
</div>
</template>
...
...
@@ -46,10 +58,11 @@
import
OUService
from
'
@/api-services/ou.service
'
import
Loading
from
'
@/components/Loading
'
import
apiutil
from
'
@/util/apiutil
'
import
DBEditor
from
'
@/components/DBEditor
'
export
default
{
name
:
'
OE
'
,
components
:
{
Loading
},
components
:
{
DBEditor
,
Loading
},
watch
:
{
only_own_oe
:
{
immediate
:
true
,
...
...
@@ -64,6 +77,7 @@ export default {
mgrs2ou
:
null
,
mgrs
:
null
,
ous
:
null
,
db_editor_presets
:
{},
ou_list_fields
:
[
{
key
:
'
mgr_login_name
'
,
...
...
@@ -100,6 +114,10 @@ export default {
this
.
mgrs2ou
=
apiutil
.
dict_of_lists_by_value_of_array
(
res
[
2
],
'
ou_short_name
'
)
this
.
mgrs
=
apiutil
.
dict_by_value_of_array
(
res
[
3
],
'
login_name
'
)
this
.
ous
=
res
[
1
]
},
assign_mgr
(
oe
)
{
this
.
db_editor_presets
=
{
ou_short_name
:
oe
}
this
.
$root
.
$emit
(
'
bv::show::modal
'
,
'
assign_user_to_oe
'
)
}
},
async
mounted
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment