From ba44dcf46c083db801c51b5a7004cc5392f5ef0c Mon Sep 17 00:00:00 2001 From: Wayne <943146732@qq.com> Date: Thu, 29 Feb 2024 17:21:26 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9A=90=E8=97=8F=E4=BC=9A=E5=91=98=E7=AD=89?= =?UTF-8?q?=E7=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/user/Index.vue | 4 ++-- src/views/user/modules/GradeForm.vue | 9 ++++++--- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/views/user/Index.vue b/src/views/user/Index.vue index 0d3169c..f31bb34 100644 --- a/src/views/user/Index.vue +++ b/src/views/user/Index.vue @@ -100,12 +100,12 @@ const columns = filterModules([ title: '会员身份', dataIndex: 'user_type_text', }, - { + /* { title: '会员等级', moduleKey: 'user-grade', dataIndex: 'grade', scopedSlots: { customRender: 'grade' }, - }, + }, */ { title: '余额/积分', dataIndex: 'balance', diff --git a/src/views/user/modules/GradeForm.vue b/src/views/user/modules/GradeForm.vue index a2c6a74..9574135 100644 --- a/src/views/user/modules/GradeForm.vue +++ b/src/views/user/modules/GradeForm.vue @@ -27,7 +27,7 @@ >{{ item.name }} - + { - setFieldsValue(pick(record, ['grade_id', 'user_type'])) + // setFieldsValue(pick(record, ['grade_id', 'user_type'])) + setFieldsValue(pick(record, ['user_type'])) }) + + this.form.getFieldDecorator('grade_id', { initialValue: 0, preserve: true }) }, // 确认按钮