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 }) }, // 确认按钮