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