提交 6ab6928c authored 作者: 龙菲's avatar 龙菲

fix:修复文物导出和展览导出的问题

上级 cff1c905
<template> <template>
<div class="app-container"> <div class="app-container" v-loading="loading">
<div class="top-bar"> <div class="top-bar">
<SearchBar :config="searchConfig" @search="search" @reset="reset" /> <SearchBar :config="searchConfig" @search="search" @reset="reset" />
</div> </div>
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
type="primary" type="primary"
@click.native="handleOperation({ type: 'downloadTemplate' })" @click.native="handleOperation({ type: 'downloadTemplate' })"
icon="el-icon-download" icon="el-icon-download"
:disabled="loading"
> >
下载导入模板</el-button 下载导入模板</el-button
> >
...@@ -358,13 +359,15 @@ export default { ...@@ -358,13 +359,15 @@ export default {
//下载批量导入模板 //下载批量导入模板
handleDownloadTemplate() { handleDownloadTemplate() {
this.loading = true
let a = document.createElement("a"); let a = document.createElement("a");
a.href = "./static/文物导入模板及操作说明.zip"; a.href = '/files/zip/crImportTemplate.zip'
a.download = "文物导入模板及操作说明.zip"; a.download = "文物导入模板及操作说明.zip";
a.style.display = "none"; a.style.display = "none";
document.body.appendChild(a); document.body.appendChild(a);
a.click(); a.click();
a.remove(); a.remove();
this.loading = false
}, },
// // 文件个数超出 // // 文件个数超出
......
<template> <template>
<div class="app-container"> <div class="app-container" v-loading="loading">
<div class="top-bar"> <div class="top-bar">
<SearchBar :config="searchConfig" @search="search" @reset="reset" /> <SearchBar :config="searchConfig" @search="search" @reset="reset" />
<!-- <el-button <!-- <el-button
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
</div> </div>
<div class="tools"> <div class="tools">
<div class="tools-item"> <div class="tools-item">
<el-button type="primary" @click.native="handleOperation({ type: 'downloadTemplate' })" icon="el-icon-download"> <el-button :disabled="loading" type="primary" @click.native="handleOperation({ type: 'downloadTemplate' })" icon="el-icon-download">
下载导入模板</el-button> 下载导入模板</el-button>
<el-button type="primary" @click.native="handleOperation({ type: 'viewImportRecord' })" icon="el-icon-document"> <el-button type="primary" @click.native="handleOperation({ type: 'viewImportRecord' })" icon="el-icon-document">
...@@ -371,13 +371,15 @@ export default { ...@@ -371,13 +371,15 @@ export default {
//下载批量导入模板 //下载批量导入模板
handleDownloadTemplate() { handleDownloadTemplate() {
this.loading = true
let a = document.createElement("a"); let a = document.createElement("a");
a.href = "./static/展览导入模板.zip"; a.href = '/files/zip/displayImportTemplate.zip'
a.download = "展览整量导入模板.zip"; a.download = "展览整量导入模板.zip";
a.style.display = "none"; a.style.display = "none";
document.body.appendChild(a); document.body.appendChild(a);
a.click(); a.click();
a.remove(); a.remove();
this.loading = false
}, },
uploadSelf(file, index) { uploadSelf(file, index) {
......
...@@ -40,20 +40,16 @@ module.exports = { ...@@ -40,20 +40,16 @@ module.exports = {
}, },
proxy: { proxy: {
'/api': { '/api': {
// target: 'http://172.24.100.109:8080/',
// target:'http://172.24.100.46:8080',
// target:'http://222.85.214.245:9603/api',
// target:'http://192.168.1.230:9603/api',
target: 'http://114.115.157.218:9603/api',//生产 target: 'http://114.115.157.218:9603/api',//生产
// target:'http://192.168.1.230:9603/api',//公司服务器
changeOrigin: true, changeOrigin: true,
pathRewrite: { pathRewrite: {
'^/api': '' '^/api': ''
} }
}, },
'/files': { '/files': {
// target: 'http://192.168.1.230:9604/files',
// target: 'http://222.85.214.245:9604/files',
target: 'http://114.115.157.218:9603/files',//生产 target: 'http://114.115.157.218:9603/files',//生产
// target: 'http://192.168.1.230:9603/files',//公司服务器
changeOrigin: true, changeOrigin: true,
pathRewrite: { pathRewrite: {
'^/files': '' '^/files': ''
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论