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
88b19803
Commit
88b19803
authored
May 22, 2019
by
Chao Sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
参数声明
parent
58f5d096
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
14 additions
and
13 deletions
+14
-13
questionnaire/src/app/age/age.component.ts
+1
-1
questionnaire/src/app/children-health/children-health.component.ts
+1
-1
questionnaire/src/app/disease/disease.component.ts
+1
-1
questionnaire/src/app/family/family.component.ts
+2
-1
questionnaire/src/app/health/health.component.ts
+1
-1
questionnaire/src/app/income/income.component.ts
+1
-1
questionnaire/src/app/job/job.component.ts
+1
-1
questionnaire/src/app/live/live.component.ts
+1
-1
questionnaire/src/app/loan/loan.component.ts
+1
-1
questionnaire/src/app/smoking/smoking.component.ts
+1
-1
questionnaire/src/app/social-security/social-security.component.ts
+1
-1
questionnaire/src/app/transit1/transit1.component.html
+1
-1
questionnaire/src/app/transit2/transit2.component.html
+1
-1
No files found.
questionnaire/src/app/age/age.component.ts
View file @
88b19803
...
@@ -10,7 +10,7 @@ import {ActivatedRoute, Router} from "@angular/router";
...
@@ -10,7 +10,7 @@ import {ActivatedRoute, Router} from "@angular/router";
export
class
AgeComponent
implements
OnInit
{
export
class
AgeComponent
implements
OnInit
{
// 家庭结构
// 家庭结构
type
:
any
;
type
:
any
;
curPageData
:
Array
<
any
>
;
curPageData
:
any
;
isShow
:
boolean
;
isShow
:
boolean
;
curQues
:
any
;
curQues
:
any
;
...
...
questionnaire/src/app/children-health/children-health.component.ts
View file @
88b19803
...
@@ -9,7 +9,7 @@ import {ActivatedRoute, Router} from "@angular/router";
...
@@ -9,7 +9,7 @@ import {ActivatedRoute, Router} from "@angular/router";
})
})
export
class
ChildrenHealthComponent
implements
OnInit
{
export
class
ChildrenHealthComponent
implements
OnInit
{
// 问题数据
// 问题数据
curPageData
:
Array
<
any
>
;
curPageData
:
any
;
// 获取是第几个孩子的健康状况
// 获取是第几个孩子的健康状况
id
:
any
;
id
:
any
;
// 获取家庭结构
// 获取家庭结构
...
...
questionnaire/src/app/disease/disease.component.ts
View file @
88b19803
...
@@ -8,7 +8,7 @@ import {ActivatedRoute, Router} from "@angular/router";
...
@@ -8,7 +8,7 @@ import {ActivatedRoute, Router} from "@angular/router";
styleUrls
:
[
'./disease.component.css'
]
styleUrls
:
[
'./disease.component.css'
]
})
})
export
class
DiseaseComponent
implements
OnInit
{
export
class
DiseaseComponent
implements
OnInit
{
curPageData
:
Array
<
any
>
;
curPageData
:
any
;
type
:
any
;
type
:
any
;
pageAnswers
:
any
;
pageAnswers
:
any
;
nextBtn
:
boolean
;
nextBtn
:
boolean
;
...
...
questionnaire/src/app/family/family.component.ts
View file @
88b19803
...
@@ -7,7 +7,7 @@ import {Router} from "@angular/router";
...
@@ -7,7 +7,7 @@ import {Router} from "@angular/router";
styleUrls
:
[
'./family.component.css'
]
styleUrls
:
[
'./family.component.css'
]
})
})
export
class
FamilyComponent
implements
OnInit
{
export
class
FamilyComponent
implements
OnInit
{
curPageData
:
Array
<
any
>
;
curPageData
:
any
;
pageAnswers
:
any
;
pageAnswers
:
any
;
selectedOptionId
:
any
;
selectedOptionId
:
any
;
// 上一次的答案
// 上一次的答案
...
@@ -33,6 +33,7 @@ export class FamilyComponent implements OnInit {
...
@@ -33,6 +33,7 @@ export class FamilyComponent implements OnInit {
this
.
lastQuestions
=
this
.
commonService
.
todosCopy
.
filter
(
item
=>
item
.
pageId
==
2
).
pop
();
this
.
lastQuestions
=
this
.
commonService
.
todosCopy
.
filter
(
item
=>
item
.
pageId
==
2
).
pop
();
this
.
commonService
.
surveyInfo
().
then
(
res
=>
{
this
.
commonService
.
surveyInfo
().
then
(
res
=>
{
this
.
curPageData
=
res
[
'data'
][
'survey'
][
'pages'
].
filter
(
item
=>
item
.
pageId
===
2
).
pop
();
this
.
curPageData
=
res
[
'data'
][
'survey'
][
'pages'
].
filter
(
item
=>
item
.
pageId
===
2
).
pop
();
console
.
log
(
this
.
curPageData
)
if
(
this
.
lastQuestions
)
{
if
(
this
.
lastQuestions
)
{
this
.
lastSelectedOptionId
=
this
.
lastQuestions
[
'questions'
][
0
][
'options'
][
0
][
'optionId'
]
this
.
lastSelectedOptionId
=
this
.
lastQuestions
[
'questions'
][
0
][
'options'
][
0
][
'optionId'
]
for
(
let
i
=
0
;
i
<
this
.
lastQuestions
[
'questions'
].
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
this
.
lastQuestions
[
'questions'
].
length
;
i
++
)
{
...
...
questionnaire/src/app/health/health.component.ts
View file @
88b19803
...
@@ -9,7 +9,7 @@ import {ActivatedRoute, Router} from "@angular/router";
...
@@ -9,7 +9,7 @@ import {ActivatedRoute, Router} from "@angular/router";
})
})
export
class
HealthComponent
implements
OnInit
{
export
class
HealthComponent
implements
OnInit
{
// 问题数据
// 问题数据
curPageData
:
Array
<
any
>
;
curPageData
:
any
;
// 获取是您的健康情况还是配偶的健康情况
// 获取是您的健康情况还是配偶的健康情况
id
:
any
;
id
:
any
;
// 获取家庭结构
// 获取家庭结构
...
...
questionnaire/src/app/income/income.component.ts
View file @
88b19803
...
@@ -8,7 +8,7 @@ import {ActivatedRoute, Router} from "@angular/router";
...
@@ -8,7 +8,7 @@ import {ActivatedRoute, Router} from "@angular/router";
styleUrls
:
[
'./income.component.css'
]
styleUrls
:
[
'./income.component.css'
]
})
})
export
class
IncomeComponent
implements
OnInit
{
export
class
IncomeComponent
implements
OnInit
{
curPageData
:
Array
<
any
>
;
curPageData
:
any
;
pageAnswers
:
any
;
pageAnswers
:
any
;
// 家庭结构
// 家庭结构
type
:
any
;
type
:
any
;
...
...
questionnaire/src/app/job/job.component.ts
View file @
88b19803
...
@@ -7,7 +7,7 @@ import {Router, ActivatedRoute} from "@angular/router";
...
@@ -7,7 +7,7 @@ import {Router, ActivatedRoute} from "@angular/router";
styleUrls
:
[
'./job.component.css'
]
styleUrls
:
[
'./job.component.css'
]
})
})
export
class
JobComponent
implements
OnInit
{
export
class
JobComponent
implements
OnInit
{
curPageData
:
Array
<
any
>
;
curPageData
:
any
;
pageAnswers
:
any
;
pageAnswers
:
any
;
selectedOptionId
:
any
;
selectedOptionId
:
any
;
type
:
any
;
type
:
any
;
...
...
questionnaire/src/app/live/live.component.ts
View file @
88b19803
...
@@ -8,7 +8,7 @@ import {ActivatedRoute, Router} from "@angular/router";
...
@@ -8,7 +8,7 @@ import {ActivatedRoute, Router} from "@angular/router";
styleUrls
:
[
'./live.component.css'
]
styleUrls
:
[
'./live.component.css'
]
})
})
export
class
LiveComponent
implements
OnInit
{
export
class
LiveComponent
implements
OnInit
{
curPageData
:
Array
<
any
>
;
curPageData
:
any
;
provinceList
:
Array
<
any
>
;
provinceList
:
Array
<
any
>
;
isShow
:
boolean
;
isShow
:
boolean
;
provinceId
:
number
;
provinceId
:
number
;
...
...
questionnaire/src/app/loan/loan.component.ts
View file @
88b19803
...
@@ -8,7 +8,7 @@ import {ActivatedRoute, Router} from "@angular/router";
...
@@ -8,7 +8,7 @@ import {ActivatedRoute, Router} from "@angular/router";
styleUrls
:
[
'./loan.component.css'
]
styleUrls
:
[
'./loan.component.css'
]
})
})
export
class
LoanComponent
implements
OnInit
{
export
class
LoanComponent
implements
OnInit
{
curPageData
:
Array
<
any
>
;
curPageData
:
any
;
// 家庭结构
// 家庭结构
type
:
any
;
type
:
any
;
pageAnswers
:
any
;
pageAnswers
:
any
;
...
...
questionnaire/src/app/smoking/smoking.component.ts
View file @
88b19803
...
@@ -8,7 +8,7 @@ import {ActivatedRoute, Router} from "@angular/router";
...
@@ -8,7 +8,7 @@ import {ActivatedRoute, Router} from "@angular/router";
styleUrls
:
[
'./smoking.component.css'
]
styleUrls
:
[
'./smoking.component.css'
]
})
})
export
class
SmokingComponent
implements
OnInit
{
export
class
SmokingComponent
implements
OnInit
{
curPageData
:
Array
<
any
>
;
curPageData
:
any
;
type
:
any
;
type
:
any
;
nextBtn
:
boolean
;
nextBtn
:
boolean
;
pageAnswers
:
any
;
pageAnswers
:
any
;
...
...
questionnaire/src/app/social-security/social-security.component.ts
View file @
88b19803
...
@@ -8,7 +8,7 @@ import {ActivatedRoute, Router} from "@angular/router";
...
@@ -8,7 +8,7 @@ import {ActivatedRoute, Router} from "@angular/router";
styleUrls
:
[
'./social-security.component.css'
]
styleUrls
:
[
'./social-security.component.css'
]
})
})
export
class
SocialSecurityComponent
implements
OnInit
{
export
class
SocialSecurityComponent
implements
OnInit
{
curPageData
:
Array
<
any
>
;
curPageData
:
any
;
// 家庭结构
// 家庭结构
type
:
any
;
type
:
any
;
nextBtn
:
boolean
;
nextBtn
:
boolean
;
...
...
questionnaire/src/app/transit1/transit1.component.html
View file @
88b19803
...
@@ -4,6 +4,6 @@
...
@@ -4,6 +4,6 @@
</div>
</div>
<div
class=
"content_footer"
>
<div
class=
"content_footer"
>
<div
style=
"color: #8a8a8a;"
(
click
)="
before
()"
>
<
</div>
<div
style=
"color: #8a8a8a;"
(
click
)="
before
()"
>
<
</div>
<div
[
ngStyle
]="{
color:
nextBtn =
=
false
?
'#
8a8a8a
'
:
'#
ec2d37
'
}"
(
click
)="
next
()"
>
下一步
</div>
<div
(
click
)="
next
()"
>
下一步
</div>
</div>
</div>
</div>
</div>
questionnaire/src/app/transit2/transit2.component.html
View file @
88b19803
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
</div>
</div>
<div
class=
"content_footer"
>
<div
class=
"content_footer"
>
<div
style=
"color: #8a8a8a;"
(
click
)="
before
()"
>
<
</div>
<div
style=
"color: #8a8a8a;"
(
click
)="
before
()"
>
<
</div>
<div
[
ngStyle
]="{
color:
nextBtn =
=
false
?
'#
8a8a8a
'
:
'#
ec2d37
'
}"
<div
(
click
)="
next
()"
(
click
)="
next
()"
>
下一步
</div>
>
下一步
</div>
</div>
</div>
...
...
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