diff --git a/litemall-admin/src/views/goods/edit.vue b/litemall-admin/src/views/goods/edit.vue index a2ccc463c07aadf999e9f7b54a1b49854b09dbcf..7842711b296a19de9820330552d3a0d67df25fdb 100644 --- a/litemall-admin/src/views/goods/edit.vue +++ b/litemall-admin/src/views/goods/edit.vue @@ -4,6 +4,10 @@

商品介绍

+ diff --git a/litemall-admin/src/views/goods/list.vue b/litemall-admin/src/views/goods/list.vue index f6884e038009f6f2e0c38c5347e85e982cab1d13..08dad402648b3d67d9d7fe76904c0a3204fc549c 100644 --- a/litemall-admin/src/views/goods/list.vue +++ b/litemall-admin/src/views/goods/list.vue @@ -9,11 +9,11 @@ 查找 添加 导出 + 批量删除 - - + - + @@ -140,6 +140,7 @@ export default { components: { BackToTop, Pagination }, data() { return { + batchDeleteArr: [], thumbnail, toPreview, list: [], @@ -209,6 +210,27 @@ export default { }) }).catch(() => {}) }, + handleSelectionChange(val) { + console.log(val) + this.batchDeleteArr = val + }, + handleDeleteRows() { + this.batchDeleteArr.forEach(row => this.handleDeleteEachRow(row)) + this.getList() + }, + handleDeleteEachRow(row) { + deleteGoods(row).then(response => { + this.$notify.success({ + title: '成功', + message: '删除成功' + }) + }).catch(response => { + this.$notify.error({ + title: '失败', + message: response.data.errmsg + }) + }) + }, handleDownload() { this.downloadLoading = true import('@/vendor/Export2Excel').then(excel => { diff --git a/litemall-db/src/main/resources/application-db.yml b/litemall-db/src/main/resources/application-db.yml index c102c306e5ea5aebe15325d87550527d111fa461..9e38797c7ea811d37f942a53334a82f5b980ddee 100644 --- a/litemall-db/src/main/resources/application-db.yml +++ b/litemall-db/src/main/resources/application-db.yml @@ -28,4 +28,4 @@ spring: enabled: false filter: stat: - enabled: false + enabled: false \ No newline at end of file