赞
踩
<el-table
:data="tableData"
stripe
border
row-key="jobNo" //根据什么字段打开行
:expand-row-keys="expands" //要默认打开行
style="width: 100%">
<el-table-column type="expand">
<template slot-scope="props">
<el-table
:data="props.row.accessEntities"//子表数据
stripe
>
<el-table-column
prop="doorName"
label="门禁点"
>
</el-table-column>
<el-table-column
prop="type"
label="出/入"
>
<template slot-scope="scope">
<span v-if="scope.row.type=='IN'">入</span>
<span v-else>出</span>
</template>
</el-table-column>
<el-table-column
prop="accessTime"
label="时间"
>
</el-table-column>
</el-table>
</template>
</el-table-column>
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。