|
@@ -426,6 +426,13 @@ export default {
|
426
|
426
|
},
|
427
|
427
|
// 批量上架
|
428
|
428
|
batchListing() {
|
|
429
|
+ if (this.selectIds.length === 0) {
|
|
430
|
+ this.$message({
|
|
431
|
+ message: '请先选择要上架的数据!',
|
|
432
|
+ type: 'warning'
|
|
433
|
+ })
|
|
434
|
+ return
|
|
435
|
+ }
|
429
|
436
|
const params = this.getListingParam()
|
430
|
437
|
backApi.batchUpShelves(params).then(res => {
|
431
|
438
|
if (res.success) {
|
|
@@ -437,6 +444,13 @@ export default {
|
437
|
444
|
},
|
438
|
445
|
// 批量下架
|
439
|
446
|
batchOffShelf() {
|
|
447
|
+ if (this.selectIds.length === 0) {
|
|
448
|
+ this.$message({
|
|
449
|
+ message: '请先选择要下架的数据!',
|
|
450
|
+ type: 'warning'
|
|
451
|
+ })
|
|
452
|
+ return
|
|
453
|
+ }
|
440
|
454
|
const params = this.getListingParam()
|
441
|
455
|
backApi.batchDownShelves(params).then(res => {
|
442
|
456
|
if (res.success) {
|