隐藏会员等级

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: '会员身份', title: '会员身份',
dataIndex: 'user_type_text', dataIndex: 'user_type_text',
}, },
{ /* {
title: '会员等级', title: '会员等级',
moduleKey: 'user-grade', moduleKey: 'user-grade',
dataIndex: 'grade', dataIndex: 'grade',
scopedSlots: { customRender: 'grade' }, scopedSlots: { customRender: 'grade' },
}, }, */
{ {
title: '余额/积分', title: '余额/积分',
dataIndex: 'balance', dataIndex: 'balance',

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