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

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

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