修改文件导入

This commit is contained in:
qq787203167
2022-02-25 11:57:29 +08:00
parent d7621fcdc7
commit d29e4ce963
2 changed files with 107 additions and 5 deletions
@@ -24,9 +24,8 @@
<a-icon type="download"/>
模板下载
</div>
<div @click="handleImport" class="operator-text">
<a-icon type="import" :rotate="270"/>
导入
<div class="operator-text">
<ImportFile :url="url"/>
</div>
<div @click="handleAdd" class="operator-text">
<a-icon type="plus"/>
@@ -74,14 +73,17 @@
import libraryPush from '@/components/libraryPush/index'
import { getAction, postAction, deleteAction, downloadFile } from '@/api/manage'
import eventBUs from '../../../common/event'
import { ACCESS_TOKEN } from "@/store/mutation-types"
import ImportFile from '@/components/ImportFile/index'
import Vue from 'vue'
export default {
name: 'docLibrary',
components: {
search,
addForm,
tableData,
libraryPush
libraryPush,
ImportFile
},
data() {
return {
@@ -105,6 +107,7 @@
],
selectedRowKeys: [],
loading: false,
tokenHeader: {'X-Access-Token': Vue.ls.get(ACCESS_TOKEN)},
//url传参严格按照当前命名
url: {
tableHeader: 'document/bussDocumentLibraryEO/getHeader', //表格头部字段
@@ -116,6 +119,7 @@
getDocumentInfo: 'document/bussDocumentLibraryEO/getDocumentInfoById', //查看
deleteBatch: 'document/bussDocumentLibraryEO/deleteBatch', //删除
pullMessage:'document/bussDocumentLibraryEO/pullMessage',//推送
importZipUrl:'document/bussDocumentLibraryEO/importZip',//导入
},
idList: []
}