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
26f7d817
Commit
26f7d817
authored
Mar 16, 2023
by
Samir Sadyhov
🤔
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
канбан-доска - массовые действия
parent
58bc7b18
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
1 deletion
+27
-1
constructor/components/Канбан-доска/Канбан-доска.js
constructor/components/Канбан-доска/Канбан-доска.js
+27
-1
No files found.
constructor/components/Канбан-доска/Канбан-доска.js
View file @
26f7d817
...
...
@@ -469,7 +469,30 @@ const KanbanBoard = {
}
},
createMenuActions
:
function
(
massActions
){
const
{
containerID
,
items
}
=
massActions
;
const
menuContainer
=
$
(
'
<div uk-dropdown="mode: click">
'
);
const
nav
=
$
(
'
<ul>
'
,
{
class
:
'
uk-nav uk-dropdown-nav
'
});
menuContainer
.
append
(
nav
);
$
(
`#
${
containerID
}
`
).
append
(
menuContainer
);
items
.
forEach
(
item
=>
{
const
{
name
,
handler
,
className
=
''
}
=
item
;
const
navItem
=
$
(
`<li class="action-menu-item uk-disabled
${
className
}
"><a href="#">
${
name
}
</a></li>`
);
nav
.
append
(
navItem
);
navItem
.
on
(
'
click
'
,
e
=>
{
handler
(
this
.
selectedItems
,
()
=>
{
this
.
reset
();
this
.
render
();
});
});
});
},
reset
:
function
(){
this
.
selectedItems
=
[];
this
.
columns
.
forEach
(
column
=>
column
.
currentPage
=
0
);
},
...
...
@@ -484,7 +507,8 @@ const KanbanBoard = {
fieldDict
,
countInPart
=
5
,
sum
,
searchString
=
null
searchString
=
null
,
massActions
}
=
params
;
if
(
!
registryCode
)
throw
new
Error
(
`Не передан параметр registryCode`
);
...
...
@@ -520,6 +544,8 @@ const KanbanBoard = {
const
saveParam
=
sessionStorage
.
getItem
(
`filterParam_
${
Cons
.
getCurrentPage
().
code
}
_
${
AS
.
OPTIONS
.
currentUser
.
userid
}
`
);
if
(
!
saveParam
)
this
.
render
();
if
(
massActions
)
this
.
createMenuActions
(
massActions
);
Cons
.
hideLoader
();
}
else
{
throw
new
Error
(
`Не найдено реестра с кодом:
${
registryCode
}
`
);
...
...
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