Commit 4b5b5dae authored by LiXuyang's avatar LiXuyang

api-外样式

parent 7b2a4100
...@@ -36,7 +36,7 @@ export const applyColumns: BasicColumn[] = [ ...@@ -36,7 +36,7 @@ export const applyColumns: BasicColumn[] = [
export const applyFormSchema: FormSchema[] = [ export const applyFormSchema: FormSchema[] = [
{ {
field: 'name', field: 'name',
label: ' ', label: '',
component: 'Input', component: 'Input',
componentProps: { componentProps: {
placeholder: '搜索资源名称', placeholder: '搜索资源名称',
......
<template> <template>
<PageWrapper class="content-padding" contentBackground> <PageWrapper dense contentBackground headerSticky>
<template #headerContent> <template #headerContent>
<div class="header"> <div class="header">
<Icon icon="hugeicons:file-euro" class="h-icon" :color="'#6499e9'" /> <Icon icon="hugeicons:file-euro" class="h-icon" :color="'#6499e9'" />
...@@ -8,81 +8,75 @@ ...@@ -8,81 +8,75 @@
</div> </div>
</div> </div>
</template> </template>
<template #footer> <!-- <template #extra></template>-->
<a-tabs v-model:activeKey="currentKey"> <div class="h-full" style="padding: 0 25px">
<a-tab-pane key="1" tab="申请成功" /> <Tabs v-model:activeKey="currentKey">
<a-tab-pane key="2" tab="申请中" /> <TabPane key="1" tab="申请成功">
<a-tab-pane key="3" tab="申请失败" /> <BasicTable @register="registerApplySuccessTable">
</a-tabs> <template #bodyCell="{ column, record }">
</template> <template v-if="column.key === 'action'">
<div class="pt-4 m-4 desc-wrap"> <TableAction
<template v-if="currentKey == '1'"> :actions="[
<BasicTable @register="registerApplySuccessTable"> {
<template #bodyCell="{ column, record }"> label: '详情',
<template v-if="column.key === 'action'"> onClick: handleDetail.bind(null, record),
<TableAction },
:actions="[ ]"
{ />
label: '详情', </template>
onClick: handleDetail.bind(null, record),
},
]"
/>
</template> </template>
</template> </BasicTable>
</BasicTable> </TabPane>
</template> <TabPane key="2" tab="申请中">
<template v-if="currentKey == '2'"> <BasicTable @register="registerApplyTable">
<BasicTable @register="registerApplyTable"> <template #bodyCell="{ column, record }">
<template #bodyCell="{ column, record }"> <template v-if="column.key === 'action'">
<template v-if="column.key === 'action'"> <TableAction
<TableAction :actions="[
:actions="[ {
{ label: '详情',
label: '详情', onClick: handleDetail.bind(null, record),
onClick: handleDetail.bind(null, record), },
}, ]"
]" />
/> </template>
</template> </template>
</template> </BasicTable>
</BasicTable> </TabPane>
</template> <TabPane key="3" tab="申请失败">
<template v-if="currentKey == '3'"> <BasicTable @register="registerApplyFailedTable">
<BasicTable @register="registerApplyFailedTable"> <template #bodyCell="{ column, record }">
<template #bodyCell="{ column, record }"> <template v-if="column.key === 'action'">
<template v-if="column.key === 'action'"> <TableAction
<TableAction :actions="[
:actions="[ {
{ label: '详情',
label: '详情', onClick: handleDetail.bind(null, record),
onClick: handleDetail.bind(null, record), },
}, ]"
]" />
/> </template>
</template> </template>
</template> </BasicTable>
</BasicTable> </TabPane>
</template> </Tabs>
</div> </div>
</PageWrapper> </PageWrapper>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { onMounted, ref } from 'vue'; import { onMounted, ref } from 'vue';
import { PageWrapper } from '@/components/Page'; import PageWrapper from '@/components/Page/src/PageWrapper.vue';
import { useTabs } from '@/hooks/web/useTabs'; import { useTabs } from '@/hooks/web/useTabs';
import { Tabs } from 'ant-design-vue'; import { Tabs, TabPane } from 'ant-design-vue';
import { useMessage } from '@/hooks/web/useMessage'; import { useMessage } from '@/hooks/web/useMessage';
import Icon from '@/components/Icon/Icon.vue'; import Icon from '@/components/Icon/Icon.vue';
import { BasicTable, TableAction, useTable } from '@/components/Table'; import { BasicTable, useTable, TableAction } from '@/components/Table';
import { applyColumns, applyFormSchema } from './data'; import { applyColumns, applyFormSchema } from './data';
import { applyData, applyFailedData, applySuccessData } from './apiByApplyData'; import { applyData, applyFailedData, applySuccessData } from './apiByApplyData';
import { router } from '@/router'; import { router } from '@/router';
const { createMessage } = useMessage(); const { createMessage } = useMessage();
const ATabs = Tabs;
const ATabPane = Tabs.TabPane;
const currentKey = ref('1'); const currentKey = ref('1');
const { setTitle } = useTabs(); const { setTitle } = useTabs();
setTitle('我申请的'); setTitle('我申请的');
...@@ -101,7 +95,6 @@ ...@@ -101,7 +95,6 @@
title: '操作', title: '操作',
dataIndex: 'action', dataIndex: 'action',
}, },
pagination: true,
showIndexColumn: false, showIndexColumn: false,
}); });
...@@ -119,7 +112,6 @@ ...@@ -119,7 +112,6 @@
title: '操作', title: '操作',
dataIndex: 'action', dataIndex: 'action',
}, },
pagination: true,
showIndexColumn: false, showIndexColumn: false,
}); });
...@@ -137,7 +129,6 @@ ...@@ -137,7 +129,6 @@
title: '操作', title: '操作',
dataIndex: 'action', dataIndex: 'action',
}, },
pagination: true,
showIndexColumn: false, showIndexColumn: false,
}); });
...@@ -158,26 +149,7 @@ ...@@ -158,26 +149,7 @@
.content-padding { .content-padding {
background-color: white; background-color: white;
} }
.modal_top {
display: flex;
align-items: center;
.title {
font-size: 25px;
font-weight: 500;
margin-left: 10px;
margin-top: 20px;
}
.path {
font-size: 14px;
color: gray;
}
.buttonGroup {
margin-left: auto;
display: flex;
gap: 5px;
align-items: center;
}
}
.selected-row { .selected-row {
background-color: #5cb3ff; /* 可以根据需要调整颜色 */ background-color: #5cb3ff; /* 可以根据需要调整颜色 */
} }
...@@ -198,4 +170,7 @@ ...@@ -198,4 +170,7 @@
font-size: 12px; font-size: 12px;
} }
} }
//:deep(.vben-basic-table-form-container) {
// padding: 0;
//}
</style> </style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment