Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-convertor-view
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
station
amos-convertor-view
Commits
8f361d08
Commit
8f361d08
authored
Mar 31, 2020
by
shanqiyun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
任务列表重置功能
parent
a9eba571
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
StageActuator.js
src/view/planMgmt/view/pubview/StageActuator.js
+1
-0
index.js
src/view/planMgmt/view/pubview/taskTabs/index.js
+10
-0
No files found.
src/view/planMgmt/view/pubview/StageActuator.js
View file @
8f361d08
...
...
@@ -140,6 +140,7 @@ class StageActuator extends Component {
if
(
type
===
'reset'
){
this
.
a3dRef
&&
this
.
a3dRef
.
playAll
();
this
.
setState
({
currentIndex
:
0
,
ativeAnimate
:
animations
[
0
].
animateKey
});
this
.
taskTabs
.
resetTaskTabs
();
}
else
{
this
.
a3dRef
&&
this
.
a3dRef
.
changePlayState
(
'start'
);
}
...
...
src/view/planMgmt/view/pubview/taskTabs/index.js
View file @
8f361d08
...
...
@@ -73,6 +73,16 @@ class taskTabs extends Component {
this
.
setState
({
tabs
});
}
resetTaskTabs
=
()
=>
{
let
{
tabs
}
=
this
.
state
;
tabs
.
forEach
(
t
=>
{
t
.
models
.
forEach
(
m
=>
{
m
.
tasks
=
[];
});
});
this
.
setState
({
tabs
});
}
render
()
{
const
{
tabs
,
taskTabsShow
}
=
this
.
state
;
if
(
taskTabsShow
){
...
...
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