修改文件列表
This commit is contained in:
parent
5007d6a6e5
commit
c357ec7e38
|
@ -120,8 +120,9 @@
|
|||
rowKey="id"
|
||||
:columns="columns"
|
||||
class="fileTable"
|
||||
:pagination="false"
|
||||
:scroll="{ x:false,y:tableScrollY }"
|
||||
:dataSource="dataSource"
|
||||
:pagination="searchFileTable"
|
||||
:loading="loading"
|
||||
@change="handleTableChange"
|
||||
>
|
||||
|
@ -158,6 +159,7 @@ export default {
|
|||
selectedKeys: [],
|
||||
treeData: [],
|
||||
isopen: false,
|
||||
tableScrollY: 0,
|
||||
columns: [
|
||||
{
|
||||
title: '序号',
|
||||
|
@ -169,7 +171,6 @@ export default {
|
|||
align: 'center',
|
||||
dataIndex: 'fileName',
|
||||
width: 120,
|
||||
sorter: true,
|
||||
},
|
||||
{
|
||||
title: '文件后缀',
|
||||
|
@ -204,18 +205,6 @@ export default {
|
|||
width: 170,
|
||||
},
|
||||
],
|
||||
/* 分页参数 */
|
||||
searchFileTable: {
|
||||
current: 1,
|
||||
pageSize: 10,
|
||||
pageSizeOptions: ['5', '10', '20', '50', '100'],
|
||||
showTotal: (total, range) => {
|
||||
return range[0] + '-' + range[1] + ' 共' + total + '条'
|
||||
},
|
||||
showQuickJumper: true,
|
||||
showSizeChanger: true,
|
||||
total: 0,
|
||||
},
|
||||
dataSource: [],
|
||||
loading: false,
|
||||
selectedRowKeys: [],
|
||||
|
@ -242,9 +231,16 @@ export default {
|
|||
mounted() {
|
||||
this.getDirList()
|
||||
this.getcountFileNum()
|
||||
this.calculateScrollY();
|
||||
},
|
||||
computed: {},
|
||||
methods: {
|
||||
calculateScrollY() {
|
||||
// 获取父容器高度(需减去表格内其他元素的高度,如分页栏)
|
||||
const container = this.$refs.tableContainer;
|
||||
const paginationHeight = 64; // 根据实际分页栏高度调整
|
||||
this.tableScrollY = container.clientHeight - paginationHeight;
|
||||
},
|
||||
clickfile() {
|
||||
if (this.selectId.length <= 0) {
|
||||
this.$message.warning('必须选择文件上传目录')
|
||||
|
@ -427,6 +423,9 @@ export default {
|
|||
</script>
|
||||
|
||||
<style scoped>
|
||||
/deep/ .ant-table-bordered .ant-table-header > table {
|
||||
border: none !important;
|
||||
}
|
||||
.menu {
|
||||
background: #ffffff !important;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user