From 5cde448ee5f8ddd1b3489e6c881583bd9127e2c2 Mon Sep 17 00:00:00 2001 From: awsl <1072050380@qq.com> Date: Mon, 10 Mar 2025 21:20:32 +0800 Subject: [PATCH] update --- .../enterpriseInformation/options/basePage.vue | 14 +++++++++++++- jwtech-admin-page/vue.config.js | 2 +- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/jwtech-admin-page/src/views/marketSupervision/enterpriseInformation/options/basePage.vue b/jwtech-admin-page/src/views/marketSupervision/enterpriseInformation/options/basePage.vue index 03c52687..c56b01f5 100644 --- a/jwtech-admin-page/src/views/marketSupervision/enterpriseInformation/options/basePage.vue +++ b/jwtech-admin-page/src/views/marketSupervision/enterpriseInformation/options/basePage.vue @@ -413,7 +413,7 @@ - + + 下载模板 @@ -683,6 +686,15 @@ export default { }); }, methods: { + downloadTemplate(filename, name){ + let a = document.createElement("a"); + console.log(999, process.env.NODE_ENV); + a.href = "/jgThinking/static/" + filename; + // a.href = "/jgThinking/static/" + filename; + //路径中'/'为根目录,即index.html所在的目录 + a.download = name; + a.click(); + }, // 资质类别字典翻译 enterpriseTypeFormat(row, column) { return this.selectDictLabel( diff --git a/jwtech-admin-page/vue.config.js b/jwtech-admin-page/vue.config.js index 050174ea..670a9356 100644 --- a/jwtech-admin-page/vue.config.js +++ b/jwtech-admin-page/vue.config.js @@ -43,7 +43,7 @@ module.exports = { // target: "http://127.0.0.1:18082", // target: "http://192.168.2.108:18080", // target: "http://192.168.2.103:18082", - target: "http://localhost:18082", + target: "http://192.168.31.26:18082", // target: "http://192.168.2.108:18080", // target: "http://192.168.1.20:8084", changeOrigin: true,