修改导出接口

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
+54 -52
View File
@@ -9,7 +9,7 @@
@close="handleCancel" @close="handleCancel"
:visible="visible" :visible="visible"
style="height: 100%;overflow: auto;padding-bottom: 53px;"> style="height: 100%;overflow: auto;padding-bottom: 53px;">
<a-input-search style="margin-bottom: 8px" placeholder="Search" @change="onChange" /> <a-input-search style="margin-bottom: 8px" placeholder="Search" @change="onChange"/>
<div class="drawer-content"> <div class="drawer-content">
<a-tree <a-tree
style="margin-bottom: 60px;height: 600px" style="margin-bottom: 60px;height: 600px"
@@ -34,10 +34,10 @@
export default { export default {
name: 'index', name: 'index',
props: ['query', 'value'], props: ['query', 'value'],
data(){ data() {
return{ return {
loading:true, loading: true,
gData:[ gData: [
{ {
title: 'parent 1', title: 'parent 1',
key: '0-0', key: '0-0',
@@ -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,43 +162,43 @@
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() {
}, },
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
}, },
handleSubmit(){ handleSubmit() {
}, },
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,7 +232,8 @@
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 = []