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
5ffb7eb4
Commit
5ffb7eb4
authored
Jun 10, 2025
by
Samir Sadyhov
🤔
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update _RCC.js - ход выполнения в виде дерева + серым цветом не начавшиеся этапы
parent
b65ea849
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
16 deletions
+24
-16
constructor/scripts/RCC/_RCC.js
constructor/scripts/RCC/_RCC.js
+24
-16
No files found.
constructor/scripts/RCC/_RCC.js
View file @
5ffb7eb4
...
@@ -121,29 +121,37 @@ const getDocflowTable = htmlStr => {
...
@@ -121,29 +121,37 @@ const getDocflowTable = htmlStr => {
const
parseHistory
=
data
=>
{
const
parseHistory
=
data
=>
{
const
result
=
[];
const
result
=
[];
const
f
=
d
=>
{
const
getSpan
=
(
text
,
started
,
isPadding
)
=>
{
d
.
forEach
(
x
=>
{
if
(
!
text
||
text
==
''
)
return
''
;
const
span
=
$
(
'
<span>
'
);
span
.
text
(
text
);
if
(
!
started
)
span
.
css
(
'
color
'
,
'
#aaa
'
);
if
(
isPadding
)
span
.
css
(
'
padding-left
'
,
`
${
isPadding
*
15
}
px`
);
return
span
;
}
const
f
=
(
d
,
funcIndex
)
=>
{
d
.
forEach
((
x
,
i
)
=>
{
const
t
=
[];
const
t
=
[];
const
{
showInHistory
,
elementType
,
name
,
started
,
finished
,
comment
,
userName
,
authorName
,
finishedUser
,
subProcesses
}
=
x
;
const
{
showInHistory
,
name
,
started
,
finished
,
comment
,
userName
,
authorName
,
finishedUser
,
subProcesses
}
=
x
;
if
(
showInHistory
)
{
if
(
showInHistory
)
{
if
(
elementType
>
0
)
{
t
.
push
(
getSpan
(
name
,
started
,
funcIndex
));
t
.
push
(
`<span style="padding-left:
${
elementType
*
5
}
px;">
${
name
}
</span>`
);
t
.
push
(
getSpan
(
userName
,
started
));
}
else
{
t
.
push
(
getSpan
(
authorName
,
started
));
t
.
push
(
name
);
t
.
push
(
getSpan
(
started
?
AS
.
FORMS
.
DateUtils
.
formatDate
(
new
Date
(
started
),
'
${dd}.${mm}.${yy} ${HH}:${MM}
'
)
:
''
,
started
));
}
t
.
push
(
getSpan
(
finished
?
AS
.
FORMS
.
DateUtils
.
formatDate
(
new
Date
(
finished
),
'
${dd}.${mm}.${yy} ${HH}:${MM}
'
)
:
''
,
started
));
t
.
push
(
userName
||
''
);
t
.
push
(
getSpan
(
finishedUser
,
started
));
t
.
push
(
authorName
||
''
);
t
.
push
(
getSpan
(
comment
,
started
));
t
.
push
(
started
?
UTILS
.
customFormatDate
(
UTILS
.
formatDate
(
new
Date
(
started
),
true
))
:
''
);
t
.
push
(
finished
?
UTILS
.
customFormatDate
(
UTILS
.
formatDate
(
new
Date
(
finished
),
true
))
:
''
);
t
.
push
(
finishedUser
||
''
);
t
.
push
(
comment
||
''
);
result
.
push
(
t
);
result
.
push
(
t
);
if
(
subProcesses
&&
subProcesses
.
length
)
f
(
subProcesses
,
funcIndex
+
1
);
}
}
if
(
subProcesses
&&
subProcesses
.
length
)
f
(
subProcesses
);
});
});
}
}
f
(
data
);
f
(
data
,
0
);
return
result
;
return
result
;
}
}
...
...
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