修改导出接口

This commit is contained in:
qq787203167
2022-02-25 10:55:10 +08:00
parent 3000360dcb
commit 39b2f1aba4
2 changed files with 61 additions and 59 deletions
+43 -41
View File
@@ -48,15 +48,15 @@
disabled: true, disabled: true,
children: [ children: [
{ title: 'leaf', key: '0-0-0-0' }, { title: 'leaf', key: '0-0-0-0' },
{ title: 'leaf', key: '0-0-0-1' }, { title: 'leaf', key: '0-0-0-1' }
], ]
}, },
{ {
title: 'parent 1-1', title: 'parent 1-1',
key: '0-0-1', key: '0-0-1',
children: [{ key: '0-0-1-0', title: 'zcvc' }], children: [{ key: '0-0-1-0', title: 'zcvc' }]
}, }
], ]
}, { }, {
title: 'parent 1', title: 'parent 1',
key: '0-0', key: '0-0',
@@ -67,15 +67,15 @@
disabled: true, disabled: true,
children: [ children: [
{ title: 'leaf', key: '0-0-0-0' }, { title: 'leaf', key: '0-0-0-0' },
{ title: 'leaf', key: '0-0-0-1' }, { title: 'leaf', key: '0-0-0-1' }
], ]
}, },
{ {
title: 'parent 1-1', title: 'parent 1-1',
key: '0-0-1', key: '0-0-1',
children: [{ key: '0-0-1-0', title: 'zcvc' }], children: [{ key: '0-0-1-0', title: 'zcvc' }]
}, }
], ]
}, { }, {
title: 'parent 1', title: 'parent 1',
key: '0-0', key: '0-0',
@@ -86,15 +86,15 @@
disabled: true, disabled: true,
children: [ children: [
{ title: 'leaf', key: '0-0-0-0' }, { title: 'leaf', key: '0-0-0-0' },
{ title: 'leaf', key: '0-0-0-1' }, { title: 'leaf', key: '0-0-0-1' }
], ]
}, },
{ {
title: 'parent 1-1', title: 'parent 1-1',
key: '0-0-1', key: '0-0-1',
children: [{ key: '0-0-1-0', title: 'zcvc' }], children: [{ key: '0-0-1-0', title: 'zcvc' }]
}, }
], ]
}, { }, {
title: 'parent 1', title: 'parent 1',
key: '0-0', key: '0-0',
@@ -105,15 +105,15 @@
disabled: true, disabled: true,
children: [ children: [
{ title: 'leaf', key: '0-0-0-0' }, { title: 'leaf', key: '0-0-0-0' },
{ title: 'leaf', key: '0-0-0-1' }, { title: 'leaf', key: '0-0-0-1' }
], ]
}, },
{ {
title: 'parent 1-1', title: 'parent 1-1',
key: '0-0-1', key: '0-0-1',
children: [{ key: '0-0-1-0', title: 'zcvc' }], children: [{ key: '0-0-1-0', title: 'zcvc' }]
}, }
], ]
}, { }, {
title: 'parent 1', title: 'parent 1',
key: '0-0', key: '0-0',
@@ -124,15 +124,15 @@
disabled: true, disabled: true,
children: [ children: [
{ title: 'leaf', key: '0-0-0-0' }, { title: 'leaf', key: '0-0-0-0' },
{ title: 'leaf', key: '0-0-0-1' }, { title: 'leaf', key: '0-0-0-1' }
], ]
}, },
{ {
title: 'parent 1-1', title: 'parent 1-1',
key: '0-0-1', key: '0-0-1',
children: [{ key: '0-0-1-0', title: 'zcvc' }], children: [{ key: '0-0-1-0', title: 'zcvc' }]
}, }
], ]
}, { }, {
title: 'parent 1', title: 'parent 1',
key: '0-0', key: '0-0',
@@ -143,15 +143,15 @@
disabled: true, disabled: true,
children: [ children: [
{ title: 'leaf', key: '0-0-0-0' }, { title: 'leaf', key: '0-0-0-0' },
{ title: 'leaf', key: '0-0-0-1' }, { title: 'leaf', key: '0-0-0-1' }
], ]
}, },
{ {
title: 'parent 1-1', title: 'parent 1-1',
key: '0-0-1', key: '0-0-1',
children: [{ key: '0-0-1-0', title: 'zcvc' }], children: [{ key: '0-0-1-0', title: 'zcvc' }]
}, }
], ]
}, { }, {
title: 'parent 1', title: 'parent 1',
key: '0-0', key: '0-0',
@@ -162,21 +162,21 @@
disabled: true, disabled: true,
children: [ children: [
{ title: 'leaf', key: '0-0-0-0' }, { title: 'leaf', key: '0-0-0-0' },
{ title: 'leaf', key: '0-0-0-1' }, { title: 'leaf', key: '0-0-0-1' }
], ]
}, },
{ {
title: 'parent 1-1', title: 'parent 1-1',
key: '0-0-1', key: '0-0-1',
children: [{ key: '0-0-1-0', title: 'zcvc' }], children: [{ key: '0-0-1-0', title: 'zcvc' }]
}, }
], ]
}, }
], ],
autoExpandParent: true, autoExpandParent: true,
expandedKeys: [], expandedKeys: [],
visible: false, visible: false,
confirmLoading:false, confirmLoading: false
} }
}, },
mounted() { mounted() {
@@ -184,10 +184,10 @@
}, },
methods: { methods: {
onSelect(selectedKeys, info) { onSelect(selectedKeys, info) {
console.log('selected', selectedKeys, info); console.log('selected', selectedKeys, info)
}, },
onCheck(checkedKeys, info) { onCheck(checkedKeys, info) {
console.log('onCheck', checkedKeys, info); console.log('onCheck', checkedKeys, info)
}, },
handleCancel() { handleCancel() {
this.visible = false this.visible = false
@@ -197,8 +197,8 @@
}, },
onChange() { onChange() {
}, }
}, }
} }
</script> </script>
@@ -220,6 +220,7 @@
line-height: 38px; line-height: 38px;
} }
.drawer-bootom-button { .drawer-bootom-button {
position: absolute; position: absolute;
bottom: 0; bottom: 0;
@@ -231,6 +232,7 @@
background: #fff; background: #fff;
border-radius: 0 0 2px 2px; border-radius: 0 0 2px 2px;
} }
.drawer-content { .drawer-content {
height: calc(100% - 60px); height: calc(100% - 60px);
overflow: auto; overflow: auto;
@@ -129,7 +129,7 @@
...this.$refs.searchRef.queryParam, ...this.$refs.searchRef.queryParam,
id: this.idList.join(',') id: this.idList.join(',')
} }
downloadFile('document/bussDocumentLibraryEO/exportTemplate', '文档库.xls', query,this.Deselect) downloadFile('document/bussDocumentLibraryEO/exportExcel', '文档库.xls', query,this.Deselect)
}, },
Deselect() { Deselect() {
this.$refs.tableDataRef.selectedRowKeys = [] this.$refs.tableDataRef.selectedRowKeys = []