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
a6ebcbfc
Commit
a6ebcbfc
authored
Apr 16, 2019
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
样式修复
parent
af1feb31
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
87 additions
and
113 deletions
+87
-113
ionic.config.json
ionic.config.json
+2
-1
learn-manage.html
src/pages/home/learn-manage/learn-manage/learn-manage.html
+4
-10
learnManage.service.ts
src/pages/home/learn-manage/learnManage.service.ts
+6
-0
rank-list.html
src/pages/home/learn-manage/rank-list/rank-list.html
+1
-1
rank-list.scss
src/pages/home/learn-manage/rank-list/rank-list.scss
+10
-2
rank-list.ts
src/pages/home/learn-manage/rank-list/rank-list.ts
+13
-44
read-learn.html
src/pages/home/learn-manage/read-learn/read-learn.html
+9
-9
read-learn.ts
src/pages/home/learn-manage/read-learn/read-learn.ts
+38
-44
learning-do.html
src/pages/home/learning/learning-do/learning-do.html
+1
-1
learning-do.scss
src/pages/home/learning/learning-do/learning-do.scss
+1
-0
review-learn.html
src/pages/home/learning/review-learn/review-learn.html
+1
-1
review-learn.scss
src/pages/home/learning/review-learn/review-learn.scss
+1
-0
No files found.
ionic.config.json
View file @
a6ebcbfc
...
...
@@ -7,7 +7,7 @@
"proxies"
:
[
{
"path"
:
"/wisdomgroup"
,
"proxyUrl"
:
"http://1
80.168.156.212:2931
/wisdomgroup"
"proxyUrl"
:
"http://1
01.89.112.92:80
/wisdomgroup"
}
]
}
\ No newline at end of file
src/pages/home/learn-manage/learn-manage/learn-manage.html
View file @
a6ebcbfc
...
...
@@ -33,7 +33,7 @@
</div>
</div>
<div
class=
"content-button padding-15-0"
>
<span>
参与人员:{{item.test
Status
}}
</span>
<span>
参与人员:{{item.test
Object
}}
</span>
<span
*
ngIf=
"item.testStatus == 1"
float-right
class=
"look"
>
发布
</span>
<span
*
ngIf=
"item.testStatus != 1"
float-right
class=
"join"
>
查看
</span>
</div>
...
...
@@ -64,9 +64,7 @@
</div>
</div>
<div
class=
"content-button padding-15-0"
>
<span>
参与人员:
</span>
<span
*
ngIf=
"item.groupName"
>
{{item.groupName}}
</span>
<span
*
ngIf=
"!item.groupName"
>
全体人员
</span>
<span>
参与人员:{{item.testObject}}
</span>
<span
float-right
class=
"look"
>
查看
</span>
</div>
</div>
...
...
@@ -96,9 +94,7 @@
</div>
</div>
<div
class=
"content-button padding-15-0"
>
<span>
参与人员:
</span>
<span
*
ngIf=
"item.groupName"
>
{{item.groupName}}
</span>
<span
*
ngIf=
"!item.groupName"
>
全体人员
</span>
<span>
参与人员:{{item.testObject}}
</span>
<span
float-right
class=
"look"
>
查看
</span>
</div>
</div>
...
...
@@ -128,9 +124,7 @@
</div>
</div>
<div
class=
"content-button padding-15-0"
>
<span>
参与人员:
</span>
<span
*
ngIf=
"item.groupName"
>
{{item.groupName}}
</span>
<span
*
ngIf=
"!item.groupName"
>
全体人员
</span>
<span>
参与人员:{{item.testObject}}
</span>
<span
float-right
class=
"look"
>
查看
</span>
</div>
</div>
...
...
src/pages/home/learn-manage/learnManage.service.ts
View file @
a6ebcbfc
...
...
@@ -28,4 +28,9 @@ export class LearnManageService{
submitMarkResult
(
data
):
Observable
<
any
>
{
return
this
.
http
.
post
(
AppGlobal
.
domain
+
'/wisdomgroup/modules/testManage/submitMarkResult'
,
data
);
}
//获取测试结果(按分数由高到低排序)
getRankList
(
data
):
Observable
<
any
>
{
return
this
.
http
.
post
(
AppGlobal
.
domain
+
'/wisdomgroup/modules/testManage/getRankList'
,
this
.
commonSer
.
toFormData
(
data
)
);
}
}
\ No newline at end of file
src/pages/home/learn-manage/rank-list/rank-list.html
View file @
a6ebcbfc
...
...
@@ -14,7 +14,7 @@
refreshingSpinner=
"bubbles"
>
</ion-refresher-content>
</ion-refresher>
<ion-list>
<ion-list
style=
"height: 100%"
>
<div
class=
"main-container"
>
<div
class=
"learn-item"
>
<div
class=
"top-container"
>
...
...
src/pages/home/learn-manage/rank-list/rank-list.scss
View file @
a6ebcbfc
page-rank-list
{
.main-container
{
height
:
100%
;
}
.learn-item
{
height
:
100%
;
}
.top-container
{
background
:
linear-gradient
(
to
bottom
,
#89a2cd
0%
,
#ccd4e3
25%
,
#e6e8ed
100%
);
text-align
:
center
;
padding
:
1
.5rem
;
background
:
linear-gradient
(
to
bottom
,
#89a2cd
0%
,
#ccd4e3
25%
,
#e6e8ed
100%
);
min-height
:
100%
;
}
.grid
{
}
.top-row
{
color
:
#577ab9
;
...
...
src/pages/home/learn-manage/rank-list/rank-list.ts
View file @
a6ebcbfc
...
...
@@ -2,6 +2,7 @@ import {Component} from '@angular/core';
import
{
IonicPage
,
NavController
,
NavParams
}
from
'ionic-angular'
;
import
{
DatePipe
}
from
"@angular/common"
;
import
{
CommonService
}
from
"../../../../provide/common.service"
;
import
{
LearnManageService
}
from
"../learnManage.service"
;
@
IonicPage
()
...
...
@@ -14,55 +15,24 @@ export class RankListPage {
testId
;
pageNumber
=
1
;
pageSize
=
25
;
list
=
[
{
username
:
'1'
,
score
:
'100'
},
{
username
:
'2'
,
score
:
'100'
},
{
username
:
'3'
,
score
:
'100'
},
{
username
:
'4'
,
score
:
'100'
},
{
username
:
'5'
,
score
:
'100'
},
{
username
:
'6'
,
score
:
'100'
},
{
username
:
'7'
,
score
:
'100'
},
{
username
:
'7'
,
score
:
'100'
},
{
username
:
'7'
,
score
:
'100'
},
{
username
:
'7'
,
score
:
'100'
},
{
username
:
'7'
,
score
:
'100'
},
{
username
:
'7'
,
score
:
'100'
},
{
username
:
'7'
,
score
:
'100'
},
{
username
:
'7'
,
score
:
'100'
},
{
username
:
'7'
,
score
:
'100'
},
{
username
:
'7'
,
score
:
'100'
},
{
username
:
'7'
,
score
:
'100'
},
{
username
:
'7'
,
score
:
'100'
},
{
username
:
'7'
,
score
:
'100'
},
{
username
:
'7'
,
score
:
'100'
},
{
username
:
'7'
,
score
:
'100'
},
{
username
:
'7'
,
score
:
'100'
},
{
username
:
'7'
,
score
:
'100'
},
{
username
:
'7'
,
score
:
'100'
},
{
username
:
'7'
,
score
:
'100'
},
{
username
:
'7'
,
score
:
'100'
},
{
username
:
'7'
,
score
:
'100'
},
{
username
:
'7'
,
score
:
'100'
},
{
username
:
'7'
,
score
:
'100'
},
{
username
:
'7'
,
score
:
'100'
},
{
username
:
'7'
,
score
:
'100'
},
{
username
:
'7'
,
score
:
'100'
},
{
username
:
'7'
,
score
:
'100'
},
{
username
:
'7'
,
score
:
'100'
},
{
username
:
'7'
,
score
:
'100'
},
{
username
:
'7'
,
score
:
'100'
},
{
username
:
'7'
,
score
:
'100'
},
{
username
:
'7'
,
score
:
'100'
},
{
username
:
'7'
,
score
:
'100'
},
{
username
:
'7'
,
score
:
'100'
},
];
list
=
[];
constructor
(
public
navCtrl
:
NavController
,
public
navParams
:
NavParams
,
constructor
(
public
navCtrl
:
NavController
,
public
navParams
:
NavParams
,
public
learnManSer
:
LearnManageService
,
public
datePipe
:
DatePipe
,
public
commonSer
:
CommonService
)
{
}
ionViewDidLoad
()
{
this
.
testId
=
this
.
navParams
.
get
(
'testId'
);
const
data
=
{
testId
:
this
.
testId
,
pageNumber
:
this
.
pageNumber
,
pageSize
:
this
.
pageSize
,
};
this
.
learnManSer
.
getRankList
(
data
).
subscribe
(
(
res
)
=>
{
this
.
list
=
res
.
data
.
list
;
}
)
}
// 下拉
...
...
@@ -73,7 +43,6 @@ export class RankListPage {
const
data
=
{
pageNumber
:
this
.
pageNumber
,
pageSize
:
this
.
pageSize
,
selectType
:
'1'
,
//全部状态
queryTime
:
nowDate
,
};
...
...
src/pages/home/learn-manage/read-learn/read-learn.html
View file @
a6ebcbfc
...
...
@@ -14,26 +14,26 @@
<ion-slide
*
ngFor=
"let item of list;"
>
<div
class=
"learn-item"
>
<div
class=
"item-container"
>
<ng-container
*
ngFor=
"let test of item.
test
;let i = index;"
>
<ng-container
*
ngFor=
"let test of item.
vos
;let i = index;"
>
<div
class=
"test"
>
<div
class=
"item-title"
>
<p>
Q{{i +1}}(问答){{test.
title
}}
</p>
<p>
Q{{i +1}}(问答){{test.
questionContent
}}
</p>
</div>
<div
class=
"item-content"
>
<div
class=
"padding-0-30"
>
<div
class=
"content-textarea"
>
{{test.
content
}}
{{test.
answer
}}
</div>
</div>
</div>
<div
class=
"test-judge flex"
>
<div
class=
"flex-1"
></div>
<div
class=
"flex-1"
></div>
<div
class=
"flex-1 text-center"
(
click
)="
select
(
test
,
true
)"
>
<span
[
ngClass
]="{'
check
'
:
test
.
checked =
=
true
}"
class=
"right"
>
正确
</span>
<div
class=
"flex-1 text-center"
(
click
)="
select
(
test
,
1
)"
>
<span
[
ngClass
]="{'
check
'
:
test
.
result =
=
1
}"
class=
"right"
>
正确
</span>
</div>
<div
class=
"flex-1 text-center"
(
click
)="
select
(
test
,
false
)"
>
<span
[
ngClass
]="{'
check
'
:
test
.
checked =
=
false
}"
class=
"error"
>
错误
</span>
<div
class=
"flex-1 text-center"
(
click
)="
select
(
test
,
0
)"
>
<span
[
ngClass
]="{'
check
'
:
test
.
result =
=
0
}"
class=
"error"
>
错误
</span>
</div>
</div>
</div>
...
...
@@ -44,9 +44,9 @@
</ion-slides>
</div>
<div
class=
"footer-subject"
>
<div
(
click
)="
prev
()"
class=
"prev"
>
上一
题
</div>
<div
(
click
)="
prev
()"
class=
"prev"
>
上一
份
</div>
<div
class=
"index"
>
{{index +1}} / {{list.length}}
</div>
<div
(
click
)="
next
()"
class=
"next"
>
下一
题
</div>
<div
(
click
)="
next
()"
class=
"next"
>
下一
份
</div>
</div>
<div
class=
"footer-submit"
>
<div
class=
"submit"
(
click
)="
submit
()"
>
...
...
src/pages/home/learn-manage/read-learn/read-learn.ts
View file @
a6ebcbfc
...
...
@@ -2,7 +2,6 @@ import {Component, ViewChild} from '@angular/core';
import
{
IonicPage
,
Navbar
,
NavController
,
NavParams
,
Slides
}
from
'ionic-angular'
;
import
{
AppService
}
from
"../../../../service/http.service"
;
import
{
LearnManageService
}
from
"../learnManage.service"
;
import
{
message
}
from
"../../../../app/main"
;
import
{
CommonService
}
from
"../../../../provide/common.service"
;
@
IonicPage
()
...
...
@@ -18,40 +17,7 @@ export class ReadLearnPage {
pageNumber
=
1
;
pageSize
=
100
;
index
=
0
;
list
=
[
{
name
:
'杨阳洋1'
,
test
:
[
{
title
:
"看云识天气的解释1"
,
content
:
"蚂蚁上树蚂蚁上树蚂蚁上树"
},
{
title
:
"看云识天气的解释2"
,
content
:
"蚂蚁上树蚂蚁上树蚂蚁上树"
},
{
title
:
"看云识天气的解释3"
,
content
:
"蚂蚁上树蚂蚁上树蚂蚁上树"
},
{
title
:
"看云识天气的解释4"
,
content
:
"蚂蚁上树蚂蚁上树蚂蚁上树"
},
{
title
:
"看云识天气的解释5"
,
content
:
"蚂蚁上树蚂蚁上树蚂蚁上树"
},
{
title
:
"看云识天气的解释5"
,
content
:
"蚂蚁上树蚂蚁上树蚂蚁上树"
},
{
title
:
"看云识天气的解释5"
,
content
:
"蚂蚁上树蚂蚁上树蚂蚁上树"
},
{
title
:
"看云识天气的解释5"
,
content
:
"蚂蚁上树蚂蚁上树蚂蚁上树"
},
{
title
:
"看云识天气的解释5"
,
content
:
"蚂蚁上树蚂蚁上树蚂蚁上树"
},
{
title
:
"看云识天气的解释5"
,
content
:
"蚂蚁上树蚂蚁上树蚂蚁上树"
},
]
},
{
name
:
'杨阳洋1'
,
test
:
[
{
title
:
"看云识天气的解释1"
,
content
:
"蚂蚁上树蚂蚁上树蚂蚁上树"
},
{
title
:
"看云识天气的解释2"
,
content
:
"蚂蚁上树蚂蚁上树蚂蚁上树"
},
{
title
:
"看云识天气的解释3"
,
content
:
"蚂蚁上树蚂蚁上树蚂蚁上树"
},
{
title
:
"看云识天气的解释4"
,
content
:
"蚂蚁上树蚂蚁上树蚂蚁上树"
},
{
title
:
"看云识天气的解释5"
,
content
:
"蚂蚁上树蚂蚁上树蚂蚁上树"
},
]
},
{
name
:
'杨阳洋1'
,
test
:
[
{
title
:
"看云识天气的解释1"
,
content
:
"蚂蚁上树蚂蚁上树蚂蚁上树"
},
{
title
:
"看云识天气的解释2"
,
content
:
"蚂蚁上树蚂蚁上树蚂蚁上树"
},
{
title
:
"看云识天气的解释3"
,
content
:
"蚂蚁上树蚂蚁上树蚂蚁上树"
},
{
title
:
"看云识天气的解释4"
,
content
:
"蚂蚁上树蚂蚁上树蚂蚁上树"
},
{
title
:
"看云识天气的解释5"
,
content
:
"蚂蚁上树蚂蚁上树蚂蚁上树"
},
]
},
]
list
=
[];
constructor
(
public
navCtrl
:
NavController
,
public
navParams
:
NavParams
,
public
appService
:
AppService
,
public
learnManSer
:
LearnManageService
,
public
commonSer
:
CommonService
)
{
...
...
@@ -66,13 +32,13 @@ export class ReadLearnPage {
};
this
.
learnManSer
.
getMarkList
(
data
).
subscribe
(
(
res
)
=>
{
this
.
list
=
res
.
data
;
}
)
this
.
navbar
.
backButtonClick
=
()
=>
{
this
.
appService
.
alert
(
"是否退出批阅,当前批阅不会保存?"
),
()
=>
{
this
.
commonSer
.
alert
(
"是否退出批阅,当前批阅不会保存?"
,()
=>
{
this
.
navCtrl
.
pop
()
}
}
)
}
}
...
...
@@ -103,20 +69,48 @@ export class ReadLearnPage {
//
select
(
test
,
boolean
)
{
test
.
checked
=
boolean
;
console
.
log
(
this
.
list
)
test
.
result
=
boolean
;
}
//提交批阅结果
submit
(){
const
data
=
{
};
this
.
learnManSer
.
submitMarkResult
(
data
).
subscribe
(
if
(
!
this
.
check
()){
return
false
;
}
let
arr
=
[];
this
.
list
.
forEach
(
l
=>
{
l
.
vos
.
forEach
(
v
=>
{
arr
.
push
({
recordId
:
v
.
recordId
,
result
:
v
.
result
,
answerId
:
v
.
answerId
,
questionId
:
v
.
questionId
,
score
:
v
.
score
,
})
})
})
this
.
learnManSer
.
submitMarkResult
(
arr
).
subscribe
(
(
res
)
=>
{
this
.
commonSer
.
toast
(
"批阅完成!"
)
this
.
navCtrl
.
pop
();
}
)
}
check
(){
let
num
=
0
;
this
.
list
.
forEach
(
l
=>
{
l
.
vos
.
forEach
(
v
=>
{
if
(
v
.
result
!=
0
&&
v
.
result
!=
1
){
num
++
;
}
})
})
if
(
num
>
0
){
this
.
commonSer
.
toast
(
"有试卷的题目未批阅!"
)
return
false
;
}
else
{
return
true
;
}
}
}
src/pages/home/learning/learning-do/learning-do.html
View file @
a6ebcbfc
...
...
@@ -29,7 +29,7 @@
</p>
</div>
<div
class=
"item-content"
>
<div
class=
"padding-0-20"
>
<div
class=
"padding-
2
0-20"
>
<!--单选题-->
<ng-container
*
ngIf=
"item.questionType == 1"
>
<ng-container
*
ngFor=
" let option1 of item.options;let optIndex = index;"
>
...
...
src/pages/home/learning/learning-do/learning-do.scss
View file @
a6ebcbfc
...
...
@@ -17,6 +17,7 @@ page-learning-do {
top
:
0
;
left
:
0
;
z-index
:
2
;
padding-bottom
:
1rem
;
}
ion-slides
{
height
:
calc
(
100%
-
4rem
);
...
...
src/pages/home/learning/review-learn/review-learn.html
View file @
a6ebcbfc
...
...
@@ -31,7 +31,7 @@
<span
*
ngIf=
"item.questionType == 1 || item.questionType == 2 || item.questionType == 4"
class=
"margin-left-20"
>
您的答案:{{item.myAnswer}}
</span>
</div>
<div
class=
"item-content"
>
<div
class=
"padding-0-30"
>
<div
class=
"padding-
2
0-30"
>
<!--单选题-->
<ng-container
*
ngIf=
"item.questionType == 1"
>
<ng-container
*
ngFor=
" let option1 of item.options;let optIndex = index;"
>
...
...
src/pages/home/learning/review-learn/review-learn.scss
View file @
a6ebcbfc
...
...
@@ -27,6 +27,7 @@ page-review-learn {
top
:
0
;
left
:
0
;
z-index
:
2
;
padding-bottom
:
1rem
;
}
.learn-title
{
background-color
:
rgba
(
18
,
28
,
52
,
0
.34
);
...
...
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