feature/0423
wangdong 9 months ago
parent ca304f711f
commit 04e1466dcd
  1. 12
      src/views/shop/modules/Edit.vue

@ -10,12 +10,12 @@
@cancel="handleCancel" @cancel="handleCancel"
> >
<a-spin :spinning="confirmLoading"> <a-spin :spinning="confirmLoading">
<a-form-item label="商户图片" :labelCol="labelCol" :wrapperCol="wrapperCol">
<SelectImage
:defaultList="info.logoImage ? [info.logoImage] : []"
v-decorator="['logo_image_id', { rules: [{ required: true, message: '请上传图片' }] }]" />
</a-form-item>
<a-form :form="form"> <a-form :form="form">
<a-form-item label="商户图片" :labelCol="labelCol" :wrapperCol="wrapperCol">
<SelectImage
:defaultList="info.logoImage ? [info.logoImage] : []"
v-decorator="['logo_image_id', { rules: [{ required: true, message: '请上传图片' }] }]" />
</a-form-item>
<a-form-item label="商户名称" :labelCol="labelCol" :wrapperCol="wrapperCol"> <a-form-item label="商户名称" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-input <a-input
v-decorator="['shop_name', { rules: [{ required: true, min: 2, message: '请输入至少2个字符' }] }]" v-decorator="['shop_name', { rules: [{ required: true, min: 2, message: '请输入至少2个字符' }] }]"
@ -113,7 +113,7 @@ export default {
// api // api
onFormSubmit (values) { onFormSubmit (values) {
this.confirmLoading = true this.confirmLoading = true
Api.editShop({ shopId: this.info['shop_id'], form: values }) Api.editShop({ form: { merchant_id: this.info['merchant_id'], ...values } })
.then((result) => { .then((result) => {
// //
this.$message.success(result.message, 1.5) this.$message.success(result.message, 1.5)

Loading…
Cancel
Save