转出状态

This commit is contained in:
chenxing
2026-08-26 12:37:56 +08:00
parent 9c04b5e9fc
commit 73066b5ab3
2 changed files with 13 additions and 4 deletions
+1
View File
@@ -319,6 +319,7 @@ export interface SysUserVo {
disabled?: number;
type?: number;
sortNo?: number;
groupStatus?: number;
expired?: boolean;
createTime?: string;
updateTime?: string;
+12 -4
View File
@@ -186,10 +186,18 @@ const columns = [
render: (h: any, { row }: any) => h('span', describeRoles(row.roles)),
},
{
title: '状态', key: 'disabled', width: 90, align: 'center',
render: (h: any, { row }: any) =>
h('Tag', { color: row.disabled ? 'default' : 'success' },
row.disabled ? '已禁用' : '启用'),
title: '状态', key: 'disabled', width: 130, align: 'center',
render: (h: any, { row }: any) => {
if (row.disabled) return h('Tag', { color: 'default' }, '禁用');
if (row.groupStatus === 1) {
// 正常 Tag + 转出徽标(view-ui-plus Badge status 模式:圆点 + 文本)
return h('div', { style: 'display:inline-flex;align-items:center;gap:6px' }, [
h('Tag', { color: 'success' }, '正常'),
h('Badge', { props: { status: 'warning', text: '转出' } }),
]);
}
return h('Tag', { color: 'success' }, '正常');
},
},
{
title: '排序号', key: 'sortNo', width: 90, align: 'center',