|
|
@@ -88,6 +88,11 @@
|
|
|
{{ record.name }}
|
|
|
</div>
|
|
|
</template>
|
|
|
+ <template #status="{ record }">
|
|
|
+ <a-tag :color="record.status === 1 ? 'green' : 'red'">{{
|
|
|
+ record.status ? t('tag.status.enable') : t('tag.status.disable')
|
|
|
+ }}</a-tag>
|
|
|
+ </template>
|
|
|
<template #optional="{ record }">
|
|
|
<a-button
|
|
|
type="primary"
|
|
|
@@ -156,6 +161,13 @@ const cloneColumns = computed(() => [
|
|
|
ellipsis: true,
|
|
|
align: 'center',
|
|
|
},
|
|
|
+ {
|
|
|
+ title: t('dict.form.status'),
|
|
|
+ dataIndex: 'status',
|
|
|
+ slotName: 'status',
|
|
|
+ ellipsis: true,
|
|
|
+ align: 'center',
|
|
|
+ },
|
|
|
{
|
|
|
title: t('dict.form.description'),
|
|
|
dataIndex: 'description',
|