diff --git a/src/views/oneMap/components/dynamicInformation.vue b/src/views/oneMap/components/dynamicInformation.vue index 106d503..c6e09ac 100644 --- a/src/views/oneMap/components/dynamicInformation.vue +++ b/src/views/oneMap/components/dynamicInformation.vue @@ -414,7 +414,13 @@ } // 下载 -function rowDown(data) {} +function rowDown(data) { + const baseURL = + "https://server2.wh-nf.cn:8088/prod-api/business" + + "/warningReleaseDatail/downloadPDFNew?id="; + const fileUrl = `${baseURL}${data.id}`; + window.open(String(fileUrl)); +} onMounted(() => { tableHeader.value = tableHeaderData.value[infoIndex.value]; diff --git a/src/views/oneMap/components/dynamicInformation.vue b/src/views/oneMap/components/dynamicInformation.vue index 106d503..c6e09ac 100644 --- a/src/views/oneMap/components/dynamicInformation.vue +++ b/src/views/oneMap/components/dynamicInformation.vue @@ -414,7 +414,13 @@ } // 下载 -function rowDown(data) {} +function rowDown(data) { + const baseURL = + "https://server2.wh-nf.cn:8088/prod-api/business" + + "/warningReleaseDatail/downloadPDFNew?id="; + const fileUrl = `${baseURL}${data.id}`; + window.open(String(fileUrl)); +} onMounted(() => { tableHeader.value = tableHeaderData.value[infoIndex.value]; diff --git a/vite.config.js b/vite.config.js index 2c7e639..8f0f233 100644 --- a/vite.config.js +++ b/vite.config.js @@ -7,7 +7,7 @@ const Timestamp = new Date().getTime(); //随机时间戳 // const targetUrl = 'http://192.168.48.145:13000'; //张鸿志 -const zhz = 'http://192.168.20.5:13002'; //张鸿志 +// const zhz = 'http://192.168.20.5:13002'; //张鸿志 // const targetUrl = 'http://192.168.16.105:13000'; //张亚辉 const targetUrl = 'https://server2.wh-nf.cn:8088/prod-api'; //线上