Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
3.1k views
in Technique[技术] by (71.8m points)

element table选中

image.png
image.png
修改和新建共用的是一个弹窗,
点击修改table表格选中回显是正确的,关闭弹窗后在点击新建,新建中的table没有初始化,正常的应该是不选中的
初步猜测是视图不更新的原因, 但用了nextTick和set,this.$forceUpdate();都不管用
期望: 新建的时候 table是不选中的


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

点击关闭模态框的时候,把选中数组清空~
点击编辑的时候,把选中数组再回显~


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...