|
@@ -298,7 +298,7 @@
|
|
|
:on-error="handleUploadError"
|
|
|
:on-success="handleUploadSuccess"
|
|
|
:on-change="handleChange"
|
|
|
- :limit="20"
|
|
|
+ :limit="5"
|
|
|
accept=".zip"
|
|
|
:file-list="fileList"
|
|
|
:show-file-list="true"
|
|
@@ -321,6 +321,7 @@ import {
|
|
|
updatePcsj,
|
|
|
tiffUpload,
|
|
|
listDept,
|
|
|
+ downloadPcsjUrl,
|
|
|
} from "@/api/supervise/pcsj";
|
|
|
import Treeselect from "@riophae/vue-treeselect";
|
|
|
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
|
@@ -487,8 +488,15 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
handleDownload(row) {
|
|
|
- const zipfile = row.proxypath + ".zip";
|
|
|
- window.open(`${zipfile}`);
|
|
|
+ downloadPcsjUrl(row.id).then((response) => {
|
|
|
+ const p_len = row.proxypath.indexOf("spotfile");
|
|
|
+ const p_str = row.proxypath.slice(0,p_len);
|
|
|
+ const p_url = process.env.VUE_APP_BASE_API + "/file/spot/download/shp/file/"+row.id+"/"+response.data;
|
|
|
+ const port = window.location.port || this.getDefaultPort();
|
|
|
+ const p_url_str = window.location.protocol + "//"+window.location.hostname + ":"+port+ p_url;
|
|
|
+ console.log("url:",p_url_str)
|
|
|
+ window.open(`${p_url_str}`);
|
|
|
+ });
|
|
|
},
|
|
|
/** 查询监管批次数据列表 */
|
|
|
getList() {
|