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