@@ -13,23 +13,23 @@
数据导出
-
@@ -58,9 +58,9 @@
:url="url"
:flag="'1'"
/>
-
@@ -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
})
- },
+ }
}
}