diff --git a/src/api/globals.d.ts b/src/api/globals.d.ts index c6676b3..09c218d 100644 --- a/src/api/globals.d.ts +++ b/src/api/globals.d.ts @@ -319,6 +319,7 @@ export interface SysUserVo { disabled?: number; type?: number; sortNo?: number; + groupStatus?: number; expired?: boolean; createTime?: string; updateTime?: string; diff --git a/src/views/group-user/index.vue b/src/views/group-user/index.vue index c11deed..9260b38 100644 --- a/src/views/group-user/index.vue +++ b/src/views/group-user/index.vue @@ -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',