From 98c8850aac1c1044c5e7cd145bb70f22093b5090 Mon Sep 17 00:00:00 2001 From: fanfan Date: Wed, 22 May 2024 09:39:40 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=86=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/goods/Index.vue | 9 ++++++++- src/views/goods/filter/Index.vue | 2 -- src/views/goods/modules/Update.vue | 3 ++- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/views/goods/Index.vue b/src/views/goods/Index.vue index 99aa82e..d8f33f5 100644 --- a/src/views/goods/Index.vue +++ b/src/views/goods/Index.vue @@ -156,7 +156,7 @@ 删除 - + @@ -401,6 +401,9 @@ export default { }) }, + refreshParentMethod(){ + this.handleRefresh(true) + }, // 重置搜索表单 handleReset () { this.searchForm.resetFields() @@ -489,4 +492,8 @@ export default { .goodsWidth { min-width: 220px; } +.ant-table .actions a { + padding: 20px 4px; + margin: 0; +} diff --git a/src/views/goods/filter/Index.vue b/src/views/goods/filter/Index.vue index 665fd4b..2ce2bab 100644 --- a/src/views/goods/filter/Index.vue +++ b/src/views/goods/filter/Index.vue @@ -247,7 +247,6 @@ export default { onFormSubmit(values) { const params = {} params.fliter_condition = values.fliter_condition.map((x, i) => { - console.log(i) return { category: values[`category${i}`], profit: values[`profit${i}`], @@ -289,7 +288,6 @@ export default { .fan { display: flex; align-items: top; - height: 40px; } .fan /deep/ .ant-form-item { margin-bottom: 0; diff --git a/src/views/goods/modules/Update.vue b/src/views/goods/modules/Update.vue index deb99ab..2e58077 100644 --- a/src/views/goods/modules/Update.vue +++ b/src/views/goods/modules/Update.vue @@ -753,9 +753,10 @@ export default { .then((result) => { // 显示提示信息 this.$message.success(result.message, 1.5) + this.$emit('refresh'); setTimeout(() => { this.handleCancel() - }, 1500) + }, 500) }) .catch(() => { this.isBtnLoading = false