添加字段

feature/0423
陈伟 9 months ago
parent d8418ccb52
commit f1e4633c66
  1. 4
      src/views/content/richText/Index.vue
  2. 3
      src/views/content/richText/modules/AddForm.vue
  3. 5
      src/views/content/richText/modules/EditForm.vue
  4. 8
      src/views/goods/category/modules/AddForm.vue
  5. 10
      src/views/goods/category/modules/EditForm.vue
  6. 9
      src/views/market/presale/Index.vue
  7. 7
      src/views/market/presale/modules/AddForm.vue
  8. 9
      src/views/market/presale/modules/EditForm.vue

@ -54,6 +54,10 @@ export default {
title: 'ID',
dataIndex: 'id'
},
{
title: '协议名称',
dataIndex: 'name'
},
{
title: '协议类型',
dataIndex: 'type'

@ -10,6 +10,9 @@
>
<a-spin :spinning="confirmLoading">
<a-form :form="form">
<a-form-item label="协议名称" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-input v-decorator="['name', { rules: [{ required: true, message: '请输入协议名称' }] }]" />
</a-form-item>
<a-form-item label="协议类型" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-input v-decorator="['type', { rules: [{ required: true, message: '请输入协议类型' }] }]" />
</a-form-item>

@ -10,6 +10,9 @@
>
<a-spin :spinning="confirmLoading">
<a-form :form="form">
<a-form-item label="协议名称" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-input v-decorator="['name', { rules: [{ required: true, message: '请输入协议名称' }] }]" />
</a-form-item>
<a-form-item label="协议类型" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-input v-decorator="['type', { rules: [{ required: true, message: '请输入联系人姓名' }] }]" />
</a-form-item>
@ -66,7 +69,7 @@ export default {
setFieldsValue () {
const { record, form: { setFieldsValue } } = this
this.$nextTick(() => {
setFieldsValue(pick(record, ['type', 'content']))
setFieldsValue(pick(record, ['name', 'type', 'content']))
})
},

@ -48,6 +48,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 }] }]">

@ -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']))
})
},

@ -66,16 +66,21 @@ export default {
dataIndex: 'status',
scopedSlots: { customRender: 'status' }
},
{
title: '预售时间',
width: '180px',
dataIndex: 'p_time'
},
{
title: '创建时间',
width: '180px',
dataIndex: 'ctime'
},
{
/* {
title: '更新时间',
width: '180px',
dataIndex: 'p_time'
},
}, */
{
title: '操作',
dataIndex: 'action',

@ -22,6 +22,13 @@
/>
</div>
</a-form-item>
<a-form-item label="预售时间" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-date-picker
show-time
format="YYYY-MM-DD HH:mm:ss"
v-decorator="['p_time', { rules: [{ required: true, message: '请输入预售时间' }] }]"
/>
</a-form-item>
<a-form-item label="状态" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-radio-group v-decorator="['status', { initialValue: 1, rules: [{ required: true }] }]">

@ -23,6 +23,13 @@
/>
</div>
</a-form-item>
<a-form-item label="预售时间" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-date-picker
show-time
format="YYYY-MM-DD HH:mm:ss"
v-decorator="['p_time', { rules: [{ required: true, message: '请输入预售时间' }] }]"
/>
</a-form-item>
<a-form-item label="状态" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-radio-group v-decorator="['status', { initialValue: 1, rules: [{ required: true }] }]">
@ -84,7 +91,7 @@ export default {
setFieldsValue () {
const { record, form: { setFieldsValue } } = this
this.$nextTick(() => {
setFieldsValue(pick(record, ['name', 'goods_list', 'status']))
setFieldsValue(pick(record, ['name', 'goods_list', 'p_time', 'status']))
})
},

Loading…
Cancel
Save