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
d57d9124
Commit
d57d9124
authored
Dec 08, 2025
by
daniel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(road): 轨迹排序功能处理
parent
bd5d14a9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
road-new.js
src/main/webapp/static/js/road-new.js
+6
-1
No files found.
src/main/webapp/static/js/road-new.js
View file @
d57d9124
...
@@ -138,9 +138,14 @@ $(document).ready(function () {
...
@@ -138,9 +138,14 @@ $(document).ready(function () {
var
pathId
=
parent
.
attr
(
'data-path-id'
);
var
pathId
=
parent
.
attr
(
'data-path-id'
);
var
pathName
=
parent
.
attr
(
'data-path-name'
);
var
pathName
=
parent
.
attr
(
'data-path-name'
);
var
sort
=
parent
.
attr
(
'data-sort'
);
var
sort
=
parent
.
attr
(
'data-sort'
);
if
(
!
sort
)
{
if
(
pathId
==
-
1
)
{
// 没有pathId属性,说明是新添加的路线,不能设置排序
return
layer
.
msg
(
'请先上传路线'
,
{
icon
:
3
,
time
:
1500
});
return
layer
.
msg
(
'请先上传路线'
,
{
icon
:
3
,
time
:
1500
});
}
}
if
(
!
sort
)
{
// 没有sort属性,说明是新添加的路线,sort默认100
sort
=
100
;
}
const
index
=
layer
.
open
({
const
index
=
layer
.
open
({
type
:
1
,
type
:
1
,
title
:
'设置'
+
pathName
+
'排序'
,
title
:
'设置'
+
pathName
+
'排序'
,
...
...
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