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
e168bcd1
Commit
e168bcd1
authored
Apr 30, 2020
by
yangshuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
自动提交代码
parent
2345c41a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
8 deletions
+10
-8
RoadsGpsCheckpointController.java
...e/jadp/plugins/cmpt/web/RoadsGpsCheckpointController.java
+6
-5
autoscore.jsp
src/main/webapp/WEB-INF/views/cmpt/autoscore.jsp
+2
-2
autoscore.js
src/main/webapp/static/js/autoscore.js
+2
-1
No files found.
src/main/java/com/dlbridge/jadp/plugins/cmpt/web/RoadsGpsCheckpointController.java
View file @
e168bcd1
...
@@ -71,9 +71,10 @@ public class RoadsGpsCheckpointController {
...
@@ -71,9 +71,10 @@ public class RoadsGpsCheckpointController {
*/
*/
@RequestMapping
(
"getGpsCheckPointByRoadId/{cmptId}/{roadId}"
)
@RequestMapping
(
"getGpsCheckPointByRoadId/{cmptId}/{roadId}"
)
@ResponseBody
@ResponseBody
public
Result
getGpsCheckPointByRoadId
(
@PathVariable
(
"cmptId"
)
Integer
cmptId
,
@PathVariable
(
"roadId"
)
Integer
roadId
){
public
Result
getGpsCheckPointByRoadId
(
@PathVariable
(
"cmptId"
)
Integer
cmptId
,
@PathVariable
(
"roadId"
)
Integer
roadId
)
{
RoadGpsPoint
roadGpsPoint
=
roadService
.
getGps
(
roadId
);
RoadGpsPoint
roadGpsPoint
=
roadService
.
getGps
(
roadId
);
String
points
=
roadGpsPoint
.
getPoints
();
if
(
roadGpsPoint
==
null
)
return
Result
.
fail
().
setMsg
(
"未设置轨迹"
);
String
points
=
roadGpsPoint
.
getPoints
();
List
<
RoadsGpsCheckpointMap
>
roadsGpsCheckpointMapList
=
new
ArrayList
<>();
List
<
RoadsGpsCheckpointMap
>
roadsGpsCheckpointMapList
=
new
ArrayList
<>();
JSONObject
object
=
JSONObject
.
parseObject
(
points
);
JSONObject
object
=
JSONObject
.
parseObject
(
points
);
JSONArray
result
=
object
.
getJSONArray
(
"placeMark"
);
JSONArray
result
=
object
.
getJSONArray
(
"placeMark"
);
...
@@ -82,8 +83,8 @@ public class RoadsGpsCheckpointController {
...
@@ -82,8 +83,8 @@ public class RoadsGpsCheckpointController {
RoadsGpsCheckpointMap
roadsGpsCheckpointMap
=
new
RoadsGpsCheckpointMap
();
RoadsGpsCheckpointMap
roadsGpsCheckpointMap
=
new
RoadsGpsCheckpointMap
();
JSONObject
o
=
(
JSONObject
)
result
.
get
(
i
);
JSONObject
o
=
(
JSONObject
)
result
.
get
(
i
);
String
checkpointGpsName
=
o
.
getString
(
"name"
);
String
checkpointGpsName
=
o
.
getString
(
"name"
);
String
checkpointLatitude
=
o
.
getString
(
"latitude"
);
String
checkpointLatitude
=
o
.
getString
(
"latitude"
);
String
checkpointLongitude
=
o
.
getString
(
"longitude"
);
String
checkpointLongitude
=
o
.
getString
(
"longitude"
);
roadsGpsCheckpointMap
.
setCmptId
(
cmptId
).
setRoadId
(
roadId
).
setCheckpointGpsName
(
checkpointGpsName
).
setCheckpointLatitude
(
checkpointLatitude
).
setCheckpointLongitude
(
checkpointLongitude
);
roadsGpsCheckpointMap
.
setCmptId
(
cmptId
).
setRoadId
(
roadId
).
setCheckpointGpsName
(
checkpointGpsName
).
setCheckpointLatitude
(
checkpointLatitude
).
setCheckpointLongitude
(
checkpointLongitude
);
roadsGpsCheckpointMapList
.
add
(
roadsGpsCheckpointMap
);
roadsGpsCheckpointMapList
.
add
(
roadsGpsCheckpointMap
);
}
}
...
...
src/main/webapp/WEB-INF/views/cmpt/autoscore.jsp
View file @
e168bcd1
...
@@ -203,7 +203,7 @@
...
@@ -203,7 +203,7 @@
</table>
</table>
</div>
</div>
</div>
</div>
<div
style=
"display: flex;justify-content: center; margin: 60px;"
>
事
<div
style=
"display: flex;justify-content: center; margin: 60px;"
>
<span
class=
" save-btn"
>
保存
</span>
<span
class=
" save-btn"
>
保存
</span>
</div>
</div>
...
@@ -211,7 +211,7 @@
...
@@ -211,7 +211,7 @@
<script
src=
"${ctxStatic}/newdermon/vendor/popper.js/umd/popper.min.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/qikoo.js"
></script>
<script
src=
"${ctxStatic}/js/autoscore.js
?
<%=
System
.
currentTimeMillis
()
%>
"
></script>
<script
src=
"${ctxStatic}/js/autoscore.js"
></script>
</body>
</body>
...
...
src/main/webapp/static/js/autoscore.js
View file @
e168bcd1
$
(
document
).
ready
(
function
()
{
$
(
document
).
ready
(
function
()
{
//切换项目,获取不同计时的打卡点
//切换项目,获取不同计时的打卡点
getTimeCp
(
21177
);
var
roadId
=
$
(
'.road-name'
).
first
().
attr
(
'road-id'
);
getTimeCp
(
roadId
);
//获取gpx路线上的打卡点
//获取gpx路线上的打卡点
//初始化已经配置好的GPS计时点配置列表
//初始化已经配置好的GPS计时点配置列表
...
...
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