Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
allCampaign
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
allCampaign
Commits
392e8c4e
Commit
392e8c4e
authored
May 16, 2019
by
Chao Sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
789
parent
9901c22c
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
26 additions
and
21 deletions
+26
-21
questionnair/src/app/page2/page2.component.ts
+1
-10
questionnair/src/app/page5/page5.component.ts
+1
-10
questionnair/src/app/page7/page7.component.ts
+8
-1
questionnair/src/app/page8/page8.component.ts
+8
-0
questionnair/src/app/page9/page9.component.ts
+8
-0
No files found.
questionnair/src/app/page2/page2.component.ts
View file @
392e8c4e
...
@@ -51,16 +51,7 @@ export class Page2Component implements OnInit {
...
@@ -51,16 +51,7 @@ export class Page2Component implements OnInit {
options
.
forEach
(
option
=>
{
options
.
forEach
(
option
=>
{
if
(
option
[
'selected'
])
{
if
(
option
[
'selected'
])
{
this
.
selectedObj
=
option
;
this
.
selectedObj
=
option
;
const
ret
=
{
this
.
getAnswer
(
this
.
selectedObj
)
pageId
:
this
.
curPageData
[
'pageId'
],
questions
:
[
{
questionId
:
this
.
curPageData
[
'questions'
][
0
].
questionId
,
options
:
[
this
.
selectedObj
]
}
]
}
this
.
getAllAnswer
.
emit
(
ret
);
}
}
})
})
}
}
...
...
questionnair/src/app/page5/page5.component.ts
View file @
392e8c4e
...
@@ -45,16 +45,7 @@ export class Page5Component implements OnInit {
...
@@ -45,16 +45,7 @@ export class Page5Component implements OnInit {
options
.
forEach
(
option
=>
{
options
.
forEach
(
option
=>
{
if
(
option
[
'selected'
])
{
if
(
option
[
'selected'
])
{
this
.
selectedObj
=
option
;
this
.
selectedObj
=
option
;
const
ret
=
{
this
.
getAnswer
(
this
.
selectedObj
)
pageId
:
this
.
curPageData
[
'pageId'
],
questions
:
[
{
questionId
:
this
.
curPageData
[
'questions'
][
0
].
questionId
,
options
:
[
this
.
selectedObj
]
}
]
}
this
.
getAllAnswer
.
emit
(
ret
);
}
}
})
})
}
}
...
...
questionnair/src/app/page7/page7.component.ts
View file @
392e8c4e
...
@@ -53,7 +53,14 @@ export class Page7Component implements OnInit {
...
@@ -53,7 +53,14 @@ export class Page7Component implements OnInit {
if
(
option
[
'selected'
])
{
if
(
option
[
'selected'
])
{
// console.log(this.selectedObj)
// console.log(this.selectedObj)
this
.
selectedObj
[
question
[
'questionId'
]]
=
option
this
.
selectedObj
[
question
[
'questionId'
]]
=
option
const
questions
=
Object
.
keys
(
this
.
curAllQues
).
map
(
questionId
=>
{
return
{
questionId
,
options
:
[
this
.
curAllQues
[
questionId
]]
}
})
const
ret
=
{
pageId
:
7
,
questions
}
this
.
getAllAnswer
.
emit
(
ret
)
}
}
})
})
})
})
...
...
questionnair/src/app/page8/page8.component.ts
View file @
392e8c4e
...
@@ -53,6 +53,14 @@ export class Page8Component implements OnInit {
...
@@ -53,6 +53,14 @@ export class Page8Component implements OnInit {
question
[
'options'
].
forEach
(
option
=>
{
question
[
'options'
].
forEach
(
option
=>
{
if
(
option
[
'selected'
])
{
if
(
option
[
'selected'
])
{
this
.
selectedObj
[
question
[
'questionId'
]]
=
option
this
.
selectedObj
[
question
[
'questionId'
]]
=
option
const
questions
=
Object
.
keys
(
this
.
curAllQues
).
map
(
questionId
=>
{
return
{
questionId
,
options
:
[
this
.
curAllQues
[
questionId
]]
}
})
const
ret
=
{
pageId
:
8
,
questions
}
this
.
getAllAnswer
.
emit
(
ret
)
}
}
})
})
})
})
...
...
questionnair/src/app/page9/page9.component.ts
View file @
392e8c4e
...
@@ -50,6 +50,14 @@ export class Page9Component implements OnInit {
...
@@ -50,6 +50,14 @@ export class Page9Component implements OnInit {
question
[
'options'
].
forEach
(
option
=>
{
question
[
'options'
].
forEach
(
option
=>
{
if
(
option
[
'selected'
])
{
if
(
option
[
'selected'
])
{
this
.
selectedObj
[
question
[
'questionId'
]]
=
option
this
.
selectedObj
[
question
[
'questionId'
]]
=
option
const
questions
=
Object
.
keys
(
this
.
curAllQues
).
map
(
questionId
=>
{
return
{
questionId
,
options
:
[
this
.
curAllQues
[
questionId
]]
}
})
const
ret
=
{
pageId
:
9
,
questions
}
this
.
getAllAnswer
.
emit
(
ret
)
}
}
})
})
})
})
...
...
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