自定义字典数据可显示

This commit is contained in:
不做码农 2023-06-17 16:02:41 +08:00
parent 0b786ffcb7
commit e6508d1a11

View File

@ -42,8 +42,10 @@
<el-table-column label="备注" align="center" prop="remark" :show-overflow-tooltip="true" />
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="130px">
<template #default="scope">
<div v-if="scope.row.dictCode > 0">
<el-button text size="small" icon="edit" @click="handleUpdate(scope.row)" v-hasPermi="['system:dict:edit']">编辑</el-button>
<el-button text size="small" icon="delete" @click="handleDelete(scope.row)" v-hasPermi="['system:dict:remove']">删除 </el-button>
</div>
</template>
</el-table-column>
</el-table>