Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
linshenxs-shop
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
陈超
linshenxs-shop
Commits
7732827b
Commit
7732827b
authored
Jul 21, 2022
by
cpa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商家端删除逻辑补充
parent
37148dfd
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
21 deletions
+28
-21
src/views/businessGoods/details.vue
+0
-1
src/views/businessGoods/goodsEdit/goods_api.js
+1
-1
src/views/businessGoods/index.vue
+26
-19
src/views/businessOrder/index.vue
+1
-0
No files found.
src/views/businessGoods/details.vue
View file @
7732827b
...
@@ -144,7 +144,6 @@
...
@@ -144,7 +144,6 @@
</basic-container>
</basic-container>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
...
...
src/views/businessGoods/goodsEdit/goods_api.js
View file @
7732827b
...
@@ -2,7 +2,7 @@ import request from '@/router/axios'
...
@@ -2,7 +2,7 @@ import request from '@/router/axios'
export
function
getClassifyDropDown
()
{
export
function
getClassifyDropDown
()
{
return
request
({
return
request
({
url
:
'
/admin/mallGoodsSpec/d
ropDownBox'
,
url
:
'
admin/merchantMallGoods/merchantD
ropDownBox'
,
method
:
'get'
method
:
'get'
})
})
}
}
...
...
src/views/businessGoods/index.vue
View file @
7732827b
...
@@ -136,21 +136,7 @@
...
@@ -136,21 +136,7 @@
this
.
tableLoading
=
false
this
.
tableLoading
=
false
})
})
},
},
// 删除
handleDel
:
function
(
row
,
index
)
{
this
.
$confirm
(
'是否确认删除?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(
function
()
{
return
delObj
({
ids
:
row
.
id
})
}).
then
(
data
=>
{
this
.
$message
.
success
(
'删除成功'
)
this
.
getList
(
this
.
page
)
})
},
// 选择事件(多选事件)
// 选择事件(多选事件)
onSelectionChange
(
r
)
{
onSelectionChange
(
r
)
{
this
.
selectedData
=
r
this
.
selectedData
=
r
...
@@ -223,6 +209,27 @@
...
@@ -223,6 +209,27 @@
},
},
// 删除
handleDel
:
function
(
row
,
index
)
{
if
(
row
.
stateName
===
'下架'
||
row
.
stateName
===
'平台下架'
){
this
.
$confirm
(
'是否确认删除?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(
function
()
{
return
delObj
({
ids
:
row
.
id
})
}).
then
(
data
=>
{
this
.
$message
.
success
(
'删除成功'
)
this
.
getList
(
this
.
page
)
})
}
else
{
this
.
$message
.
error
(
'只能删除下架/平台下架商品'
)
return
;
}
},
// 批量删除
// 批量删除
handleDelBatch
()
{
handleDelBatch
()
{
...
@@ -233,10 +240,7 @@
...
@@ -233,10 +240,7 @@
}
}
let
a
=
d
.
map
(
r
=>
{
return
r
.
stateName
}).
join
(
','
)
let
a
=
d
.
map
(
r
=>
{
return
r
.
stateName
}).
join
(
','
)
if
(
a
.
search
(
'有效'
)
!=
-
1
){
if
(
a
.
search
(
'下架'
)
!=
-
1
||
a
.
search
(
'平台下架'
)
!=
-
1
){
this
.
$message
.
error
(
'只能删除下架/平台下架商品'
)
return
;
}
else
{
let
ids
=
d
.
map
(
r
=>
{
return
r
.
id
}).
join
(
','
)
let
ids
=
d
.
map
(
r
=>
{
return
r
.
id
}).
join
(
','
)
this
.
$confirm
(
'是否确认删除?'
,
'提示'
,
{
this
.
$confirm
(
'是否确认删除?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
confirmButtonText
:
'确定'
,
...
@@ -249,6 +253,9 @@
...
@@ -249,6 +253,9 @@
this
.
$refs
.
crud
.
toggleSelection
();
this
.
$refs
.
crud
.
toggleSelection
();
this
.
refreshChange
();
this
.
refreshChange
();
})
})
}
else
{
this
.
$message
.
error
(
'只能删除下架/平台下架商品'
)
return
;
}
}
},
},
...
...
src/views/businessOrder/index.vue
View file @
7732827b
...
@@ -327,6 +327,7 @@
...
@@ -327,6 +327,7 @@
},
},
// 删除
// 删除
handleDel
:
function
(
row
,
index
)
{
handleDel
:
function
(
row
,
index
)
{
this
.
$confirm
(
'是否确认删除?'
,
'提示'
,
{
this
.
$confirm
(
'是否确认删除?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
cancelButtonText
:
'取消'
,
...
...
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