mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-25 09:49:20 +08:00
feat: 优化可两栏布局的页面都改成两栏
This commit is contained in:
@@ -17,6 +17,7 @@ import {
|
||||
} from '#/api/company';
|
||||
import CompanyMenuDrawer from '#/components/CompanyMenuDrawer.vue';
|
||||
import CompanyPermissionDrawer from '#/components/CompanyPermissionDrawer.vue';
|
||||
import CompanyLogoAvatar from '#/views/company/components/CompanyLogoAvatar.vue';
|
||||
|
||||
import CompanyFormModal from './components/CompanyFormModal.vue';
|
||||
|
||||
@@ -53,6 +54,12 @@ const gridOptions: VxeGridProps<any> = {
|
||||
minWidth: 'auto',
|
||||
title: '序号',
|
||||
},
|
||||
{
|
||||
title: 'Logo',
|
||||
width: 72,
|
||||
align: 'center' as const,
|
||||
slots: { default: 'logo' },
|
||||
},
|
||||
{
|
||||
field: 'name',
|
||||
title: '公司名称',
|
||||
@@ -81,11 +88,6 @@ const gridOptions: VxeGridProps<any> = {
|
||||
minWidth: 200,
|
||||
showOverflow: 'tooltip' as const,
|
||||
},
|
||||
{
|
||||
title: 'Logo',
|
||||
minWidth: 100,
|
||||
slots: { default: 'logo' },
|
||||
},
|
||||
{
|
||||
title: '状态',
|
||||
minWidth: 100,
|
||||
@@ -341,20 +343,10 @@ gridReloadRef.value = () => gridApi.reload();
|
||||
</template>
|
||||
|
||||
<!-- Logo列 -->
|
||||
<template #logo="{ row }: { row: any }">
|
||||
<div v-if="row.logo">
|
||||
<img
|
||||
:src="row.logo"
|
||||
:alt="row.name"
|
||||
style="
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
object-fit: cover;
|
||||
border-radius: 4px;
|
||||
"
|
||||
/>
|
||||
<template #logo="{ row }: { row: CompanyVO.CompanyInfoVO }">
|
||||
<div class="flex items-center justify-center">
|
||||
<CompanyLogoAvatar :logo="row.logo" :name="row.name" :size="40" />
|
||||
</div>
|
||||
<span v-else style="color: #999">暂无Logo</span>
|
||||
</template>
|
||||
|
||||
<!-- 状态列 -->
|
||||
|
||||
Reference in New Issue
Block a user