vue 表格根据日期排序
<el-table ref="multipleTable" :data="数据名" @sort-change="orderByDate" tooltip-effect="dark"
<el-table
ref="multipleTable"
:data="数据名"
@sort-change="orderByDate"
tooltip-effect="dark"
style="width: 100%">
<el-table-column
prop="installDate"
label="安装时间"
sortable="installDate">
</el-table-column>
</el-table>
orderByDate:function(Date){
if(Date.prop == 'installDate'){
if(Date.order=="ascending"){
vue.query.installBtn = 1;
}else if(Date.order=="descending"){
vue.query.installBtn = 0;
}else{
vue.query.installBtn = null;
}
}
vue.searchBsRoadsideOnline();
},
更多推荐
所有评论(0)