From 8fd6691bb2417aae9a206439db4a00c975a758f3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=99=88=E4=BC=9F?= <943146732@qq.com>
Date: Wed, 13 Mar 2024 09:41:12 +0800
Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=AD=97=E6=AE=B5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/store/Setting.vue | 42 ++++++++++++++++++++++++++++++++++---
1 file changed, 39 insertions(+), 3 deletions(-)
diff --git a/src/views/store/Setting.vue b/src/views/store/Setting.vue
index 9373f51..ae7dff0 100644
--- a/src/views/store/Setting.vue
+++ b/src/views/store/Setting.vue
@@ -11,7 +11,7 @@
@@ -29,6 +29,42 @@
v-decorator="['logo_image_id']"
/>
+
+
+
+
+
+
+
+
+
提交
@@ -85,7 +121,7 @@ export default {
const { record, form: { setFieldsValue } } = this
// 表单内容
this.$nextTick(() => {
- setFieldsValue(pick(record, ['store_name', 'describe', 'logo_image_id','phone']))
+ setFieldsValue(pick(record, ['store_name', 'describe', 'logo_image_id', 'phone']))
})
},
@@ -103,7 +139,7 @@ export default {
// 提交到后端api
onFormSubmit (values) {
this.isLoading = true
- Api.update({ form: values })
+ Api.update({ form: { ...values, new_product_img_id: values.new_product_img_id.join(','), big_brand_img_id: values.big_brand_img_id.join(','), new_people_order_img_id: values.new_people_order_img_id.join(',') } })
.then(result => this.$message.success(result.message, 1.5))
.finally(() => this.isLoading = false)
}