轮播图字段默认类型修改
This commit is contained in:
1 parent
be64a6c4e1
commit
cf57e818e8
1 file changed
+5
-9
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<el-dialog :title="form.id ? '编辑' : '新增'" width="40%" v-model="visible" :close-on-click-modal="false" draggable>
|
<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-row :gutter="24">
|
||||||
<el-col :span="24" class="mb20">
|
<el-col :span="24" class="mb20">
|
||||||
<el-form-item label="商户名" prop="name">
|
<el-form-item label="商户名" prop="name">
|
||||||
@@ -71,10 +71,8 @@
|
|||||||
</el-row>
|
</el-row>
|
||||||
</el-form>
|
</el-form>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<span class="dialog-footer">
|
<el-button @click="visible = false">取消</el-button>
|
||||||
<el-button @click="visible = false">取消</el-button>
|
<el-button type="primary" @click="onSubmit" :disabled="loading">确认</el-button>
|
||||||
<el-button type="primary" @click="onSubmit" :disabled="loading">确认</el-button>
|
|
||||||
</span>
|
|
||||||
</template>
|
</template>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
</template>
|
</template>
|
||||||
@@ -104,7 +102,7 @@ const form = reactive({
|
|||||||
merchantType: [],
|
merchantType: [],
|
||||||
logoPic: "",
|
logoPic: "",
|
||||||
collectMoneyCode: "",
|
collectMoneyCode: "",
|
||||||
swiperPic: [],
|
swiperPic: "",
|
||||||
phone: "",
|
phone: "",
|
||||||
businessTime: "",
|
businessTime: "",
|
||||||
address: "",
|
address: "",
|
||||||
@@ -132,9 +130,7 @@ const openDialog = (id: string) => {
|
|||||||
form.id = ""
|
form.id = ""
|
||||||
|
|
||||||
// 重置表单数据
|
// 重置表单数据
|
||||||
nextTick(() => {
|
dataFormRef.value?.resetFields()
|
||||||
dataFormRef.value?.resetFields()
|
|
||||||
})
|
|
||||||
|
|
||||||
// 获取merchantInfo信息
|
// 获取merchantInfo信息
|
||||||
if (id) {
|
if (id) {
|
||||||
|
|||||||
Reference in new issue
Block a user