Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
卡
卡车调度系统
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
caicaicai
卡车调度系统
Commits
14207815
Commit
14207815
authored
Sep 27, 2022
by
xxx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改路径图配置问题
parent
0b03a3a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
55 additions
and
50 deletions
+55
-50
index.vue
src/views/regionalManagement/regionalPathMap/index.vue
+55
-50
No files found.
src/views/regionalManagement/regionalPathMap/index.vue
View file @
14207815
...
@@ -369,59 +369,64 @@ export default {
...
@@ -369,59 +369,64 @@ export default {
},
},
//点击关键点获取对应数据
//点击关键点获取对应数据
clickPointFn
(
item
){
clickPointFn
(
item
){
this
.
transmitWay
=
'
edit
'
;
if
(
this
.
addKeyPointsAble
){
this
.
faControlPointId
=
item
.
id
;
return
if
(
item
.
type
==
'
装车点
'
){
this
.
activeName
=
'
first
'
;
let
text1
=
item
.
name
+
''
;
this
.
entruckingValue1
=
text1
.
split
(
'
/
'
);
}
else
if
(
item
.
type
==
'
卸车点
'
){
this
.
activeName
=
'
third
'
;
let
text1
=
item
.
name
+
''
;
this
.
detrainingValue2
=
text1
.
split
(
'
/
'
);
}
else
{
}
else
{
this
.
activeName
=
'
second
'
;
this
.
transmitWay
=
'
edit
'
;
this
.
controlPointValue3
=
item
.
name
;
this
.
faControlPointId
=
item
.
id
;
let
arr1
=
[];
if
(
item
.
type
==
'
装车点
'
){
//重置所有连接点时间为0
this
.
activeName
=
'
first
'
;
this
.
controlPointData
.
forEach
((
items
,
indexs
)
=>
{
let
text1
=
item
.
name
+
''
;
this
.
controlPointData
[
indexs
].
weight
=
0
;
this
.
entruckingValue1
=
text1
.
split
(
'
/
'
);
})
}
else
if
(
item
.
type
==
'
卸车点
'
){
//获取已该点为起点的数据
this
.
activeName
=
'
third
'
;
HttpReq
.
truckDispatching
.
apiPathmapQuery
({
size
:
9999
,
start
:
this
.
controlPointValue3
}).
then
((
res
)
=>
{
let
text1
=
item
.
name
+
''
;
if
(
res
.
code
==
200
){
this
.
detrainingValue2
=
text1
.
split
(
'
/
'
);
res
.
data
.
content
.
forEach
((
item2
,
index
)
=>
{
}
else
{
let
obj1
=
{};
this
.
activeName
=
'
second
'
;
obj1
.
end
=
item2
.
end
;
this
.
controlPointValue3
=
item
.
name
;
obj1
.
weight
=
item2
.
weight
;
let
arr1
=
[];
arr1
.
push
(
obj1
);
//重置所有连接点时间为0
});
this
.
controlPointData
.
forEach
((
items
,
indexs
)
=>
{
//获取已该点为终点的数据
this
.
controlPointData
[
indexs
].
weight
=
0
;
HttpReq
.
truckDispatching
.
apiPathmapQuery
({
size
:
9999
,
end
:
this
.
controlPointValue3
}).
then
((
res1
)
=>
{
})
if
(
res1
.
code
==
200
){
//获取已该点为起点的数据
res1
.
data
.
content
.
forEach
((
item1
,
index1
)
=>
{
HttpReq
.
truckDispatching
.
apiPathmapQuery
({
size
:
9999
,
start
:
this
.
controlPointValue3
}).
then
((
res
)
=>
{
let
obj2
=
{};
if
(
res
.
code
==
200
){
obj2
.
end
=
item1
.
start
;
res
.
data
.
content
.
forEach
((
item2
,
index
)
=>
{
obj2
.
weight
=
item1
.
weight
;
let
obj1
=
{};
arr1
.
push
(
obj2
);
obj1
.
end
=
item2
.
end
;
});
obj1
.
weight
=
item2
.
weight
;
//刷新展示连接点数据
arr1
.
push
(
obj1
);
let
arr2
=
[];
});
arr1
.
forEach
((
item3
,
index3
)
=>
{
//获取已该点为终点的数据
arr2
.
push
(
item3
.
end
);
HttpReq
.
truckDispatching
.
apiPathmapQuery
({
size
:
9999
,
end
:
this
.
controlPointValue3
}).
then
((
res1
)
=>
{
this
.
controlPointData
.
forEach
((
item4
,
index4
)
=>
{
if
(
res1
.
code
==
200
){
if
(
item3
.
end
==
item4
.
end
){
res1
.
data
.
content
.
forEach
((
item1
,
index1
)
=>
{
this
.
controlPointData
[
index4
].
weight
=
item3
.
weight
;
let
obj2
=
{};
}
obj2
.
end
=
item1
.
start
;
obj2
.
weight
=
item1
.
weight
;
arr1
.
push
(
obj2
);
});
//刷新展示连接点数据
let
arr2
=
[];
arr1
.
forEach
((
item3
,
index3
)
=>
{
arr2
.
push
(
item3
.
end
);
this
.
controlPointData
.
forEach
((
item4
,
index4
)
=>
{
if
(
item3
.
end
==
item4
.
end
){
this
.
controlPointData
[
index4
].
weight
=
item3
.
weight
;
}
})
})
})
})
this
.
selectConnectPointArray
=
arr2
;
this
.
selectConnectPointArray
=
arr2
;
}
}
}
)
}
)
}
}
}
)
})
}
}
}
},
},
handleClick1
(
tab
,
event
){
handleClick1
(
tab
,
event
){
if
(
this
.
transmitWay
==
'
edit
'
){
if
(
this
.
transmitWay
==
'
edit
'
){
...
...
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