feat : 项目归档页面初始化

This commit is contained in:
2024-05-17 21:26:15 +08:00
parent 95f4610714
commit 7869ff4e6a
4 changed files with 257 additions and 2 deletions

View File

@@ -0,0 +1,72 @@
<template>
<fvSearchForm :searchConfig="searchConfig" @search="search"></fvSearchForm>
<el-card style="width: 100%">
<file-upload @getFile="getOtherFile" :showFileList="true"/>
<fvTable style="width: 100%;max-height: 250px" v-if="showTable" :tableConfig="tableConfig"
:data="otherFileList" :isSettingCol="false" :pagination="false">
<template #empty>
<el-empty :image-size="90" description="暂无数据" style="padding: 0"/>
</template>
</fvTable>
</el-card>
</template>
<script setup lang="jsx">
const searchConfig = reactive([
{
label: '关键词',
prop: 'collectType',
component: 'el-input',
props: {
placeholder: '请输入',
clearable: true,
filterable: true,
}
}
])
const tableConfig = reactive({
columns: [
{
prop: 'originalFileName',
label: '附件名称',
align: 'center',
},
{
prop: 'tag',
label: '自定义标签',
align: 'center'
},
{
prop: 'tag',
label: '内置标签',
align: 'center'
},
{
prop: 'tag',
label: '上传时间',
align: 'center'
},
{
prop: 'oper',
label: '操作',
align: 'center',
currentRender: ({row, index}) => {
return (
<div>
<a style="cursor: pointer;font-size: 14px;color: #2a99ff;" href={row.url}>下载</a>
</div>
)
}
}
]
})
const showTable=ref(true)
const otherFileList = ref([])
const getOtherFile = () => {
}
</script>
<style scoped>
</style>