feat: 优化空间展示和文案

This commit is contained in:
sudoooooo 2024-06-04 18:05:01 +08:00
parent dbf8c4a827
commit a2d75a4ed7
3 changed files with 9 additions and 8 deletions

View File

@ -82,7 +82,7 @@ const handleSelect = (id: string) => {
} }
&.bottom { &.bottom {
border-bottom: 1px solid #e3e4e8; border-bottom: 1px solid #f6f5f2;
} }
&.main-item { &.main-item {
// margin: 10px 0; // margin: 10px 0;
@ -104,12 +104,13 @@ const handleSelect = (id: string) => {
.title-content { .title-content {
display: flex; display: flex;
align-items: center; align-items: center;
font-weight: 400;
} }
} }
:deep(.el-menu-item-group) { :deep(.el-menu-item-group) {
> ul { > ul {
> li { > li {
padding-left: 40px !important; padding-left: 45px !important;
} }
} }
} }
@ -124,7 +125,7 @@ const handleSelect = (id: string) => {
} }
.iconfont { .iconfont {
font-size: 16px; font-size: 16px;
margin-right: 5px; margin-right: 10px;
color: #faa600 !important; color: #faa600 !important;
} }
</style> </style>

View File

@ -47,7 +47,7 @@
class="tool-root-btn-text" class="tool-root-btn-text"
:style="{ width: 50 + 'px' }" :style="{ width: 50 + 'px' }"
@click.stop="handleModify(scope.row._id)" @click.stop="handleModify(scope.row._id)"
>{{ isAdmin(scope.row._id) ? '修改' : '查看' }}</el-button >{{ isAdmin(scope.row._id) ? '管理' : '查看' }}</el-button
> >
<el-button <el-button
text text

View File

@ -16,10 +16,10 @@
@submit.prevent @submit.prevent
:disabled="formDisabled" :disabled="formDisabled"
> >
<el-form-item label="团队名称" prop="name"> <el-form-item label="团队空间名称" prop="name">
<el-input v-model="formModel.name" /> <el-input v-model="formModel.name" />
</el-form-item> </el-form-item>
<el-form-item label="空间描述"> <el-form-item label="团队空间空间描述">
<el-input v-model="formModel.description" /> <el-input v-model="formModel.description" />
</el-form-item> </el-form-item>
<el-form-item label="添加成员" prop="members"> <el-form-item label="添加成员" prop="members">
@ -63,7 +63,7 @@ const props = defineProps({
const ruleForm = shallowRef<any>(null) const ruleForm = shallowRef<any>(null)
const formTitle = computed(() => { const formTitle = computed(() => {
return props.type === QOP_MAP.ADD ? '创建团队' : '修改团队' return props.type === QOP_MAP.ADD ? '创建团队空间' : '管理团队空间'
}) })
const formModel = ref<IWorkspace>({ const formModel = ref<IWorkspace>({
name: '', name: '',
@ -71,7 +71,7 @@ const formModel = ref<IWorkspace>({
members: [] as IMember[] members: [] as IMember[]
}) })
const rules = { const rules = {
name: [{ required: true, message: '请输入团队名称', trigger: 'blur' }], name: [{ required: true, message: '请输入团队空间名称', trigger: 'blur' }],
members: [ members: [
{ {
trigger: 'change', trigger: 'change',