Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qk_admin
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
quanku
qk_admin
Commits
48a9af4a
Commit
48a9af4a
authored
Aug 31, 2023
by
yaya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:去除删除强提醒
parent
08f0075d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
24 deletions
+18
-24
src/views/goods/infoSet.vue
src/views/goods/infoSet.vue
+18
-24
No files found.
src/views/goods/infoSet.vue
View file @
48a9af4a
...
...
@@ -392,30 +392,24 @@ export default {
}
,
// 删除
handleDelete
()
{
this
.
$confirm
(
'
删除后不可恢复!
'
,
'
是否要删除该藏品?
'
,
{
confirmButtonText
:
'
删除
'
,
cancelButtonText
:
'
取消
'
,
type
:
'
warning
'
}
).
then
(()
=>
{
const
params
=
{
id
:
this
.
goodsParams
.
id
}
deleteGood
(
params
).
then
(
response
=>
{
this
.
$message
.
success
(
'
删除成功
'
)
console
.
log
(
'
===原来=list ===
'
,
this
.
goodIdList
)
this
.
goodIdList
=
this
.
goodIdList
.
filter
((
item
)
=>
{
if
(
item
!==
this
.
goodsParams
.
id
)
{
return
item
}
}
)
this
.
currentIndex
-=
1
this
.
handleNext
()
console
.
log
(
'
===现在=list ===
'
,
this
.
goodIdList
)
}
).
catch
(
response
=>
{
this
.
$notify
.
error
({
title
:
'
失败
'
,
message
:
response
.
data
.
errmsg
||
'
请求失败
'
}
)
const
params
=
{
id
:
this
.
goodsParams
.
id
}
deleteGood
(
params
).
then
(
response
=>
{
this
.
$message
.
success
(
'
删除成功
'
)
console
.
log
(
'
===原来=list ===
'
,
this
.
goodIdList
)
this
.
goodIdList
=
this
.
goodIdList
.
filter
((
item
)
=>
{
if
(
item
!==
this
.
goodsParams
.
id
)
{
return
item
}
}
)
this
.
currentIndex
-=
1
this
.
handleNext
()
console
.
log
(
'
===现在=list ===
'
,
this
.
goodIdList
)
}
).
catch
(
response
=>
{
this
.
$notify
.
error
({
title
:
'
失败
'
,
message
:
response
.
data
.
errmsg
||
'
请求失败
'
}
)
}
)
}
,
...
...
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