This commit is contained in:
dzc committed 2025-03-05 17:09:24 +08:00
commit 3afa5e038f
2 files changed
+7 -11

No files matched your search

+5 -9
View File
@@ -1,6 +1,6 @@
<template>
<el-dialog :title="form.id ? '编辑' : '新增'" width="40%" v-model="visible" :close-on-click-modal="false" draggable>
<el-form ref="dataFormRef" :model="form" :rules="dataRules" formDialogRef label-width="90px" v-loading="loading">
<el-form ref="dataFormRef" :model="form" :rules="dataRules" label-width="90px" v-loading="loading">
<el-row :gutter="24">
<el-col :span="24" class="mb20">
<el-form-item label="商户名" prop="name">
@@ -71,10 +71,8 @@
</el-row>
</el-form>
<template #footer>
<span class="dialog-footer">
<el-button @click="visible = false">取消</el-button>
<el-button type="primary" @click="onSubmit" :disabled="loading">确认</el-button>
</span>
<el-button @click="visible = false">取消</el-button>
<el-button type="primary" @click="onSubmit" :disabled="loading">确认</el-button>
</template>
</el-dialog>
</template>
@@ -104,7 +102,7 @@ const form = reactive({
merchantType: [],
logoPic: "",
collectMoneyCode: "",
swiperPic: [],
swiperPic: "",
phone: "",
businessTime: "",
address: "",
@@ -132,9 +130,7 @@ const openDialog = (id: string) => {
form.id = ""
// 重置表单数据
nextTick(() => {
dataFormRef.value?.resetFields()
})
dataFormRef.value?.resetFields()
// 获取merchantInfo信息
if (id) {