Commit c4931b53 authored by 罗林杰's avatar 罗林杰

修改我申请的数据集

parent e07fc6f2
...@@ -3,11 +3,7 @@ ...@@ -3,11 +3,7 @@
<template #headerContent> <template #headerContent>
<div class="modal_top"> <div class="modal_top">
<div> <div>
<Icon <Icon icon="hugeicons:file-euro" :size="50" :color="'#64c6e9'" />
icon="material-symbols-light:dataset-linked-outline-sharp"
:size="50"
:color="'#64c6e9'"
/>
</div> </div>
<div> <div>
<div class="title">我申请的</div> <div class="title">我申请的</div>
...@@ -23,13 +19,52 @@ ...@@ -23,13 +19,52 @@
</template> </template>
<div class="pt-4 m-4 desc-wrap"> <div class="pt-4 m-4 desc-wrap">
<template v-if="currentKey == '1'"> <template v-if="currentKey == '1'">
<BasicTable @register="registerApplySuccessTable" /> <BasicTable @register="registerApplySuccessTable">
<template #bodyCell="{ column, record }">
<template v-if="column.key === 'action'">
<TableAction
:actions="[
{
label: '详情',
onClick: handleDetail.bind(null, record),
},
]"
/>
</template>
</template>
</BasicTable>
</template> </template>
<template v-if="currentKey == '2'"> <template v-if="currentKey == '2'">
<BasicTable @register="registerApplyTable" /> <BasicTable @register="registerApplyTable">
<template #bodyCell="{ column, record }">
<template v-if="column.key === 'action'">
<TableAction
:actions="[
{
label: '详情',
onClick: handleDetail.bind(null, record),
},
]"
/>
</template>
</template>
</BasicTable>
</template> </template>
<template v-if="currentKey == '3'"> <template v-if="currentKey == '3'">
<BasicTable @register="registerApplyFailedTable" /> <BasicTable @register="registerApplyFailedTable">
<template #bodyCell="{ column, record }">
<template v-if="column.key === 'action'">
<TableAction
:actions="[
{
label: '详情',
onClick: handleDetail.bind(null, record),
},
]"
/>
</template>
</template>
</BasicTable>
</template> </template>
</div> </div>
</PageWrapper> </PageWrapper>
...@@ -42,7 +77,7 @@ ...@@ -42,7 +77,7 @@
import { Tabs } from 'ant-design-vue'; import { Tabs } 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, useTable } from '@/components/Table'; import { BasicTable, TableAction, useTable } from '@/components/Table';
import { import {
applyColumns, applyColumns,
applyFormSchema, applyFormSchema,
...@@ -52,6 +87,7 @@ ...@@ -52,6 +87,7 @@
applyFailedData, applyFailedData,
applySuccessData, applySuccessData,
} from '@/views/mallResourceDevelopment/dataSet/dataSetByApply/datasetByApplyData'; } from '@/views/mallResourceDevelopment/dataSet/dataSetByApply/datasetByApplyData';
import { router } from '@/router';
defineOptions({ name: 'AccountDetail' }); defineOptions({ name: 'AccountDetail' });
...@@ -60,7 +96,7 @@ ...@@ -60,7 +96,7 @@
const ATabPane = Tabs.TabPane; const ATabPane = Tabs.TabPane;
const currentKey = ref('1'); const currentKey = ref('1');
const { setTitle } = useTabs(); const { setTitle } = useTabs();
setTitle('数据集详情'); setTitle('我申请的');
const [registerApplySuccessTable] = useTable({ const [registerApplySuccessTable] = useTable({
dataSource: applySuccessData, dataSource: applySuccessData,
...@@ -71,6 +107,11 @@ ...@@ -71,6 +107,11 @@
schemas: applyFormSchema, schemas: applyFormSchema,
autoSubmitOnEnter: true, autoSubmitOnEnter: true,
}, },
actionColumn: {
width: 120,
title: '操作',
dataIndex: 'action',
},
pagination: true, pagination: true,
showIndexColumn: false, showIndexColumn: false,
}); });
...@@ -84,6 +125,11 @@ ...@@ -84,6 +125,11 @@
schemas: applyFormSchema, schemas: applyFormSchema,
autoSubmitOnEnter: true, autoSubmitOnEnter: true,
}, },
actionColumn: {
width: 120,
title: '操作',
dataIndex: 'action',
},
pagination: true, pagination: true,
showIndexColumn: false, showIndexColumn: false,
}); });
...@@ -97,9 +143,24 @@ ...@@ -97,9 +143,24 @@
schemas: applyFormSchema, schemas: applyFormSchema,
autoSubmitOnEnter: true, autoSubmitOnEnter: true,
}, },
actionColumn: {
width: 120,
title: '操作',
dataIndex: 'action',
},
pagination: true, pagination: true,
showIndexColumn: false, showIndexColumn: false,
}); });
function handleDetail(record: Recordable) {
router.push({
path: '/file/fileByApply/fileByApplyDetail',
query: {
name: record.name,
},
});
}
onMounted(() => {}); onMounted(() => {});
</script> </script>
......
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