Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wisdom-ces
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
wangqinghua
wisdom-ces
Commits
38e033aa
Commit
38e033aa
authored
Oct 18, 2018
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
color
parent
55d4605b
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
54 additions
and
48 deletions
+54
-48
config.xml
config.xml
+1
-1
survery.html
src/pages/mine/mySurvey/survery/survery.html
+2
-9
survey-preview.html
src/pages/mine/mySurvey/survey-preview/survey-preview.html
+1
-1
survey-preview.scss
src/pages/mine/mySurvey/survey-preview/survey-preview.scss
+8
-8
survey-preview.ts
src/pages/mine/mySurvey/survey-preview/survey-preview.ts
+11
-4
survey-result.scss
src/pages/mine/mySurvey/survey-result/survey-result.scss
+8
-8
survey-write.html
src/pages/mine/mySurvey/survey-write/survey-write.html
+1
-1
survey-write.scss
src/pages/mine/mySurvey/survey-write/survey-write.scss
+8
-8
survey-write.ts
src/pages/mine/mySurvey/survey-write/survey-write.ts
+6
-0
create.ts
src/pages/surveyManage/item/create/create.ts
+1
-1
list.html
src/pages/surveyManage/list/list.html
+1
-1
appHttpService.ts
src/service/appHttpService.ts
+6
-6
No files found.
config.xml
View file @
38e033aa
<?xml version='1.0' encoding='utf-8'?>
<?xml version='1.0' encoding='utf-8'?>
<widget
id=
"io.ionic.starter"
version=
"1.2.
3
"
xmlns=
"http://www.w3.org/ns/widgets"
xmlns:cdv=
"http://cordova.apache.org/ns/1.0"
>
<widget
id=
"io.ionic.starter"
version=
"1.2.
5
"
xmlns=
"http://www.w3.org/ns/widgets"
xmlns:cdv=
"http://cordova.apache.org/ns/1.0"
>
<name>
智汇19号
</name>
<name>
智汇19号
</name>
<description>
An awesome Ionic/Cordova app.
</description>
<description>
An awesome Ionic/Cordova app.
</description>
<author
email=
"hi@ionicframework"
href=
"http://ionicframework.com/"
>
Ionic Framework Team
</author>
<author
email=
"hi@ionicframework"
href=
"http://ionicframework.com/"
>
Ionic Framework Team
</author>
...
...
src/pages/mine/mySurvey/survery/survery.html
View file @
38e033aa
...
@@ -17,7 +17,8 @@
...
@@ -17,7 +17,8 @@
<div
class=
"item-header-style"
>
<div
class=
"item-header-style"
>
<span
class=
"item-title"
>
{{item.title}}
</span>
<span
class=
"item-title"
>
{{item.title}}
</span>
<!--<span float-right class="done" *ngIf="item.state==1 ">未发布</span>-->
<!--<span float-right class="done" *ngIf="item.state==1 ">未发布</span>-->
<span
float-right
class=
"done"
>
已完成
</span>
<span
*
ngIf=
"item?.writeSelf != 0"
float-right
class=
"done"
>
已完成
</span>
<span
*
ngIf=
"item?.writeSelf == 0"
float-right
class=
"done"
>
未完成
</span>
<!--<span float-right class="done" *ngIf="item.state==3 ">已过期</span>-->
<!--<span float-right class="done" *ngIf="item.state==3 ">已过期</span>-->
</div>
</div>
</div>
</div>
...
@@ -32,13 +33,5 @@
...
@@ -32,13 +33,5 @@
</ion-item>
</ion-item>
</ng-container>
</ng-container>
</ng-container>
</ng-container>
<ng-container
*
ngIf=
"list.length == 0"
>
<div
text-center
style=
"margin-top: 10rem"
*
ngIf=
"list.length == 0"
>
<img
style=
"width: 20%;"
src=
"./assets/imgs/no-info.png"
alt=
""
>
<p
text-center
>
暂无数据
</p>
</div>
</ng-container>
</ion-list>
</ion-list>
</ion-content>
</ion-content>
src/pages/mine/mySurvey/survey-preview/survey-preview.html
View file @
38e033aa
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
</ng-container>
</ng-container>
<ng-container
*
ngIf=
"item.quesType == 3"
>
<ng-container
*
ngIf=
"item.quesType == 3"
>
<ng-container
*
ngFor=
" let option2 of item.quesDesc;let i2 = index;"
>
<ng-container
*
ngFor=
" let option2 of item.quesDesc;let i2 = index;"
>
<p><span
class=
"input-check {{
item.option?.answerdesc[i2] == i2
?'select-check':''}}"
></span>
{{option2.option_title}}
</p>
<p><span
class=
"input-check {{
option2.select == true
?'select-check':''}}"
></span>
{{option2.option_title}}
</p>
</ng-container>
</ng-container>
</ng-container>
</ng-container>
<ng-container
*
ngIf=
"item.quesType == 4"
>
<ng-container
*
ngIf=
"item.quesType == 4"
>
...
...
src/pages/mine/mySurvey/survey-preview/survey-preview.scss
View file @
38e033aa
...
@@ -62,8 +62,8 @@ page-survey-preview {
...
@@ -62,8 +62,8 @@ page-survey-preview {
border
:
1px
solid
#ddd
;
border
:
1px
solid
#ddd
;
display
:
inline-block
;
display
:
inline-block
;
border-radius
:
50%
;
border-radius
:
50%
;
width
:
1
.2rem
;
width
:
1
5px
;
height
:
1
.2rem
;
height
:
1
5px
;
margin-right
:
8px
;
margin-right
:
8px
;
vertical-align
:
sub
;
vertical-align
:
sub
;
}
}
...
@@ -73,9 +73,9 @@ page-survey-preview {
...
@@ -73,9 +73,9 @@ page-survey-preview {
.
select-raio
:
:
after
{
.
select-raio
:
:
after
{
content
:
''
;
content
:
''
;
position
:
absolute
;
position
:
absolute
;
width
:
0
.7rem
;
width
:
10px
;
top
:
2px
;
top
:
2px
;
height
:
0
.7rem
;
height
:
10px
;
border-radius
:
50%
;
border-radius
:
50%
;
background-color
:
#333
;
background-color
:
#333
;
left
:
2px
;
left
:
2px
;
...
@@ -83,8 +83,8 @@ page-survey-preview {
...
@@ -83,8 +83,8 @@ page-survey-preview {
.input-check
{
.input-check
{
border
:
1px
solid
#ddd
;
border
:
1px
solid
#ddd
;
display
:
inline-block
;
display
:
inline-block
;
width
:
1
.2rem
;
width
:
1
6px
;
height
:
1
.2rem
;
height
:
1
6px
;
margin-right
:
8px
;
margin-right
:
8px
;
vertical-align
:
text-top
;
vertical-align
:
text-top
;
border-radius
:
2px
;
border-radius
:
2px
;
...
@@ -95,9 +95,9 @@ page-survey-preview {
...
@@ -95,9 +95,9 @@ page-survey-preview {
.
select-check
:
:
after
{
.
select-check
:
:
after
{
content
:
'\2713'
;
content
:
'\2713'
;
position
:
absolute
;
position
:
absolute
;
width
:
0
.7rem
;
width
:
10px
;
top
:
-4px
;
top
:
-4px
;
height
:
0
.7rem
;
height
:
10px
;
font-size
:
1
.5rem
;
font-size
:
1
.5rem
;
font-weight
:
bold
;
font-weight
:
bold
;
}
}
...
...
src/pages/mine/mySurvey/survey-preview/survey-preview.ts
View file @
38e033aa
import
{
Component
}
from
'@angular/core'
;
import
{
Component
}
from
'@angular/core'
;
import
{
IonicPage
,
NavController
,
NavParams
}
from
'ionic-angular'
;
import
{
IonicPage
,
NavController
,
NavParams
}
from
'ionic-angular'
;
import
{
AppService
}
from
"../../../../service/appHttpService"
;
import
{
AppService
}
from
"../../../../service/appHttpService"
;
import
{
Storage
}
from
"@ionic/storage"
;
import
{
Storage
}
from
"@ionic/storage"
;
import
{
SurveyResultPage
}
from
"../survey-result/survey-result"
;
import
{
SurveyResultPage
}
from
"../survey-result/survey-result"
;
...
@@ -36,10 +36,17 @@ export class SurveyPreviewPage {
...
@@ -36,10 +36,17 @@ export class SurveyPreviewPage {
.
subscribe
((
res
)
=>
{
.
subscribe
((
res
)
=>
{
this
.
survey
=
res
.
json
().
data
;
this
.
survey
=
res
.
json
().
data
;
this
.
contentList
=
res
.
json
().
data
.
ques
.
datalist
;
this
.
contentList
=
res
.
json
().
data
.
ques
.
datalist
;
this
.
contentList
.
forEach
(
res
=>
{
this
.
contentList
.
forEach
(
res
=>
{
res
.
quesDesc
=
JSON
.
parse
(
res
.
quesDesc
);
res
.
quesDesc
=
JSON
.
parse
(
res
.
quesDesc
);
if
(
res
.
quesType
==
3
&&
res
.
option
){
if
(
res
.
quesType
==
3
&&
res
.
option
)
{
res
.
option
.
answerdesc
=
res
.
option
.
answerdesc
.
split
(
','
);
res
.
quesDesc
.
forEach
(
data
=>
{
if
(
res
.
option
.
answerdesc
.
indexOf
(
data
.
index
)
!=
-
1
){
data
.
select
=
true
;
}
else
{
data
.
select
=
false
;
}
});
console
.
log
(
res
.
option
.
answerdesc
);
}
}
});
});
console
.
log
(
this
.
contentList
);
console
.
log
(
this
.
contentList
);
...
...
src/pages/mine/mySurvey/survey-result/survey-result.scss
View file @
38e033aa
...
@@ -62,8 +62,8 @@ page-survey-result {
...
@@ -62,8 +62,8 @@ page-survey-result {
border
:
1px
solid
#ddd
;
border
:
1px
solid
#ddd
;
display
:
inline-block
;
display
:
inline-block
;
border-radius
:
50%
;
border-radius
:
50%
;
width
:
1
.2rem
;
width
:
1
5px
;
height
:
1
.2rem
;
height
:
1
5px
;
margin-right
:
8px
;
margin-right
:
8px
;
vertical-align
:
sub
;
vertical-align
:
sub
;
}
}
...
@@ -73,9 +73,9 @@ page-survey-result {
...
@@ -73,9 +73,9 @@ page-survey-result {
.
select-raio
:
:
after
{
.
select-raio
:
:
after
{
content
:
''
;
content
:
''
;
position
:
absolute
;
position
:
absolute
;
width
:
0
.7rem
;
width
:
10px
;
top
:
2px
;
top
:
2px
;
height
:
0
.7rem
;
height
:
10px
;
border-radius
:
50%
;
border-radius
:
50%
;
background-color
:
#333
;
background-color
:
#333
;
left
:
2px
;
left
:
2px
;
...
@@ -83,8 +83,8 @@ page-survey-result {
...
@@ -83,8 +83,8 @@ page-survey-result {
.input-check
{
.input-check
{
border
:
1px
solid
#ddd
;
border
:
1px
solid
#ddd
;
display
:
inline-block
;
display
:
inline-block
;
width
:
1
.2rem
;
width
:
1
5px
;
height
:
1
.2rem
;
height
:
1
5px
;
margin-right
:
8px
;
margin-right
:
8px
;
vertical-align
:
text-top
;
vertical-align
:
text-top
;
border-radius
:
2px
;
border-radius
:
2px
;
...
@@ -95,9 +95,9 @@ page-survey-result {
...
@@ -95,9 +95,9 @@ page-survey-result {
.
select-check
:
:
after
{
.
select-check
:
:
after
{
content
:
'\2713'
;
content
:
'\2713'
;
position
:
absolute
;
position
:
absolute
;
width
:
0
.7rem
;
width
:
10px
;
top
:
-4px
;
top
:
-4px
;
height
:
0
.7rem
;
height
:
10px
;
font-size
:
1
.5rem
;
font-size
:
1
.5rem
;
font-weight
:
bold
;
font-weight
:
bold
;
}
}
...
...
src/pages/mine/mySurvey/survey-write/survey-write.html
View file @
38e033aa
...
@@ -72,5 +72,5 @@
...
@@ -72,5 +72,5 @@
</div>
</div>
</ion-list>
</ion-list>
<button
class=
"submit-btn submit"
(
click
)="
submit
()"
>
提交
</button>
<button
class=
"submit-btn submit"
(
click
)="
confirm
()"
>
提交
</button>
</ion-content>
</ion-content>
src/pages/mine/mySurvey/survey-write/survey-write.scss
View file @
38e033aa
...
@@ -6,8 +6,8 @@ page-survey-write {
...
@@ -6,8 +6,8 @@ page-survey-write {
border
:
1px
solid
#ddd
;
border
:
1px
solid
#ddd
;
display
:
inline-block
;
display
:
inline-block
;
border-radius
:
50%
;
border-radius
:
50%
;
width
:
1
.2rem
;
width
:
1
6px
;
height
:
1
.2rem
;
height
:
1
6px
;
margin-right
:
8px
;
margin-right
:
8px
;
vertical-align
:
sub
;
vertical-align
:
sub
;
position
:
absolute
;
position
:
absolute
;
...
@@ -23,9 +23,9 @@ page-survey-write {
...
@@ -23,9 +23,9 @@ page-survey-write {
input
:checked
+
.input-radio
::after
{
input
:checked
+
.input-radio
::after
{
content
:
''
;
content
:
''
;
position
:
absolute
;
position
:
absolute
;
width
:
0
.7rem
;
width
:
10px
;
top
:
2px
;
top
:
2px
;
height
:
0
.7rem
;
height
:
10px
;
border-radius
:
50%
;
border-radius
:
50%
;
background-color
:
#333
;
background-color
:
#333
;
left
:
2px
;
left
:
2px
;
...
@@ -34,8 +34,8 @@ page-survey-write {
...
@@ -34,8 +34,8 @@ page-survey-write {
.input-check
{
.input-check
{
border
:
1px
solid
#ddd
;
border
:
1px
solid
#ddd
;
display
:
inline-block
;
display
:
inline-block
;
width
:
1
.2rem
;
width
:
1
5px
;
height
:
1
.2rem
;
height
:
1
5px
;
margin-right
:
8px
;
margin-right
:
8px
;
vertical-align
:
text-top
;
vertical-align
:
text-top
;
border-radius
:
2px
;
border-radius
:
2px
;
...
@@ -47,9 +47,9 @@ page-survey-write {
...
@@ -47,9 +47,9 @@ page-survey-write {
input
:checked
+
.input-check
::after
{
input
:checked
+
.input-check
::after
{
content
:
'\2713'
;
content
:
'\2713'
;
position
:
absolute
;
position
:
absolute
;
width
:
0
.7rem
;
width
:
10px
;
top
:
-4px
;
top
:
-4px
;
height
:
0
.7rem
;
height
:
10px
;
font-size
:
1
.5rem
;
font-size
:
1
.5rem
;
font-weight
:
bold
;
font-weight
:
bold
;
}
}
...
...
src/pages/mine/mySurvey/survey-write/survey-write.ts
View file @
38e033aa
...
@@ -55,6 +55,12 @@ export class SurveyWritePage {
...
@@ -55,6 +55,12 @@ export class SurveyWritePage {
console
.
log
(
this
.
ansArr
[
i
]);
console
.
log
(
this
.
ansArr
[
i
]);
}
}
confirm
(){
this
.
appService
.
alert
(
'确定提交问卷?'
,
res
=>
{
this
.
submit
();
});
}
submit
()
{
submit
()
{
if
(
!
this
.
check
())
{
if
(
!
this
.
check
())
{
...
...
src/pages/surveyManage/item/create/create.ts
View file @
38e033aa
...
@@ -136,7 +136,7 @@ export class CreatePage {
...
@@ -136,7 +136,7 @@ export class CreatePage {
const
arr
=
[
const
arr
=
[
{
{
questionId
:
this
.
temp
.
id
,
questionId
:
this
.
temp
.
id
,
isAns
:
1
,
isAns
:
this
.
isAns
,
quesType
:
this
.
qType
,
quesType
:
this
.
qType
,
title
:
this
.
title
,
title
:
this
.
title
,
limit
:
1000
,
//问答的字数限制
limit
:
1000
,
//问答的字数限制
...
...
src/pages/surveyManage/list/list.html
View file @
38e033aa
...
@@ -54,7 +54,7 @@
...
@@ -54,7 +54,7 @@
<p
class=
"survey-title"
>
{{temp?.title}}
</p>
<p
class=
"survey-title"
>
{{temp?.title}}
</p>
<div
class=
"footter-opr"
>
<div
class=
"footter-opr"
>
<div
*
ngIf=
"swiperIndex == 0"
(
click
)="
edit
()"
><span>
编辑
</span></div>
<div
*
ngIf=
"swiperIndex == 0"
(
click
)="
edit
()"
><span>
编辑
</span></div>
<div
*
ngIf=
"swiperIndex == 1"
(
click
)="
edit
()"
><span>
查看
</span></div>
<div
*
ngIf=
"swiperIndex == 1"
(
click
)="
look
()"
><span>
查看
</span></div>
<div
*
ngIf=
"swiperIndex == 1"
(
click
)="
overDue
()"
><span>
设为过期
</span></div>
<div
*
ngIf=
"swiperIndex == 1"
(
click
)="
overDue
()"
><span>
设为过期
</span></div>
<div
*
ngIf=
"swiperIndex == 0"
(
click
)="
release
()"
><span>
发布
</span></div>
<div
*
ngIf=
"swiperIndex == 0"
(
click
)="
release
()"
><span>
发布
</span></div>
<div
*
ngIf=
"swiperIndex == 1 || swiperIndex == 2"
(
click
)="
result
()"
><span>
结果
</span></div>
<div
*
ngIf=
"swiperIndex == 1 || swiperIndex == 2"
(
click
)="
result
()"
><span>
结果
</span></div>
...
...
src/service/appHttpService.ts
View file @
38e033aa
...
@@ -293,7 +293,7 @@ export class AppService {
...
@@ -293,7 +293,7 @@ export class AppService {
}
}
//
// //app请求方式
// //app请求方式
//
//
// import {LoadingController, AlertController, ToastController} from 'ionic-angular';
// import {LoadingController, AlertController, ToastController} from 'ionic-angular';
...
@@ -561,8 +561,8 @@ export class AppService {
...
@@ -561,8 +561,8 @@ export class AppService {
// }
// }
//
//
// }
// }
//
//
//
//
//
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