|
|
|
@ -11,39 +11,61 @@ |
|
|
|
|
> |
|
|
|
|
<a-spin :spinning="confirmLoading"> |
|
|
|
|
<a-form :form="form"> |
|
|
|
|
<a-form-item label="售卖类型" :labelCol="labelCol" :wrapperCol="wrapperCol" required> |
|
|
|
|
<a-radio-group v-decorator="['type', { initialValue: 10, rules: [{ required: true }] }]"> |
|
|
|
|
<a-radio :value="10">零售商城</a-radio> |
|
|
|
|
<a-radio :value="20">批发商城</a-radio> |
|
|
|
|
</a-radio-group> |
|
|
|
|
</a-form-item> |
|
|
|
|
<a-form-item label="板块名称" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
|
|
|
|
<a-select v-decorator="['plate_id', { initialValue: 1 }]"> |
|
|
|
|
<a-select-option :value="1">商品</a-select-option> |
|
|
|
|
<a-select-option :value="2">数据</a-select-option> |
|
|
|
|
<a-select-option :value="3">商品订单</a-select-option> |
|
|
|
|
<a-select-option :value="4">服务订单</a-select-option> |
|
|
|
|
<a-select-option :value="5">回收订单</a-select-option> |
|
|
|
|
<a-select-option :value="6">支付</a-select-option> |
|
|
|
|
<a-select-option :value="7">财务</a-select-option> |
|
|
|
|
<a-select-option :value="8">店铺展示</a-select-option> |
|
|
|
|
<a-select-option :value="9">角色</a-select-option> |
|
|
|
|
<a-select-option :value="10">营销</a-select-option> |
|
|
|
|
<a-select-option :value="11">多商户</a-select-option> |
|
|
|
|
<a-select-option :value="12">内容管理</a-select-option> |
|
|
|
|
<a-select-option :value="13">其他功能</a-select-option> |
|
|
|
|
</a-select> |
|
|
|
|
</a-form-item> |
|
|
|
|
<a-select v-decorator="['plate_id', { initialValue: 1 }]"> |
|
|
|
|
<a-select-option :value="1">商品</a-select-option> |
|
|
|
|
<a-select-option :value="2">数据</a-select-option> |
|
|
|
|
<a-select-option :value="3">商品订单</a-select-option> |
|
|
|
|
<a-select-option :value="4">服务订单</a-select-option> |
|
|
|
|
<a-select-option :value="5">回收订单</a-select-option> |
|
|
|
|
<a-select-option :value="6">支付</a-select-option> |
|
|
|
|
<a-select-option :value="7">财务</a-select-option> |
|
|
|
|
<a-select-option :value="8">店铺展示</a-select-option> |
|
|
|
|
<a-select-option :value="9">角色</a-select-option> |
|
|
|
|
<a-select-option :value="10">营销</a-select-option> |
|
|
|
|
<a-select-option :value="11">多商户</a-select-option> |
|
|
|
|
<a-select-option :value="12">内容管理</a-select-option> |
|
|
|
|
<a-select-option :value="13">其他功能</a-select-option> |
|
|
|
|
</a-select> |
|
|
|
|
</a-form-item> |
|
|
|
|
<a-form-item label="功能名称" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
|
|
|
|
<a-input v-decorator="['feature', { rules: [{ required: true, min: 2, message: '请输入至少2个字符' }] }]" /> |
|
|
|
|
</a-form-item> |
|
|
|
|
<a-form-item label="air" extra="需在展示‘√’输入10,‘×’输入20" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
|
|
|
|
<a-form-item label="air" extra="需在展示‘√’输入10,‘×’输入20" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
|
|
|
|
<a-input |
|
|
|
|
v-decorator="['air', { rules: [{ required: true, min: 2, max: 10, message: '请输入2-10个字符' }] }]" |
|
|
|
|
/> |
|
|
|
|
</a-form-item> |
|
|
|
|
<a-form-item label="pro" extra="需在展示‘√’输入10,‘×’输入20" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
|
|
|
|
<a-form-item label="pro" extra="需在展示‘√’输入10,‘×’输入20" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
|
|
|
|
<a-input v-decorator="['pro', { rules: [{ required: true, min: 2, message: '请输入至少2个字符' }] }]" /> |
|
|
|
|
</a-form-item> |
|
|
|
|
<a-form-item label="H5" extra="需在展示‘√’输入10,‘×’输入20" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
|
|
|
|
<a-form-item label="H5" extra="需在展示‘√’输入10,‘×’输入20" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
|
|
|
|
<a-input v-decorator="['H5', { rules: [{ required: true, min: 2, message: '请输入至少2个字符' }] }]" /> |
|
|
|
|
</a-form-item> |
|
|
|
|
<a-form-item label="功能描述" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
|
|
|
|
<a-input v-decorator="['function_description', { rules: [{ required: true, min: 2, message: '请输入至少2个字符' }] }]" /> |
|
|
|
|
<a-textarea |
|
|
|
|
v-decorator="[ |
|
|
|
|
'function_description', |
|
|
|
|
{ rules: [{ required: true, min: 2, message: '请输入至少2个字符' }] }, |
|
|
|
|
]" |
|
|
|
|
:autoSize="{ minRows: 4, maxRows: 6 }" |
|
|
|
|
autocomplete="off" |
|
|
|
|
/> |
|
|
|
|
</a-form-item> |
|
|
|
|
<a-form-item label="状态" :labelCol="labelCol" :wrapperCol="wrapperCol" required> |
|
|
|
|
<a-radio-group v-decorator="['description_status', { initialValue: 10, rules: [{ required: true }] }]"> |
|
|
|
|
<a-radio :value="10">展示</a-radio> |
|
|
|
|
<a-radio :value="20">隐藏</a-radio> |
|
|
|
|
</a-radio-group> |
|
|
|
|
</a-form-item> |
|
|
|
|
<a-form-item label="排序" :labelCol="labelCol" :wrapperCol="wrapperCol" extra="数字越小越靠前"> |
|
|
|
|
<a-input-number :min="0" v-decorator="['sort', { initialValue: 100, rules: [{ required: true }] }]" /> |
|
|
|
|
</a-form-item> |
|
|
|
|
</a-form> |
|
|
|
|
</a-spin> |
|
|
|
@ -108,8 +130,11 @@ export default { |
|
|
|
|
'feature', |
|
|
|
|
'air', |
|
|
|
|
'pro', |
|
|
|
|
'H5', |
|
|
|
|
'function_description', |
|
|
|
|
'H5', |
|
|
|
|
'function_description', |
|
|
|
|
'type', |
|
|
|
|
'sort', |
|
|
|
|
'description_status', |
|
|
|
|
]) |
|
|
|
|
) |
|
|
|
|
}) |
|
|
|
|