1. 根据下标获取对应的classname,实现点击按钮触发当前块的点击事件
<div class="right" @click="meetingfileVisible(index)">
<span class="foldIcon">
<i class="el-icon-caret-bottom"></i>
</span>
</div>
<div class="meeting-file">
<span>与现实生活一致</span>
</div>
.meeting-file{
display:none;
}
meetingfileVisible(index) {
$(".meeting-file").eq(index).slideToggle("slow");
var cal =$(".foldIcon").eq(index).children("i").attr("class");
cal = cal === 'el-icon-caret-bottom' ? 'el-icon-caret-top' : 'el-icon-caret-bottom';
$(".foldIcon").eq(index).children("i").attr("class", cal);
},