|
|
|
@ -51,6 +51,14 @@ |
|
|
|
|
<a-radio :value="1">是</a-radio> |
|
|
|
|
</a-radio-group> |
|
|
|
|
</a-form-item> |
|
|
|
|
<a-form-item label="是否大牌正品" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
|
|
|
|
<a-radio-group |
|
|
|
|
v-decorator="['is_brand', { initialValue: 0, rules: [{ required: true }] }]" |
|
|
|
|
> |
|
|
|
|
<a-radio :value="0">否</a-radio> |
|
|
|
|
<a-radio :value="1">是</a-radio> |
|
|
|
|
</a-radio-group> |
|
|
|
|
</a-form-item> |
|
|
|
|
|
|
|
|
|
<a-form-item label="状态" :labelCol="labelCol" :wrapperCol="wrapperCol" extra="用户端是否展示"> |
|
|
|
|
<a-radio-group v-decorator="['status', { initialValue: 1, rules: [{ required: true }] }]"> |
|
|
|
@ -127,7 +135,7 @@ export default { |
|
|
|
|
const { record, form: { setFieldsValue } } = this |
|
|
|
|
// 设置表单内容 |
|
|
|
|
this.$nextTick(() => { |
|
|
|
|
setFieldsValue(_.pick(record, ['name', 'parent_id', 'image_id', 'status', 'sort','is_paihang','is_hot', 'is_in_store'])) |
|
|
|
|
setFieldsValue(_.pick(record, ['name', 'parent_id', 'image_id', 'status', 'sort', 'is_paihang', 'is_hot', 'is_in_store', 'is_brand'])) |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|