Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ui/src/components/global/mk-status-label/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ defineOptions({ name: 'MkStatusLabel' })

const props = withDefaults(
defineProps<{
active?: boolean
active?: boolean // 启用状态
activeText?: string
inactiveText?: string
status?: State
status?: State // 多种状态
}>(),
{ activeText: '已启用', inactiveText: '已禁用' },
)
Expand Down
2 changes: 1 addition & 1 deletion ui/src/views/system/chat-management/users/UserListView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ onMounted(() => loadChatUsers())
<el-table-column type="selection" width="40" />
<el-table-column prop="nick_name" label="姓名" min-width="150" show-overflow-tooltip />
<el-table-column prop="username" label="用户名" min-width="150" show-overflow-tooltip />
<el-table-column width="100" label="状态">
<el-table-column width="100" label="启用状态">
<template #default="{ row }">
<MkStatusLabel :active="row.is_active" />
</template>
Expand Down
2 changes: 1 addition & 1 deletion ui/src/views/system/identity/users/UserListView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ onMounted(() => loadSystemUsers())
<el-table-column type="selection" width="40" />
<el-table-column prop="nick_name" label="姓名" min-width="150" show-overflow-tooltip />
<el-table-column prop="username" label="用户名" min-width="150" show-overflow-tooltip />
<el-table-column width="100" label="状态">
<el-table-column width="100" label="启用状态">
<template #default="{ row }">
<MkStatusLabel :active="row.is_active" />
</template>
Expand Down
2 changes: 1 addition & 1 deletion ui/src/views/trigger/TriggerView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ onMounted(() => loadTriggers())
<el-table-column prop="trigger_type" label="类型" width="120">
<template #default="{ row }">{{ triggerTypeLabels[row.trigger_type as TriggerType] || row.trigger_type }}</template>
</el-table-column>
<el-table-column prop="is_active" label="状态" width="120">
<el-table-column prop="is_active" label="启用状态" width="120">
<template #default="{ row }"><MkStatusLabel :active="row.is_active" /></template>
</el-table-column>
<el-table-column prop="desc" label="描述" min-width="170" show-overflow-tooltip />
Expand Down
Loading