fix(管理端): 清理同款模板 ref 同名冲突,修复表单输入与校验失效

This commit is contained in:
From-wh 2026-10-10 15:20:29 +08:00 committed by 吴昊天
parent aad02c1337
commit 675c0f536f
6 changed files with 7 additions and 7 deletions

View File

@ -1,6 +1,6 @@
<template>
<div class="customer">
<el-form ref="formValidate" :model="formValidate" label-width="80px" inline @submit.prevent>
<el-form :model="formValidate" label-width="80px" inline @submit.prevent>
<el-form-item label="搜索用户:">
<el-input
clearable

View File

@ -1,6 +1,6 @@
<template>
<div class="goodList">
<el-form ref="formValidate" :model="formValidate" label-width="80px" label-position="right" inline class="tabform">
<el-form :model="formValidate" label-width="80px" label-position="right" inline class="tabform">
<el-form-item label="商品分类:" v-if="!liveStatus">
<el-cascader
v-model="formValidate.cate_id"

View File

@ -143,7 +143,7 @@
currenType == 'lottery_list'
"
>
<el-form ref="formValidate" :model="formValidate" class="tabform" v-if="currenType == 'product'">
<el-form :model="formValidate" class="tabform" v-if="currenType == 'product'">
<el-row :gutter="24">
<el-col :span="8">
<el-form-item label="" label-for="pid">
@ -281,7 +281,7 @@
<!--<div v-if="!tableList.length || customNum==2">-->
<!--<el-button type="primary" v-db-click @click="customList" v-if="tableList.length">自定义列表</el-button>-->
<div style="width: 340px; margin: 150px 100px 0 120px">
<el-form ref="customdate" :model="customdate" :rules="ruleValidate" :label-width="100">
<el-form ref="customdateRef" :model="customdate" :rules="ruleValidate" :label-width="100">
<!--<el-form-item label="链接名称:" prop="name">-->
<!--<el-input v-model="customdate.name" placeholder="会员中心"></el-input>-->
<!--</el-form-item>-->

View File

@ -1,6 +1,6 @@
<template>
<el-dialog v-model="modals" title="备注" class="order_box" width="470px" :show-close="true">
<el-form ref="formValidate" :model="formValidate" :rules="ruleValidate" label-width="85px" @submit.prevent>
<el-form ref="formValidateRef" :model="formValidate" :rules="ruleValidate" label-width="85px" @submit.prevent>
<el-form-item label="备注:" prop="remark">
<el-input
v-model="formValidate.remark"

View File

@ -1,6 +1,6 @@
<template>
<div class="goodList">
<el-form ref="formValidate" :model="formValidate" label-width="120px" label-position="right" class="tabform">
<el-form :model="formValidate" label-width="120px" label-position="right" class="tabform">
<el-row :gutter="24">
<el-col v-bind="grid">
<el-form-item label="商品分类:" label-for="pid">

View File

@ -4,7 +4,7 @@
<template v-slot:title>crud生成说明</template>
<template> 不能生成系统自带的表;已经生成过的表还能继续生成 </template>
</el-alert>
<el-form ref="foundation" :model="foundation" :rules="foundationRules" label-width="100px">
<el-form :model="foundation" :rules="foundationRules" label-width="100px">
<el-form-item label="菜单:">
<el-cascader
class="form-width"