当前位置:网站首页>解决表单校验提示信息不消失问题以及赋值不生效问题
解决表单校验提示信息不消失问题以及赋值不生效问题
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()//强制更新
},
边栏推荐
- Question swiping Madness - leetcode's sword finger offer58 - ii Detailed explanation of left rotation string
- 第一周总结
- 【C语言系列】—深度解剖数据在内存中的存储(一) 暑假开篇
- Alibaba cloud architect details nine trends in the game industry
- Talking about Servlet
- Flask 报错 RuntimeError: The session is unavailable because no secret key was set.
- 阿里云架构师细说游戏行业九大趋势
- ClickHouse学习(十)监控运行指标
- 携手数字人、数字空间、XR平台,阿里云与伙伴共同建设“新视界”
- [event preview] cloud digital factory and digital transformation and innovation forum for small and medium-sized enterprises
猜你喜欢
Redirection and files
【活动预告】云上数字工厂与中小企业数字化转型创新论坛
Pyqt5: Chapter 1, Section 1: creating a user interface using QT components - Introduction
Together with digital people, digital space and XR platform, Alibaba cloud and its partners jointly build a "new vision"
[event preview] cloud digital factory and digital transformation and innovation forum for small and medium-sized enterprises
【JS题解】牛客网JS篇1-10题
Day 1
ClickHouse学习(二)ClickHouse单机安装
【C语言系列】—深度解剖数据在内存中的存储(二)-浮点型
Do students in the science class really understand the future career planning?
随机推荐
Together with digital people, digital space and XR platform, Alibaba cloud and its partners jointly build a "new vision"
Detailed explanation of GPIO input and output
公众号不支持markdown格式文件编写怎么办?
[C language series] - detailed explanation of file operation (Part 1)
ANSI C type qualifier
[event preview] cloud digital factory and digital transformation and innovation forum for small and medium-sized enterprises
【TypeScript】深入学习TypeScript函数
Time complexity and space complexity
虚拟增强与现实第二篇 (我是一只火鸟)
link与@import导入外部样式的区别
[C language series] - three methods to simulate the implementation of strlen library functions
href与src的区别
C language first level pointer
【C语言系列】— 打印100~200之间的素数
Common shortcut keys for Ad
rem与px与em异同点
Day 1
利用Poi-tl在word模板表格单元格内一次插入多张图片和多行单元格相同数据自动合并的功能组件
抽象类与接口
基础爬虫实战案例之获取游戏商品数据