Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gk
Project
Project
Details
Activity
Releases
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
micro_app
gk
Commits
6c63343e
Commit
6c63343e
authored
May 15, 2020
by
yangshuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
成绩审核
parent
c8709f7c
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
495 additions
and
2 deletions
+495
-2
CmptScoreRuleController.java
...bridge/jadp/plugins/cmpt/web/CmptScoreRuleController.java
+1
-1
ScoreReviewController.java
...dlbridge/jadp/plugins/cmpt/web/ScoreReviewController.java
+33
-0
score_review.jsp
src/main/webapp/WEB-INF/views/cmpt/score_review.jsp
+411
-0
menu.jsp
src/main/webapp/WEB-INF/views/common/menu.jsp
+7
-1
bigger.png
src/main/webapp/static/images/bigger.png
+0
-0
close-red.png
src/main/webapp/static/images/close-red.png
+0
-0
next.png
src/main/webapp/static/images/next.png
+0
-0
prev.png
src/main/webapp/static/images/prev.png
+0
-0
score_review.js
src/main/webapp/static/js/score_review.js
+43
-0
No files found.
src/main/java/com/dlbridge/jadp/plugins/cmpt/web/CmptScoreRuleController.java
View file @
6c63343e
...
...
@@ -103,7 +103,7 @@ public class CmptScoreRuleController {
/**
* 根据赛事Id获取赛事规则是单条还是多条
* @param
cmptId
* @param
* @return
*/
@ResponseBody
...
...
src/main/java/com/dlbridge/jadp/plugins/cmpt/web/ScoreReviewController.java
0 → 100644
View file @
6c63343e
package
com
.
dlbridge
.
jadp
.
plugins
.
cmpt
.
web
;
import
com.dlbridge.jadp.common.interceptor.PageView
;
import
com.dlbridge.jadp.plugins.cmpt.dao.model.Cmpt
;
import
com.dlbridge.jadp.plugins.cmpt.service.CmptService
;
import
lombok.extern.log4j.Log4j2
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.servlet.ModelAndView
;
import
springfox.documentation.annotations.ApiIgnore
;
import
javax.annotation.Resource
;
@Controller
@Log4j2
@RequestMapping
(
"gk/review/"
)
@ApiIgnore
public
class
ScoreReviewController
{
@Resource
private
CmptService
cmptService
;
@RequestMapping
(
"index/{cmptId}"
)
@PageView
public
ModelAndView
index
(
@PathVariable
(
"cmptId"
)
Integer
cmptId
,
ModelAndView
mv
)
{
Cmpt
cmpt
=
cmptService
.
queryCmptBycmptId
(
cmptId
);
mv
.
setViewName
(
"cmpt/score_review"
);
mv
.
addObject
(
"cmpt"
,
cmpt
);
return
mv
;
}
}
src/main/webapp/WEB-INF/views/cmpt/score_review.jsp
0 → 100644
View file @
6c63343e
<%@ page
language=
"java"
contentType=
"text/html; charset=utf-8"
pageEncoding=
"utf-8"
%>
<%@ include
file=
"/WEB-INF/views/include/taglib.jsp"
%>
<%@ taglib
prefix=
"fn"
uri=
"http://java.sun.com/jsp/jstl/functions"
%>
<%@ taglib
prefix=
"fmt"
uri=
"http://java.sun.com/jsp/jstl/fmt"
%>
<!doctype html>
<html>
<head>
<title>
成绩审核
</title>
<!-- Bootstrap CSS-->
<link
rel=
"stylesheet"
href=
"${ctxStatic}/newdermon/vendor/bootstrap/css/bootstrap.min.css"
>
<!-- Font Awesome CSS-->
<link
rel=
"stylesheet"
href=
"${ctxStatic}/newdermon/vendor/font-awesome/css/font-awesome.min.css"
>
<!-- Fontastic Custom icon font-->
<link
rel=
"stylesheet"
href=
"${ctxStatic}/newdermon/css/fontastic.css"
>
<!-- Google fonts - Poppins -->
<link
rel=
"stylesheet"
href=
"${ctxStatic}/newdermon/css/font-css.css"
>
<!-- theme stylesheet-->
<link
rel=
"stylesheet"
href=
"${ctxStatic}/newdermon/css/style.default.css"
id=
"theme-stylesheet"
>
<!-- Custom stylesheet - for your changes-->
<link
rel=
"stylesheet"
href=
"${ctxStatic}/newdermon/css/custom.css"
>
<link
rel=
"stylesheet"
href=
"${ctxStatic}/newdermon/css/juery-ui-1.12.css"
>
<!-- Favicon-->
<link
rel=
"shortcut icon"
href=
"img/favicon.ico"
>
<link
rel=
"stylesheet"
href=
"${ctxStatic}/newdermon/css/custom.css"
>
<link
rel=
"stylesheet"
href=
"${ctxStatic}/newdermon/css/main.css"
>
<link
rel=
"stylesheet"
href=
"${ctxStatic}/cmpt/setting.css"
>
<link
rel=
"stylesheet"
href=
"${ctxStatic}/leaflet/css/leaflet.css?v=
<%=
System
.
currentTimeMillis
()
%>
"
/>
<link
rel=
"stylesheet"
href=
"${ctxStatic}/leaflet/css/leaflet_label.css"
/>
<link
rel=
"stylesheet"
href=
"${ctxStatic}/cmpt/road.css"
/>
<link
rel=
"stylesheet"
href=
"${ctxStatic}/cmpt/road-new.css"
/>
<script
src=
"${ctxStatic}/My97DatePicker/WdatePicker.js"
type=
"text/javascript"
></script>
<script
src=
"${ctxStatic}/newdermon/vendor/jquery/jquery.min.js"
></script>
<script
type=
"text/javascript"
charset=
"utf-8"
src=
"${ctxStatic}/layer/layer.js"
></script>
<link
rel=
"stylesheet"
href=
"${ctxStatic}/layer/skin/layer.css"
>
<link
rel=
"stylesheet"
href=
"/static/cmpt/score.css?
<%=
System
.
currentTimeMillis
()
%>
"
>
<style>
.switch
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
}
.switch
.radio
{
width
:
145px
;
height
:
38px
;
border-radius
:
30px
;
}
.switch
.txt
{
display
:
inline-block
;
height
:
38px
;
line-height
:
38px
;
font-size
:
16px
;
width
:
60px
;
text-align
:
center
;
}
.switch
.dot
{
height
:
28px
;
width
:
28px
;
border-radius
:
50%
;
top
:
5px
;
}
.section
{
padding
:
22px
25px
30px
;
}
.flex
{
display
:
flex
;
}
.flex-vt
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
}
.flex-vt
label
{
font-size
:
16px
;
color
:
rgba
(
153
,
153
,
153
,
1
);
margin
:
0px
5px
;
}
.flex-vt
select
{
width
:
175px
;
height
:
35px
;
background
:
rgba
(
247
,
247
,
247
,
1
);
border-radius
:
4px
;
border
:
1px
solid
rgba
(
229
,
229
,
229
,
1
);
padding-left
:
15px
;
}
.tab
{
height
:
65px
;
display
:
flex
;
border-bottom
:
1px
solid
rgba
(
229
,
229
,
229
,
1
);
margin-top
:
30px
;
align-items
:
center
;
justify-content
:
space-between
;
}
input
[
type
=
checkbox
]
::before
{
border-radius
:
4px
;
border
:
1px
solid
rgba
(
151
,
151
,
151
,
1
);
}
input
[
type
=
checkbox
]
{
position
:
relative
;
top
:
-1px
;
left
:
10px
;
}
.tab
.review-status
{
max-width
:
195px
;
height
:
65px
;
display
:
block
;
line-height
:
65px
;
padding
:
0px
18px
;
font-size
:
20px
;
color
:
rgba
(
51
,
51
,
51
,
1
);
background
:
rgba
(
255
,
255
,
255
,
1
);
border-radius
:
0px
4px
0px
0px
;
border-left
:
1px
solid
rgba
(
229
,
229
,
229
,
1
);
border-top
:
1px
solid
rgba
(
229
,
229
,
229
,
1
);
cursor
:
pointer
;
position
:
relative
;
}
.review-status.active
{
color
:
rgba
(
206
,
57
,
57
,
1
);
}
.review-status.active
:after
{
color
:
rgba
(
206
,
57
,
57
,
1
);
border-bottom
:
1px
solid
white
;
content
:
""
;
width
:
101%
;
height
:
6px
;
background
:
white
;
position
:
absolute
;
left
:
0px
;
bottom
:
-3px
;
color
:
rgba
(
206
,
57
,
57
,
1
);
border-bottom
:
none
;
}
.tab
.review-status
:last-child
{
border-right
:
1px
solid
rgba
(
229
,
229
,
229
,
1
);
}
.data-cloumn
{
padding
:
0px
20px
;
}
.data-cloumn
span
,
.score-info
span
{
display
:
inline-block
;
width
:
120px
;
height
:
45px
;
line-height
:
45px
;
font-size
:
16px
;
color
:
rgba
(
153
,
153
,
153
,
1
);
}
.data-cloumn
span
:last-child
,
.score-info
span
:last-child
{
width
:
50px
;
text-align
:
center
;
}
.score-item
{
background
:
rgba
(
250
,
250
,
250
,
1
);
border-radius
:
4px
;
padding
:
0px
20px
;
}
.score-info
{
border-bottom
:
1px
solid
rgba
(
221
,
221
,
221
,
1
);
}
.score-info
span
{
color
:
rgba
(
51
,
51
,
51
,
1
);
}
.img-item
{
width
:
66px
;
height
:
66px
;
margin
:
10px
10px
10px
0px
;
position
:
relative
;
}
.img
{
width
:
66px
;
height
:
66px
;
}
.pager
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
height
:
80px
;
}
.pager
.page-btn
{
display
:
inline-block
;
width
:
40px
;
height
:
40px
;
background-color
:
rgba
(
247
,
247
,
247
,
1
);
border-radius
:
4px
;
cursor
:
pointer
;
border
:
1px
solid
rgba
(
229
,
229
,
229
,
1
)
}
.pager
input
{
width
:
107px
;
height
:
40px
;
background
:
rgba
(
247
,
247
,
247
,
1
);
border-radius
:
4px
;
border
:
1px
solid
rgba
(
229
,
229
,
229
,
1
);
}
.preview
{
max-width
:
80%
;
max-height
:
80%
;
margin
:
auto
;
position
:
relative
;
padding
:
20px
;
background
:
white
;
}
#dialog
{
justify-content
:
center
;
align-items
:
center
;
display
:
flex
;
position
:
fixed
;
width
:
100%
;
height
:
100%
;
top
:
0px
;
left
:
0px
;
background
:
rgba
(
0
,
0
,
0
,
0.4
);
z-index
:
99
}
.select
{
text-transform
:
none
;
width
:
200px
;
height
:
40px
;
padding
:
0px
5px
;
border-radius
:
4px
;
background
:
rgba
(
250
,
250
,
250
,
1
);
border
:
none
;
outline
:
none
;
appearance
:
none
;
-moz-appearance
:
none
;
-webkit-appearance
:
none
;
cursor
:
pointer
;
}
.pass
{
cursor
:
pointer
;
display
:
inline-block
;
width
:
146px
;
height
:
40px
;
border-radius
:
4px
;
border
:
1px
solid
rgba
(
206
,
57
,
57
,
1
);
line-height
:
40px
;
text-align
:
center
;
font-size
:
18px
;
color
:
rgba
(
206
,
57
,
57
,
1
);
letter-spacing
:
5px
;
}
.no-pass
{
cursor
:
pointer
;
display
:
inline-block
;
width
:
146px
;
height
:
40px
;
border-radius
:
4px
;
border
:
1px
solid
rgba
(
51
,
51
,
51
,
1
);
line-height
:
40px
;
text-align
:
center
;
letter-spacing
:
2px
;
color
:
rgba
(
51
,
51
,
51
,
1
);
}
.bigger
{
display
:
inline-block
;
position
:
absolute
;
width
:
12px
;
height
:
12px
;
background-image
:
url(/static/images/bigger.png)
;
background-position
:
center
;
background-repeat
:
no-repeat
;
right
:
0px
;
z-index
:
100
;
top
:
0px
;
}
.iconClose
{
position
:
absolute
;
width
:
30px
;
height
:
30px
;
background-image
:
url(/static/images/close-red.png)
;
background-position
:
center
;
background-repeat
:
no-repeat
;
right
:
-10px
;
z-index
:
100
;
top
:
-10px
;
border-radius
:
50%
;
background-color
:
white
;
cursor
:
pointer
;
background-size
:
80%
;
}
.prev
{
background-image
:
url(/static/images/prev.png)
;
background-position
:
center
;
background-repeat
:
no-repeat
;
background-size
:
25%
;
}
.next
{
background-image
:
url('/static/images/next.png')
;
background-position
:
center
;
background-repeat
:
no-repeat
;
background-size
:
25%
;
}
</style>
</head>
<body>
<jsp:include
page=
"../common/header.jsp"
></jsp:include>
<div
class=
"page-content d-flex align-items-stretch main-body"
>
<jsp:include
page=
"../common/menu.jsp"
></jsp:include>
<div
class=
"rght"
id=
"score"
>
<div
class=
"title-new"
>
<span
class=
"title"
>
成绩审核
</span>
</div>
<!--成绩附加项-->
<div
class=
"section"
>
<div
class=
"switch"
>
<h3
class=
"title"
>
自动审核
</h3>
<div
class=
"radio status ${setting.mileage == 1?'checked':'unchecked'}"
>
<span
class=
"txt"
>
${setting.mileage == 1?'启动':'未启动'}
</span>
<span
class=
"dot"
></span>
</div>
</div>
<div
style=
"display: flex"
>
<span
class=
"road-notice"
style=
"margin-top: 5px;margin-right: 10px;"
></span>
<span
class=
"road-notice-txt"
>
选手提交成绩时,如果“平均配速”(根据里程和用时计算获得)在正常范围(大于2’27”)则自动通过审核,可以立刻领取完赛证书。
</span>
</div>
</div>
<div
class=
"section data"
>
<div
class=
"flex-vt"
>
<span
class=
"title"
>
审核结果
</span>
<div
class=
"flex"
>
<div
class=
"flex-vt"
style=
"width: 240px; margin-right: 20px;"
>
<label>
项目
</label>
<div
style=
"position: relative;"
>
<select
class=
"select "
name=
""
>
<option
value=
""
>
sfdasf
</option>
</select>
<span
class=
"down-arrow"
></span>
</div>
</div>
<div
style=
"width: 240px;"
class=
"flex-vt"
>
<label>
成绩
</label>
<div
style=
"position: relative;"
>
<select
class=
"select "
name=
""
>
<option
value=
""
v-for=
"road in roads"
v-text=
"road.roadName"
:data-roadId=
"road.roadId"
></option>
</select>
<span
class=
"down-arrow"
></span>
</div>
</div>
</div>
</div>
<div
class=
"tab"
>
<div
class=
"flex"
>
<span
:class=
"['review-status',reviewStatus==0?'active':'']"
v-on:click=
"changeStatus(0)"
>
待审核(10)
</span>
<span
:class=
"['review-status',reviewStatus==1?'active':'']"
v-on:click=
"changeStatus(1)"
>
已通过(310)
</span>
<span
:class=
"['review-status',reviewStatus==-1?'active':'']"
v-on:click=
"changeStatus(-1)"
>
未通过(5)
</span>
</div>
<div>
<span
v-show=
"reviewStatus<=0"
class=
"pass"
>
通过
</span>
<span
v-show=
"reviewStatus>=0"
class=
"no-pass"
>
不通过
</span>
</div>
</div>
<div
class=
"data-cloumn"
>
<span>
姓名
</span>
<span>
参赛号码
</span>
<span>
上传时间
</span>
<span>
里程(KM)
</span>
<span>
用时
</span>
<span>
平均配速
</span>
<span>
全选
<input
v-on:click=
"checkAll"
type=
"checkbox"
></span>
</div>
<div
class=
"score-item"
>
<div
class=
"score-info"
>
<span>
王教授
</span>
<span>
M0912
</span>
<span>
2019-01-01
</span>
<span>
30
</span>
<span>
10:02:12
</span>
<span>
30'12
</span>
<span><input
type=
"checkbox"
:checked=
"checked?'true':'' "
></span>
</div>
<div
class=
"flex score-img"
>
<div
class=
"img-item"
>
<img
v-on:click=
"preview($event)"
class=
"img"
src=
"http://img.geexek.com/files/enroll/cmpt/images/4e432d31-6b30-453a-88d6-563a9d4c2751.png"
alt=
""
>
<span
class=
"bigger"
></span>
</div>
<div
class=
"img-item"
>
<img
class=
"img"
src=
"http://img.geexek.com/files/enroll/cmpt/images/4e432d31-6b30-453a-88d6-563a9d4c2751.png"
alt=
""
>
<span
class=
"bigger"
></span>
</div>
<div
class=
"img-item"
>
<img
class=
"img"
src=
"http://img.geexek.com/files/enroll/cmpt/images/4e432d31-6b30-453a-88d6-563a9d4c2751.png"
alt=
""
>
<span
class=
"bigger"
></span>
</div>
</div>
</div>
<div
class=
"pager"
>
<div
class=
"prev page-btn"
></div>
<div>
<input
type=
"number"
>
of 3
</div>
<div
class=
"next page-btn"
></div>
</div>
</div>
<div
id=
"dialog"
v-show=
"dialog"
>
<div
style=
"position: relative;"
class=
"preview"
>
<img
v-bind:src=
"previewImg"
alt=
""
>
<span
v-on:click=
"closeDialog"
class=
"iconClose"
></span>
</div>
</div>
</div>
</div>
<script
src=
"https://cdn.jsdelivr.net/npm/vue/dist/vue.js"
></script>
<script
src=
"${ctxStatic}/newdermon/vendor/popper.js/umd/popper.min.js"
></script>
<script
src=
"${ctxStatic}/js/qikoo.js"
></script>
<script
src=
"${ctxStatic}/js/score_review.js?
<%=
System
.
currentTimeMillis
()
%>
"
></script>
</body>
</html>
src/main/webapp/WEB-INF/views/common/menu.jsp
View file @
6c63343e
...
...
@@ -160,13 +160,19 @@
<span
class=
"menu-txt"
>
扫码打卡
</span>
</a>
</li>
<li
class=
"review menu-item"
>
<a
href=
"/gk/review/index/${cmpt.cmptId}?uId=${uId}&cId=${cId}×tamp=${timestamp}&sign=${sign}"
>
<span
class=
"menuico left-arrow"
></span>
<span
class=
"menu-txt"
>
成绩审核
</span>
</a>
</li>
</ul>
</ul>
</nav>
<script>
var
classes
=
[
'cmptSetting'
,
'nameList'
,
'manual'
,
'contact'
,
'route'
,
'road'
,
'equip'
,
'photo'
,
'news'
,
'banner'
,
'score'
,
'auto'
,
'scan'
];
'banner'
,
'score'
,
'auto'
,
'scan'
,
'review'
];
let
url
=
document
.
location
.
href
;
var
done
=
false
;
for
(
var
i
in
classes
)
{
...
...
src/main/webapp/static/images/bigger.png
0 → 100644
View file @
6c63343e
1.08 KB
src/main/webapp/static/images/close-red.png
0 → 100644
View file @
6c63343e
2.3 KB
src/main/webapp/static/images/next.png
0 → 100644
View file @
6c63343e
828 Bytes
src/main/webapp/static/images/prev.png
0 → 100644
View file @
6c63343e
812 Bytes
src/main/webapp/static/js/score_review.js
0 → 100644
View file @
6c63343e
var
score
=
new
Vue
({
el
:
'#score'
,
data
:
{
checked
:
false
,
reviewStatus
:
0
,
// 0待审核 1审核通过 -1审核不通过
pass
:
false
,
noPass
:
false
,
previewImg
:
''
,
dialog
:
false
,
count
:
1000
,
roads
:
[{
roadId
:
12
,
roadName
:
'test'
}]
},
methods
:{
closeDialog
:
function
(){
score
.
$data
.
dialog
=
false
;
},
preview
:
function
(
event
)
{
score
.
$data
.
dialog
=
true
;
score
.
$data
.
previewImg
=
event
.
target
.
src
},
changeStatus
:
function
(
event
)
{
score
.
$data
.
reviewStatus
=
event
;
},
checkAll
:
function
()
{
score
.
$data
.
checked
=
!
score
.
$data
.
checked
}
}
})
$
(
document
).
ready
(
function
()
{
$
(
'body'
).
on
(
'click'
,
'.status'
,
function
()
{
var
checked
=
$
(
this
).
hasClass
(
'checked'
);
var
status
=
!
checked
?
1
:
0
;
if
(
checked
)
{
$
(
this
).
removeClass
(
"checked"
);
$
(
this
).
addClass
(
"unchecked"
);
$
(
this
).
find
(
'.txt'
).
text
(
'未启动'
)
}
else
{
$
(
this
).
removeClass
(
"unchecked"
);
$
(
this
).
addClass
(
"checked"
);
$
(
this
).
find
(
'.txt'
).
text
(
'启动'
)
}
})
});
\ No newline at end of file
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