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