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
1.4k views
in Technique[技术] by (71.8m points)

iview table,selection事件相同,我需要根据点击不同的selection按钮计算这条数据的金额?

QQ截图20200507154001.png
下面这三个是代码:
QQ截图20200507151751.png

QQ截图20200507151940.png

QQ截图20200507153518.png

题目描述

由于有几个table是根据tablelist的数量循环出来的,所以他们的on-select事件都一样,点击单条,取消单条,全选的时候我都可以把选中的数据拿到生成一个新数组,并且计算它们的金额,但是全选取消的时候因为iview组件就没有数据出来,是个空数组,我就不知道该怎么把我当前点击全选取消的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

...