refactor: 💥 优化系统内置类型数据标识

1.系统内置类型数据标识由 type 调整为 is_system
2.优化部分表的非空字段
This commit is contained in:
2023-09-17 23:53:25 +08:00
parent 2755bc8479
commit 8a02401a24
30 changed files with 135 additions and 160 deletions

View File

@@ -142,10 +142,10 @@
/>
</template>
</a-table-column>
<a-table-column title="类型" align="center">
<a-table-column title="系统内置" align="center">
<template #cell="{ record }">
<a-tag v-if="record.type === 1" color="red">系统内置</a-tag>
<a-tag v-else color="arcoblue">自定义</a-tag>
<a-tag v-if="record.isSystem" color="red"></a-tag>
<a-tag v-else color="arcoblue"></a-tag>
</template>
</a-table-column>
<a-table-column title="描述" data-index="description" tooltip />
@@ -174,7 +174,7 @@
v-permission="['system:role:delete']"
type="text"
size="small"
title="删除"
:title="record.isSystem ? '系统内置数据不能删除' : '删除'"
:disabled="record.disabled"
>
<template #icon><icon-delete /></template>删除