|
|
@ -36,6 +36,12 @@ |
|
|
|
<a-radio :value="1">加入</a-radio> |
|
|
|
<a-radio :value="1">加入</a-radio> |
|
|
|
</a-radio-group> |
|
|
|
</a-radio-group> |
|
|
|
</a-form-item> |
|
|
|
</a-form-item> |
|
|
|
|
|
|
|
<a-form-item label="排行榜图片" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
|
|
|
|
|
|
|
<SelectImage |
|
|
|
|
|
|
|
:defaultList="record.rankimage ? [record.rankimage] : []" |
|
|
|
|
|
|
|
v-decorator="['rank_image_id']" |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
</a-form-item> |
|
|
|
|
|
|
|
|
|
|
|
<a-form-item label="是否热门" :labelCol="labelCol" :wrapperCol="wrapperCol" extra="是否热门"> |
|
|
|
<a-form-item label="是否热门" :labelCol="labelCol" :wrapperCol="wrapperCol" extra="是否热门"> |
|
|
|
<a-radio-group v-decorator="['is_hot', { initialValue: 0, rules: [{ required: true }] }]"> |
|
|
|
<a-radio-group v-decorator="['is_hot', { initialValue: 0, rules: [{ required: true }] }]"> |
|
|
@ -135,7 +141,7 @@ export default { |
|
|
|
const { record, form: { setFieldsValue } } = this |
|
|
|
const { record, form: { setFieldsValue } } = this |
|
|
|
// 设置表单内容 |
|
|
|
// 设置表单内容 |
|
|
|
this.$nextTick(() => { |
|
|
|
this.$nextTick(() => { |
|
|
|
setFieldsValue(_.pick(record, ['name', 'parent_id', 'image_id', 'status', 'sort', 'is_paihang', 'is_hot', 'is_in_store', 'is_brand'])) |
|
|
|
setFieldsValue(_.pick(record, ['name', 'parent_id', 'image_id', 'status', 'sort', 'is_paihang', 'rank_image_id', 'is_hot', 'is_in_store', 'is_brand'])) |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|