调整
This commit is contained in:
@@ -15,9 +15,8 @@
|
||||
:columns="columns"
|
||||
>
|
||||
<template #bodyCell="{ column, record, index }">
|
||||
<template v-if="column.key === 'role'">
|
||||
<a-tag color="green" v-if="record.role === 10">可见成员</a-tag>
|
||||
<a-tag color="orange" v-if="record.role === 20">项目联系人</a-tag>
|
||||
<template v-if="column.key === 'level'">
|
||||
<a-tag color="orange" v-if="record.user && record.user.userLevel">{{ USER_LEVEL_LIST[record.user.userLevel] }}</a-tag>
|
||||
</template>
|
||||
<template v-if="column.key === 'action'">
|
||||
<a-space>
|
||||
@@ -34,7 +33,7 @@
|
||||
import type { ColumnsType } from 'ant-design-vue/es/table';
|
||||
import { ProjectUser } from '@/api/tower/project/user/model';
|
||||
import { removeProjectUser } from '@/api/tower/project/user';
|
||||
import { User } from '@/api/system/user/model';
|
||||
import { User, USER_LEVEL_LIST } from "@/api/system/user/model";
|
||||
import { message } from 'ant-design-vue';
|
||||
|
||||
const props = withDefaults(
|
||||
@@ -65,8 +64,7 @@
|
||||
{
|
||||
title: '类型',
|
||||
align: 'center',
|
||||
dataIndex: 'role',
|
||||
key: 'role'
|
||||
key: 'level'
|
||||
},
|
||||
{
|
||||
title: '所在部门',
|
||||
|
||||
Reference in New Issue
Block a user