对接导出
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
<template>
|
||||
<a-card :bordered="false">
|
||||
<div class="table-page-search-wrapper">
|
||||
<search :flag="'1'" :url="url"/>
|
||||
<search ref="searchRef" :flag="'1'" :url="url"/>
|
||||
</div>
|
||||
<div class="table-operator">
|
||||
<div @click="handleDel" class="operator-text">
|
||||
<a-icon type="delete" />
|
||||
<a-icon type="delete"/>
|
||||
批量删除
|
||||
</div>
|
||||
<div @click="handleExport" class="operator-text">
|
||||
@@ -13,23 +13,23 @@
|
||||
数据导出
|
||||
</div>
|
||||
<div @click="handleFileExport" class="operator-text">
|
||||
<a-icon type="mail" />
|
||||
<a-icon type="mail"/>
|
||||
带文件导出
|
||||
</div>
|
||||
<div @click="handleCompare" class="operator-text">
|
||||
<a-icon type="rocket" :rotate="45" />
|
||||
<a-icon type="rocket" :rotate="45"/>
|
||||
推送
|
||||
</div>
|
||||
<div @click="handleModule" class="operator-text">
|
||||
<a-icon type="download" />
|
||||
<a-icon type="download"/>
|
||||
模板下载
|
||||
</div>
|
||||
<div @click="handleModule" class="operator-text">
|
||||
<a-icon type="import" :rotate="270" />
|
||||
<div @click="handleImport" class="operator-text">
|
||||
<a-icon type="import" :rotate="270"/>
|
||||
导入
|
||||
</div>
|
||||
<div @click="handleAdd" class="operator-text">
|
||||
<a-icon type="plus" />
|
||||
<a-icon type="plus"/>
|
||||
{{$t('add')}}
|
||||
</div>
|
||||
</div>
|
||||
@@ -58,9 +58,9 @@
|
||||
:url="url"
|
||||
:flag="'1'"
|
||||
/>
|
||||
<frameAssembly
|
||||
<libraryPush
|
||||
:url="url"
|
||||
ref="frameAssemblyRef"
|
||||
ref="libraryPushRef"
|
||||
/>
|
||||
|
||||
</a-card>
|
||||
@@ -70,8 +70,8 @@
|
||||
import search from '@/components/search/index'
|
||||
import tableData from '@/components/tableDate/index'
|
||||
import addForm from './modules/addForm'
|
||||
import frameAssembly from '@/components/frameAssembly/index'
|
||||
import { getAction, postAction, deleteAction } from '@/api/manage'
|
||||
import libraryPush from '@/components/libraryPush/index'
|
||||
import { getAction, postAction, deleteAction, downloadFile } from '@/api/manage'
|
||||
import eventBUs from '../../../common/event'
|
||||
|
||||
export default {
|
||||
@@ -80,17 +80,17 @@
|
||||
search,
|
||||
addForm,
|
||||
tableData,
|
||||
frameAssembly
|
||||
libraryPush
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
OperationList: [
|
||||
{
|
||||
text: '收藏',
|
||||
text: '取消收藏',
|
||||
ClickEvent: 'Collection'
|
||||
},
|
||||
{
|
||||
text: '订阅',
|
||||
text: '取消订阅',
|
||||
ClickEvent: 'subscribe'
|
||||
},
|
||||
{
|
||||
@@ -122,21 +122,31 @@
|
||||
|
||||
},
|
||||
methods: {
|
||||
onSelectChange() {
|
||||
|
||||
},
|
||||
//导出
|
||||
handleExport() {
|
||||
|
||||
let query = {
|
||||
...this.$refs.searchRef.queryParam,
|
||||
id:this.idList.join(',')
|
||||
}
|
||||
downloadFile('document/bussDocumentLibraryEO/exportTemplate', '文档库.xls', query)
|
||||
},
|
||||
//带文件导出
|
||||
handleFileExport() {
|
||||
|
||||
let query = {
|
||||
...this.$refs.searchRef.queryParam,
|
||||
id:this.idList.join(',')
|
||||
}
|
||||
downloadFile('document/bussDocumentLibraryEO/exportZip', '文档库.zip', query)
|
||||
},
|
||||
//新增
|
||||
handleAdd() {
|
||||
this.$refs.addFormRef.add()
|
||||
},
|
||||
//下载模板
|
||||
handleModule() {
|
||||
|
||||
downloadFile('document/bussDocumentLibraryEO/exportTemplate', '文档库.xls', {})
|
||||
},
|
||||
//批量删除
|
||||
handleDel() {
|
||||
if (this.idList.length > 0) {
|
||||
let _this = this
|
||||
@@ -158,13 +168,14 @@
|
||||
this.$message.warning('请选择需要删除的数据')
|
||||
}
|
||||
},
|
||||
//推送
|
||||
handleCompare() {
|
||||
this.$nextTick(() => {
|
||||
this.$refs.frameAssemblyRef.visible = true
|
||||
this.$refs.libraryPushRef.visible = true
|
||||
})
|
||||
// this.$refs.addFormRef.add()
|
||||
},
|
||||
handleFileImport() {
|
||||
//导入
|
||||
handleImport(){
|
||||
|
||||
},
|
||||
//编辑按钮
|
||||
@@ -234,17 +245,17 @@
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
//选中的id
|
||||
onSelectChange(value) {
|
||||
this.idList = value
|
||||
},
|
||||
|
||||
//处理列表中的点击事件
|
||||
detailClick(item) {
|
||||
this.$router.push({
|
||||
path: '/docManage/library/detail',
|
||||
query: item
|
||||
})
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user