Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
J
jd-vx-app
Project
Project
Details
Activity
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
Administrator
jd-vx-app
Commits
9d4166a1
Commit
9d4166a1
authored
Apr 24, 2022
by
fwz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
获得免费挪车码图片、车辆编辑里删除加对话框,确认才删除
parent
29cbfbdd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
1 deletion
+26
-1
editCar.vue
pagesB/pages/move-car/editCar.vue
+26
-1
No files found.
pagesB/pages/move-car/editCar.vue
View file @
9d4166a1
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
<div
class=
"add__btn add__no__bind"
@
click=
"editCarInfo"
>
<div
class=
"add__btn add__no__bind"
@
click=
"editCarInfo"
>
保存
保存
</div>
</div>
<div
class=
"add__btn add__back"
@
click=
"
goBack
"
>
<div
class=
"add__btn add__back"
@
click=
"
delModal
"
>
删除
删除
</div>
</div>
<u-modal
:show=
"deleteShow"
:title=
"deleteTitle"
:content=
'deleteContent'
<u-modal
:show=
"deleteShow"
:title=
"deleteTitle"
:content=
'deleteContent'
...
@@ -127,6 +127,31 @@ export default {
...
@@ -127,6 +127,31 @@ export default {
uni
.
$u
.
toast
(
'校验失败'
)
uni
.
$u
.
toast
(
'校验失败'
)
})
})
},
},
//确认删除车辆
confirmModal
(){
let
opts
=
{
url
:
'/app/vehicleAdmin/remove/'
+
this
.
id
,
method
:
'delete'
};
this
.
http
.
httpTokenRequest
(
opts
,
{}).
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
)
{
uni
.
showToast
({
title
:
'删除成功'
,
icon
:
"success"
,
});
this
.
goBack
()
}
else
{
uni
.
showToast
({
title
:
res
.
data
.
msg
,
icon
:
"error"
,
});
}
})
this
.
deleteShow
=
false
},
cancelModal
(){
this
.
deleteShow
=
false
},
delModal
(){
this
.
deleteShow
=
true
},
},
},
onLoad
(
option
)
{
onLoad
(
option
)
{
this
.
id
=
option
.
id
this
.
id
=
option
.
id
...
...
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