From 1d8b93a90526fc18597d62dcbf695d604670d0ca Mon Sep 17 00:00:00 2001 From: weiwei Date: Thu, 6 Mar 2025 19:57:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E6=88=B7=E7=B1=BB=E5=9E=8B=E6=94=B9?= =?UTF-8?q?=E4=B8=BA=E5=8D=95=E9=80=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wallet/mch-manage/form.vue | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/views/wallet/mch-manage/form.vue b/src/views/wallet/mch-manage/form.vue index ee777cf..6e002a6 100644 --- a/src/views/wallet/mch-manage/form.vue +++ b/src/views/wallet/mch-manage/form.vue @@ -22,11 +22,9 @@ - - - {{ item.label }} - - + + {{ item.label }} + @@ -99,7 +97,7 @@ const form = reactive({ id: "", deptId: "", name: "", - merchantType: [], + merchantType: "", logoPic: "", collectMoneyCode: "", swiperPic: "", @@ -153,7 +151,7 @@ const parseDate = (timeString: string) => { const onSubmit = async () => { const valid = await dataFormRef.value.validate().catch(() => {}) if (!valid) return false - const _pa = { ...form, types: form.merchantType.join(",") } + const _pa = { ...form, types: form.merchantType } if (_pa.rangeDate && _pa.rangeDate.length) { _pa.jobStartTime = parseDate(_pa.rangeDate[0]) _pa.jobEndTime = parseDate(_pa.rangeDate[1]) @@ -179,7 +177,7 @@ const getmerchantInfoData = (id: string) => { .then((res: any) => { const data = res.data Object.assign(form, data, { - merchantType: data.types.split(","), + merchantType: data.types, rangeDate: [data.jobStartTime, data.jobEndTime], }) })