隐藏会员等级

feature/0423
Wayne 9 months ago
parent 0b3f7ef409
commit ba44dcf46c
  1. 4
      src/views/user/Index.vue
  2. 9
      src/views/user/modules/GradeForm.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',

@ -27,7 +27,7 @@
>{{ item.name }}</a-select-option>
</a-select>
</a-form-item>
<a-form-item label="会员等级" :labelCol="labelCol" :wrapperCol="wrapperCol">
<!-- <a-form-item label="会员等级" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-select
placeholder="请选择会员等级"
v-decorator="['grade_id', { rules: [{ required: true }] }]"
@ -39,7 +39,7 @@
:value="item.grade_id"
>{{ item.name }}</a-select-option>
</a-select>
</a-form-item>
</a-form-item> -->
<a-form-item label="管理员备注" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-textarea
placeholder="请输入管理员备注"
@ -119,8 +119,11 @@ export default {
setFieldsValue () {
const { record, form: { setFieldsValue } } = this
this.$nextTick(() => {
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 })
},
//

Loading…
Cancel
Save