Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Litemall
Commits
9876a611
Commit
9876a611
authored
Mar 30, 2022
by
linlinjava
Browse files
feat[litemall-admin]: 删除商品确认
parent
e1d44016
Changes
1
Hide whitespace changes
Inline
Side-by-side
litemall-admin/src/views/goods/list.vue
View file @
9876a611
...
...
@@ -189,18 +189,25 @@ export default {
this
.
detailDialogVisible
=
true
},
handleDelete
(
row
)
{
deleteGoods
(
row
).
then
(
response
=>
{
this
.
$notify
.
success
({
title
:
'
成功
'
,
message
:
'
删除成功
'
this
.
$confirm
(
'
确定删除?
'
,
'
警告
'
,
{
confirmButtonText
:
'
确定
'
,
cancelButtonText
:
'
取消
'
,
type
:
'
warning
'
,
center
:
true
}).
then
(()
=>
{
deleteGoods
(
row
).
then
(
response
=>
{
this
.
$notify
.
success
({
title
:
'
成功
'
,
message
:
'
删除成功
'
})
this
.
getList
()
}).
catch
(
response
=>
{
this
.
$notify
.
error
({
title
:
'
失败
'
,
message
:
response
.
data
.
errmsg
})
})
this
.
getList
()
}).
catch
(
response
=>
{
this
.
$notify
.
error
({
title
:
'
失败
'
,
message
:
response
.
data
.
errmsg
})
})
}).
catch
(()
=>
{})
},
handleDownload
()
{
this
.
downloadLoading
=
true
...
...
Write
Preview
Supports
Markdown
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