|
|
|
@ -25,6 +25,14 @@ |
|
|
|
|
maxlength="50" |
|
|
|
|
/> |
|
|
|
|
</a-form-item> |
|
|
|
|
<a-form-item label="尾端内容" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
|
|
|
|
<a-textarea |
|
|
|
|
v-decorator="['tail', { rules: [{ required: true, message: '请输入尾端内容' }] }]" |
|
|
|
|
:autoSize="{ minRows: 3, maxRows: 5 }" |
|
|
|
|
autocomplete="off" |
|
|
|
|
maxlength="50" |
|
|
|
|
/> |
|
|
|
|
</a-form-item> |
|
|
|
|
<a-form-model-item label="线报商品" :labelCol="labelCol" :wrapperCol="wrapperCol" required> |
|
|
|
|
<div style="max-height: 500px; overflow-y: auto"> |
|
|
|
|
<SelectGoods |
|
|
|
@ -69,7 +77,7 @@ export default { |
|
|
|
|
methods: { |
|
|
|
|
// 显示对话框 |
|
|
|
|
edit(record) { |
|
|
|
|
this.choiceGoodsList=[] |
|
|
|
|
this.choiceGoodsList = [] |
|
|
|
|
// 显示窗口 |
|
|
|
|
this.visible = true |
|
|
|
|
// 当前记录 |
|
|
|
@ -94,7 +102,7 @@ export default { |
|
|
|
|
form: { setFieldsValue }, |
|
|
|
|
} = this |
|
|
|
|
this.$nextTick(() => { |
|
|
|
|
setFieldsValue(pick(record, ['channel_name', 'header_content', 'goods_id'])) |
|
|
|
|
setFieldsValue(pick(record, ['channel_name', 'header_content', 'goods_id','tail'])) |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|