优化字典标签支持数组和多标签

This commit is contained in:
抓蛙师
2023-09-08 18:35:17 +08:00
parent 6c16d023f4
commit 14538ce399
2 changed files with 26 additions and 37 deletions

View File

@ -53,11 +53,7 @@
<el-table-column label="客户端秘钥" align="center" prop="clientSecret" />
<el-table-column label="授权类型" align="center">
<template #default="scope">
<div>
<template v-for="(type, index) in scope.row.grantTypeList" :key="index">
<dict-tag class="el-check-tag" :options="sys_grant_type" :value="type" />
</template>
</div>
<dict-tag :options="sys_grant_type" :value="scope.row.grantTypeList" />
</template>
</el-table-column>
<el-table-column label="设备类型" align="center">