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
ac45acc9
Commit
ac45acc9
authored
Sep 28, 2022
by
xxx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善路径图删除方法
parent
14207815
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
45 additions
and
20 deletions
+45
-20
index.vue
src/views/regionalManagement/regionalCaiDian/index.vue
+21
-3
index.vue
src/views/regionalManagement/regionalInformation/index.vue
+24
-17
No files found.
src/views/regionalManagement/regionalCaiDian/index.vue
View file @
ac45acc9
...
...
@@ -236,7 +236,7 @@ export default {
cancelButtonText
:
'
取消
'
,
type
:
'
warning
'
}).
then
((
e
)
=>
{
this
.
reqRemoveProject
([
id
])
this
.
reqRemoveProject
([
id
]
,
item
)
}).
catch
((
e
)
=>
{})
},
pageChange
(
e
)
{
...
...
@@ -311,7 +311,7 @@ export default {
});
},
//删除采点
reqRemoveProject
(
item
){
reqRemoveProject
(
item
,
items
){
HttpReq
.
truckDispatching
.
RegionalCaiDianDel
(
item
).
then
((
res
)
=>
{
if
(
res
.
status
==
400
){
this
.
$notify
({
...
...
@@ -328,8 +328,26 @@ export default {
}
this
.
loadData
();
})
},
//删除该采点所对应的路径图信息
let
delname
=
items
.
areaName
+
'
/
'
+
items
.
name
;
HttpReq
.
truckDispatching
.
apiPathmapQuery
({
size
:
9999
,
end
:
delname
}).
then
((
res1
)
=>
{
if
(
res1
.
code
==
200
){
let
idArr1
=
[];
res1
.
data
.
content
.
forEach
((
item1
,
index1
)
=>
{
idArr1
.
push
(
item1
.
id
);
})
//删除
HttpReq
.
truckDispatching
.
apiPathmapDel
(
idArr1
).
then
((
resDel1
)
=>
{})
}
})
HttpReq
.
truckDispatching
.
apiCpointQuery
({
name
:
delname
}).
then
((
res2
)
=>
{
if
(
res2
.
code
==
200
){
HttpReq
.
truckDispatching
.
apiCpointDel
([
res2
.
data
.
content
[
0
].
id
]).
then
((
res
)
=>
{})
}
})
},
//品味设置方法
...
...
src/views/regionalManagement/regionalInformation/index.vue
View file @
ac45acc9
...
...
@@ -246,7 +246,7 @@ export default {
cancelButtonText
:
'
取消
'
,
type
:
'
warning
'
}).
then
((
e
)
=>
{
this
.
reqRemoveProject
([
id
],[
weilanName
])
this
.
reqRemoveProject
([
id
],[
weilanName
]
,
item
)
}).
catch
((
e
)
=>
{})
},
pageChange
(
e
)
{
...
...
@@ -389,7 +389,7 @@ export default {
})
},
//删除区域信息
reqRemoveProject
(
item
,
weilanName
){
reqRemoveProject
(
item
,
weilanName
,
items
){
HttpReq
.
truckDispatching
.
RegionalInformationDel
(
item
).
then
((
res
)
=>
{
if
(
res
.
status
==
400
){
this
.
$notify
({
...
...
@@ -406,21 +406,28 @@ export default {
}
this
.
loadData
();
})
HttpReq
.
truckDispatching
.
screenMapSetUpDel
(
weilanName
).
then
((
res
)
=>
{
// if(res.status == 400){
// this.$notify({
// title: res.msg,
// type: 'error',
// duration: 2500
// })
// }else{
// this.$notify(
{
// title: '删除成功!',
// type: 'success',
// duration: 2500
// });
//
}
HttpReq
.
truckDispatching
.
screenMapSetUpDel
(
weilanName
).
then
((
res
)
=>
{
})
//删除该卸区点所对应的路径图信息
if
(
items
.
areaclass
==
'
卸区
'
){
let
delname
=
items
.
name
;
HttpReq
.
truckDispatching
.
apiPathmapQuery
({
size
:
9999
,
end
:
delname
}).
then
((
res1
)
=>
{
if
(
res1
.
code
==
200
){
let
idArr1
=
[];
res1
.
data
.
content
.
forEach
((
item1
,
index1
)
=>
{
idArr1
.
push
(
item1
.
id
);
})
//删除
HttpReq
.
truckDispatching
.
apiPathmapDel
(
idArr1
).
then
((
resDel1
)
=>
{})
}
})
HttpReq
.
truckDispatching
.
apiCpointQuery
({
name
:
delname
}).
then
((
res2
)
=>
{
if
(
res2
.
code
==
200
){
HttpReq
.
truckDispatching
.
apiCpointDel
([
res2
.
data
.
content
[
0
].
id
]).
then
((
res
)
=>
{})
}
})
}
},
//图片上传
excelImport
(
event
)
{
...
...
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