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
bd122c8d
Commit
bd122c8d
authored
Apr 23, 2026
by
Samir Sadyhov
🤔
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix components
parent
56b5606e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
6 deletions
+20
-6
constructor/scripts/ReportComponent/ReportComponent.js
constructor/scripts/ReportComponent/ReportComponent.js
+18
-5
constructor/scripts/openDocument/startRegistryRoute.js
constructor/scripts/openDocument/startRegistryRoute.js
+2
-1
No files found.
constructor/scripts/ReportComponent/ReportComponent.js
View file @
bd122c8d
...
@@ -372,6 +372,12 @@ this.ReportComponent = class {
...
@@ -372,6 +372,12 @@ this.ReportComponent = class {
this
.
componentContainer
.
append
(
container
);
this
.
componentContainer
.
append
(
container
);
}
}
checkObjectTypeMatch
()
{
if
(
!
this
.
objectType
)
return
false
;
this
.
objectType
=
Array
.
isArray
(
this
.
objectType
)
?
this
.
objectType
:
[
this
.
objectType
];
return
this
.
objectType
.
some
(
t
=>
objectTypes
.
includes
(
Number
(
t
)));
}
init
()
{
init
()
{
try
{
try
{
if
(
!
this
.
selectorContainer
)
throw
new
Error
(
'
Не передан селектор контейнера для отрисовки кнопки
'
);
if
(
!
this
.
selectorContainer
)
throw
new
Error
(
'
Не передан селектор контейнера для отрисовки кнопки
'
);
...
@@ -380,14 +386,21 @@ this.ReportComponent = class {
...
@@ -380,14 +386,21 @@ this.ReportComponent = class {
if
(
!
this
.
componentContainer
||
!
this
.
componentContainer
.
length
)
throw
new
Error
(
'
Не передан или передан некорректный селектор контейнера
'
);
if
(
!
this
.
componentContainer
||
!
this
.
componentContainer
.
length
)
throw
new
Error
(
'
Не передан или передан некорректный селектор контейнера
'
);
if
(
!
this
.
checkObjectTypeMatch
())
throw
new
Error
(
`ERROR ReportComponent: objectType not supported [objectType:
${
this
.
objectType
}
]`
);
this
.
renderHTML
();
this
.
renderHTML
();
rest
.
synergyGet
(
'
api/report/list
'
,
res
=>
{
rest
.
synergyGet
(
'
api/report/list
'
,
res
=>
{
if
(
this
.
registryCode
)
{
this
.
reportList
=
res
.
filter
(
x
=>
{
this
.
reportList
=
res
.
filter
(
x
=>
x
.
objectType
==
this
.
objectType
&&
x
.
objectCode
==
this
.
registryCode
);
const
typeMatch
=
this
.
objectType
.
includes
(
x
.
objectType
);
if
(
this
.
registryCode
)
{
return
typeMatch
&&
x
.
objectCode
==
this
.
registryCode
;
}
else
{
}
else
{
this
.
reportList
=
res
.
filter
(
x
=>
x
.
objectType
==
this
.
objectType
)
;
return
typeMatch
;
}
}
});
this
.
createReportMenu
();
this
.
createReportMenu
();
});
});
...
...
constructor/scripts/openDocument/startRegistryRoute.js
View file @
bd122c8d
...
@@ -141,7 +141,8 @@ this.StartRegistryRoute = class {
...
@@ -141,7 +141,8 @@ this.StartRegistryRoute = class {
Cons
.
hideLoader
();
Cons
.
hideLoader
();
this
.
closeDialog
();
if
(
isShowRoute
(
this
.
registryRoute
))
this
.
closeDialog
();
if
(
this
.
registryRoute
.
closeAfterActivation
===
"
true
"
)
this
.
closeDocument
(
this
.
_doc
);
if
(
this
.
registryRoute
.
closeAfterActivation
===
"
true
"
)
this
.
closeDocument
(
this
.
_doc
);
}
catch
(
err
)
{
}
catch
(
err
)
{
...
...
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