修改导出接口
This commit is contained in:
@@ -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,16 +48,16 @@
|
|||||||
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',
|
||||||
children: [
|
children: [
|
||||||
@@ -67,16 +67,16 @@
|
|||||||
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',
|
||||||
children: [
|
children: [
|
||||||
@@ -86,16 +86,16 @@
|
|||||||
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',
|
||||||
children: [
|
children: [
|
||||||
@@ -105,16 +105,16 @@
|
|||||||
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',
|
||||||
children: [
|
children: [
|
||||||
@@ -124,16 +124,16 @@
|
|||||||
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',
|
||||||
children: [
|
children: [
|
||||||
@@ -143,16 +143,16 @@
|
|||||||
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',
|
||||||
children: [
|
children: [
|
||||||
@@ -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 = []
|
||||||
|
|||||||
Reference in New Issue
Block a user