This commit is contained in:
zmj 2024-05-30 10:47:38 +08:00
parent 26d2bbacc0
commit 034219cab1
3 changed files with 3 additions and 3 deletions

View File

@ -32,7 +32,7 @@
<el-table-column label="部门名称" prop="name" min-width="150" show-overflow-tooltip />
<el-table-column label="部门状态" prop="status" min-width="100">
<template #default="{ row }">
<el-tag class="ml-2" :type="row.status ? '' : 'danger'">{{
<el-tag class="ml-2" :type="row.status ? 'danger' : ''">{{
row.status == 0 ? "正常" : "禁用"
}}</el-tag>
</template>

View File

@ -35,7 +35,7 @@
<el-table-column label="组织名称" prop="name" min-width="100" />
<el-table-column label="状态" prop="status" min-width="100">
<template #default="{ row }">
<el-tag class="ml-2" :type="row.status ? '' : 'danger'">
<el-tag class="ml-2" :type="row.status ? 'danger' : ''">
{{ row.status == 0 ? "正常" : "禁用" }}
</el-tag>
</template>

View File

@ -41,7 +41,7 @@
<el-table-column label="添加时间" prop="create_time" min-width="180" />
<el-table-column label="状态" prop="status" min-width="100">
<template #default="{ row }">
<el-tag class="ml-2" :type="row.status ? '' : 'danger'">
<el-tag class="ml-2" :type="row.status ? 'danger' : ''">
{{ row.status == 0 ? "正常" : "禁用" }}
</el-tag>
</template>