fix:商户bug修改

This commit is contained in:
dzc committed 2025-01-14 09:32:39 +08:00
1 parent 92c5680ed7
commit a23504355b
2 files changed
+7 -3

No files matched your search

+6 -2
View File
@@ -156,7 +156,7 @@ const onSubmit = async () => {
}
try {
loading.value = true
form.id ? await putObj(form) : await addObj(_pa)
form.id ? await putObj(_pa) : await addObj(_pa)
useMessage().success(form.id ? "修改成功" : "添加成功")
visible.value = false
emit("refresh")
@@ -173,7 +173,11 @@ const getmerchantInfoData = (id: string) => {
loading.value = true
getObj(id)
.then((res: any) => {
Object.assign(form, res.data, { merchantType: res.data.types.split(",") })
const data = res.data
Object.assign(form, data, {
merchantType: data.types.split(","),
rangeDate: [data.jobStartTime, data.jobEndTime],
})
})
.finally(() => {
loading.value = false
@@ -72,7 +72,7 @@
<div class="flex items-center justify-center">
<div class="color-primary">{{ row.walletTypeName }}</div>
<div class="flex items-center just ml5">
<dict-tag :options="wallet_type" :value="row.uniqueCode" />
<dict-tag :options="wallet_type" :value="row.walletTypeUniqueCode" />
</div>
</div>
</template>