From 40eb76fbd32943c4f6c8e8d0b8d4cc1f2cff422e Mon Sep 17 00:00:00 2001 From: Junling Bu Date: Sat, 13 Jun 2020 00:14:10 +0800 Subject: [PATCH] =?UTF-8?q?fix[litemall-wx]:=20=E5=88=97=E8=A1=A8=E9=A1=B9?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E4=BB=A5=E5=90=8E=E9=87=8D=E6=96=B0=E5=8A=A0?= =?UTF-8?q?=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- litemall-admin/src/views/goods/comment.vue | 1 + litemall-admin/src/views/goods/create.vue | 4 ++- litemall-admin/src/views/goods/edit.vue | 4 ++- litemall-admin/src/views/goods/list.vue | 3 +- litemall-admin/src/views/mall/brand.vue | 26 +++++++------- litemall-admin/src/views/mall/issue.vue | 15 ++++---- litemall-admin/src/views/mall/keyword.vue | 25 +++++++------- litemall-admin/src/views/profile/notice.vue | 3 +- litemall-admin/src/views/promotion/ad.vue | 34 +++++++++---------- litemall-admin/src/views/promotion/coupon.vue | 30 ++++++++-------- .../src/views/promotion/grouponRule.vue | 3 +- litemall-admin/src/views/promotion/topic.vue | 3 +- litemall-admin/src/views/sys/admin.vue | 21 ++++++------ litemall-admin/src/views/sys/notice.vue | 3 +- litemall-admin/src/views/sys/os.vue | 19 +++++------ litemall-admin/src/views/sys/role.vue | 16 ++++----- 16 files changed, 104 insertions(+), 106 deletions(-) diff --git a/litemall-admin/src/views/goods/comment.vue b/litemall-admin/src/views/goods/comment.vue index d904fada..71c7f64c 100644 --- a/litemall-admin/src/views/goods/comment.vue +++ b/litemall-admin/src/views/goods/comment.vue @@ -129,6 +129,7 @@ export default { type: 'success', duration: 2000 }) + this.getList() }) }, handleDownload() { diff --git a/litemall-admin/src/views/goods/create.vue b/litemall-admin/src/views/goods/create.vue index eb5d6a6c..312edefa 100644 --- a/litemall-admin/src/views/goods/create.vue +++ b/litemall-admin/src/views/goods/create.vue @@ -410,7 +410,8 @@ export default { this.goods.categoryId = value[value.length - 1] }, handleCancel: function() { - this.$router.push({ path: '/goods/goods' }) + this.$store.dispatch('tagsView/delView', this.$route) + this.$router.push({ path: '/goods/list' }) }, handlePublish: function() { const finalGoods = { @@ -424,6 +425,7 @@ export default { title: '成功', message: '创建成功' }) + this.$store.dispatch('tagsView/delView', this.$route) this.$router.push({ path: '/goods/list' }) }).catch(response => { MessageBox.alert('业务错误:' + response.data.errmsg, '警告', { diff --git a/litemall-admin/src/views/goods/edit.vue b/litemall-admin/src/views/goods/edit.vue index b3dc6306..a2ccc463 100644 --- a/litemall-admin/src/views/goods/edit.vue +++ b/litemall-admin/src/views/goods/edit.vue @@ -419,6 +419,7 @@ export default { this.goods.categoryId = value[value.length - 1] }, handleCancel: function() { + this.$store.dispatch('tagsView/delView', this.$route) this.$router.push({ path: '/goods/list' }) }, handleEdit: function() { @@ -432,8 +433,9 @@ export default { .then(response => { this.$notify.success({ title: '成功', - message: '创建成功' + message: '编辑成功' }) + this.$store.dispatch('tagsView/delView', this.$route) this.$router.push({ path: '/goods/list' }) }) .catch(response => { diff --git a/litemall-admin/src/views/goods/list.vue b/litemall-admin/src/views/goods/list.vue index 04b11cf3..9d389c9a 100644 --- a/litemall-admin/src/views/goods/list.vue +++ b/litemall-admin/src/views/goods/list.vue @@ -190,8 +190,7 @@ export default { title: '成功', message: '删除成功' }) - const index = this.list.indexOf(row) - this.list.splice(index, 1) + this.getList() }).catch(response => { this.$notify.error({ title: '失败', diff --git a/litemall-admin/src/views/mall/brand.vue b/litemall-admin/src/views/mall/brand.vue index a13d8ddb..b1e9f2ca 100644 --- a/litemall-admin/src/views/mall/brand.vue +++ b/litemall-admin/src/views/mall/brand.vue @@ -3,8 +3,8 @@
- - + + 查找 添加 导出 @@ -13,9 +13,9 @@ - + - + - + - +