Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
synergy-components
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
community
synergy-components
Commits
7665e654
Commit
7665e654
authored
Dec 24, 2025
by
Samir Sadyhov
🤔
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
запуск маршрутов - fix выбор ответственного
parent
1e693f16
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
5 deletions
+16
-5
constructor/scripts/openDocument/startRegistryRoute.js
constructor/scripts/openDocument/startRegistryRoute.js
+16
-5
No files found.
constructor/scripts/openDocument/startRegistryRoute.js
View file @
7665e654
...
...
@@ -43,12 +43,19 @@ const routeNames = {
const
getRouteName
=
routeType
=>
routeNames
[
routeType
]
||
routeType
;
const
createUserParamBlock
=
(
label
,
routeUserItem
,
itemContainer
)
=>
{
const
createUserParamBlock
=
(
label
,
routeUserItem
,
itemContainer
,
panelType
)
=>
{
const
fc
=
$
(
'
<div>
'
,
{
class
:
'
uk-form-controls
'
});
const
button
=
$
(
'
<a class="uk-form-icon uk-form-icon-flip" href="javascript:void(0);" uk-icon="icon: users"></a>
'
);
const
input
=
$
(
'
<input
style="background: #fff;"
class="uk-input" type="text" disabled>
'
);
const
input
=
$
(
'
<input class="uk-input" type="text" disabled>
'
);
const
values
=
routeUserItem
.
userID
!==
''
?
[{
personID
:
routeUserItem
.
userID
,
personName
:
routeUserItem
.
userName
}]
:
null
;
if
(
panelType
==
'
_action
'
)
{
button
.
attr
(
'
disabled
'
,
true
);
button
.
css
(
'
cursor
'
,
'
default
'
);
}
else
{
input
.
css
(
'
background
'
,
'
#fff
'
);
}
fc
.
append
(
$
(
'
<div class="uk-inline uk-width-expand">
'
).
append
(
button
,
input
));
if
(
values
)
{
...
...
@@ -57,6 +64,10 @@ const createUserParamBlock = (label, routeUserItem, itemContainer) => {
}
button
.
on
(
'
click
'
,
e
=>
{
e
.
preventDefault
();
if
(
panelType
==
'
_action
'
)
return
;
//(values, multiSelectable, isGroupSelectable, showWithoutPosition, filterPositionID, filterDepartmentID, locale, handler)
AS
.
SERVICES
.
showUserChooserDialog
(
values
,
false
,
false
,
false
,
null
,
null
,
AS
.
OPTIONS
.
locale
,
users
=>
{
const
userNames
=
users
.
map
(
x
=>
x
.
personName
).
join
(
'
;
'
);
...
...
@@ -150,13 +161,13 @@ this.StartRegistryRoute = class {
});
}
renderSettings
(
item
,
itemContainer
){
renderSettings
(
item
,
itemContainer
,
panelType
){
this
.
panelSettingsIsShow
=
true
;
this
.
showHidePanelSettings
();
this
.
panelSettings
.
empty
();
const
userBlock
=
createUserParamBlock
(
i18n
.
tr
(
'
Ответственный
'
),
item
,
itemContainer
);
const
userBlock
=
createUserParamBlock
(
i18n
.
tr
(
'
Ответственный
'
),
item
,
itemContainer
,
panelType
);
this
.
panelSettings
.
append
(
userBlock
);
}
...
...
@@ -186,7 +197,7 @@ this.StartRegistryRoute = class {
itemContainer
.
on
(
'
click
'
,
e
=>
{
e
.
preventDefault
();
if
(
$
(
e
.
target
).
closest
(
'
span
'
).
hasClass
(
"
delete_item_route_button
"
))
return
;
this
.
renderSettings
(
proc
,
itemContainer
);
this
.
renderSettings
(
proc
,
itemContainer
,
panelType
);
$
(
'
.route_item_container
'
).
removeClass
(
'
selected
'
);
itemContainer
.
addClass
(
'
selected
'
);
});
...
...
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