修改导出接口

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
+60 -58
View File
@@ -9,7 +9,7 @@
@close="handleCancel"
:visible="visible"
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">
<a-tree
style="margin-bottom: 60px;height: 600px"
@@ -34,10 +34,10 @@
export default {
name: 'index',
props: ['query', 'value'],
data(){
return{
loading:true,
gData:[
data() {
return {
loading: true,
gData: [
{
title: 'parent 1',
key: '0-0',
@@ -48,16 +48,16 @@
disabled: true,
children: [
{ 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',
key: '0-0-1',
children: [{ key: '0-0-1-0', title: 'zcvc' }],
},
],
}, {
children: [{ key: '0-0-1-0', title: 'zcvc' }]
}
]
}, {
title: 'parent 1',
key: '0-0',
children: [
@@ -67,16 +67,16 @@
disabled: true,
children: [
{ 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',
key: '0-0-1',
children: [{ key: '0-0-1-0', title: 'zcvc' }],
},
],
}, {
children: [{ key: '0-0-1-0', title: 'zcvc' }]
}
]
}, {
title: 'parent 1',
key: '0-0',
children: [
@@ -86,16 +86,16 @@
disabled: true,
children: [
{ 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',
key: '0-0-1',
children: [{ key: '0-0-1-0', title: 'zcvc' }],
},
],
}, {
children: [{ key: '0-0-1-0', title: 'zcvc' }]
}
]
}, {
title: 'parent 1',
key: '0-0',
children: [
@@ -105,16 +105,16 @@
disabled: true,
children: [
{ 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',
key: '0-0-1',
children: [{ key: '0-0-1-0', title: 'zcvc' }],
},
],
}, {
children: [{ key: '0-0-1-0', title: 'zcvc' }]
}
]
}, {
title: 'parent 1',
key: '0-0',
children: [
@@ -124,16 +124,16 @@
disabled: true,
children: [
{ 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',
key: '0-0-1',
children: [{ key: '0-0-1-0', title: 'zcvc' }],
},
],
}, {
children: [{ key: '0-0-1-0', title: 'zcvc' }]
}
]
}, {
title: 'parent 1',
key: '0-0',
children: [
@@ -143,16 +143,16 @@
disabled: true,
children: [
{ 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',
key: '0-0-1',
children: [{ key: '0-0-1-0', title: 'zcvc' }],
},
],
}, {
children: [{ key: '0-0-1-0', title: 'zcvc' }]
}
]
}, {
title: 'parent 1',
key: '0-0',
children: [
@@ -162,43 +162,43 @@
disabled: true,
children: [
{ 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',
key: '0-0-1',
children: [{ key: '0-0-1-0', title: 'zcvc' }],
},
],
},
children: [{ key: '0-0-1-0', title: 'zcvc' }]
}
]
}
],
autoExpandParent: true,
expandedKeys:[],
expandedKeys: [],
visible: false,
confirmLoading:false,
confirmLoading: false
}
},
mounted() {
},
methods:{
methods: {
onSelect(selectedKeys, info) {
console.log('selected', selectedKeys, info);
console.log('selected', selectedKeys, info)
},
onCheck(checkedKeys, info) {
console.log('onCheck', checkedKeys, info);
console.log('onCheck', checkedKeys, info)
},
handleCancel(){
handleCancel() {
this.visible = false
},
handleSubmit(){
handleSubmit() {
},
onChange(){
onChange() {
},
},
}
}
}
</script>
@@ -220,6 +220,7 @@
line-height: 38px;
}
.drawer-bootom-button {
position: absolute;
bottom: 0;
@@ -231,7 +232,8 @@
background: #fff;
border-radius: 0 0 2px 2px;
}
.drawer-content{
.drawer-content {
height: calc(100% - 60px);
overflow: auto;
}
@@ -129,7 +129,7 @@
...this.$refs.searchRef.queryParam,
id: this.idList.join(',')
}
downloadFile('document/bussDocumentLibraryEO/exportTemplate', '文档库.xls', query,this.Deselect)
downloadFile('document/bussDocumentLibraryEO/exportExcel', '文档库.xls', query,this.Deselect)
},
Deselect() {
this.$refs.tableDataRef.selectedRowKeys = []