用户组列表页的路由列只显示5条

This commit is contained in:
lanrenwo 2022-06-15 09:37:37 +08:00
parent 54f7a59a91
commit 7f1e769377
1 changed files with 6 additions and 3 deletions

View File

@ -65,7 +65,8 @@
label="路由包含"
width="200">
<template slot-scope="scope">
<el-row v-for="(item,inx) in scope.row.route_include" :key="inx">{{ item.val }}</el-row>
<el-row v-for="(item,inx) in scope.row.route_include.slice(0, 5)" :key="inx">{{ item.val }}</el-row>
<el-row v-if="scope.row.route_include.length > 5">...</el-row>
</template>
</el-table-column>
@ -74,7 +75,8 @@
label="路由排除"
width="200">
<template slot-scope="scope">
<el-row v-for="(item,inx) in scope.row.route_exclude" :key="inx">{{ item.val }}</el-row>
<el-row v-for="(item,inx) in scope.row.route_exclude.slice(0, 5)" :key="inx">{{ item.val }}</el-row>
<el-row v-if="scope.row.route_exclude.length > 5">...</el-row>
</template>
</el-table-column>
@ -83,9 +85,10 @@
label="LINK-ACL"
min-width="200">
<template slot-scope="scope">
<el-row v-for="(item,inx) in scope.row.link_acl" :key="inx">
<el-row v-for="(item,inx) in scope.row.link_acl.slice(0, 5)" :key="inx">
{{ item.action }} => {{ item.val }} : {{ item.port }}
</el-row>
<el-row v-if="scope.row.link_acl.length > 5">...</el-row>
</template>
</el-table-column>