当前位置:网站首页>解决表单校验提示信息不消失问题以及赋值不生效问题
解决表单校验提示信息不消失问题以及赋值不生效问题
2022-07-29 05:12:00 【喵酱睡着了】
问题1:校验提示信息不消失
1.下拉框使用change触发
2.form需要给予定义
问题2.赋值不生效问题
1.使用set赋值
this.$set(this.form, 'eqName', value)
2.下拉框的改变事件强制刷新
<el-form-item label="井名称" prop="deviceName">
<el-select v-model="addEditForm.deviceName" filterable placeholder="请选择" clearable @change="selectPlatform" style="width:92%">
<el-option
v-for="item in addWellData"
:key="item.jmc"
:label="item.jmc"
:value="item.jmc"
/>
</el-select>
</el-form-item>
selectPlatform(){
this.$forceUpdate()//强制更新
},
边栏推荐
- paddle. Fluid constant calculation error 'nonetype' object has no attribute 'get_ fetch_ list‘
- ANSI C type qualifier
- Longest string without duplicate characters
- Abstract classes and interfaces
- Preemptive appointment | Alibaba cloud shadowless cloud application online conference appointment opens
- Clickhouse learning (IX) Clickhouse integrating MySQL
- 【无标题】
- shell基本操作(上)
- VIM editor use
- Detailed explanation of GPIO input and output
猜你喜欢

实现简单的数据库查询(不完整)

365 day challenge leetcode 1000 questions - day 042 array sequence number conversion + relative ranking discretization processing

Together with digital people, digital space and XR platform, Alibaba cloud and its partners jointly build a "new vision"

无重复字符的最长字串

Global components component registration

C语言 一维数组

Best practices for elastic computing in the game industry

【JS题解】牛客网JS篇1-10题

Occt learning 002 - environment construction

【C语言系列】— 把同学弄糊涂的 “常量” 与 “变量”
随机推荐
移动端-flex项目属性
uniapp组件之倒计时(如阅读协议倒计时、完成学习倒计时)
B - 识别浮点常量问题
·来一篇编程之路的自我介绍吧·
Talking about Servlet
【剑指offer】— 详解库函数atoi以及模拟实现atoi函数
微信小程序更改属性值-setData-双向绑定-model
【JS题解】牛客网JS篇1-10题
365 day challenge leetcode 1000 questions - day 042 array sequence number conversion + relative ranking discretization processing
【C语言系列】— 不创造第三个变量,实现两个数的交换
游戏行业弹性计算最佳实践
Best practices for elastic computing in the game industry
JS deep copy - Notes
Alibaba cloud architect details nine trends in the game industry
js深拷贝-笔记
Allocate memory: malloc() and free()
shell基本操作(上)
Time complexity and space complexity
全局components组件注册
弹性盒子flex