From 690e7ed1d6f80358ba4854909fe33a94bce5eb03 Mon Sep 17 00:00:00 2001 From: yy2205 <2238220225@qq.com> Date: Thu, 5 Jun 2025 09:38:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9111=E8=BF=9E=E9=80=9A101?= =?UTF-8?q?=E7=9A=84=E8=AF=B7=E6=B1=82=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/processImage/index.ts | 19 ++++++++++--------- src/views/ECG/ECGForm.vue | 2 +- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/src/api/processImage/index.ts b/src/api/processImage/index.ts index f546ea7e..f5193d8d 100644 --- a/src/api/processImage/index.ts +++ b/src/api/processImage/index.ts @@ -1,14 +1,15 @@ import axios from 'axios' -// const apiUrl = 'https://zzxmc.gw12320.com/processImage' -const apiUrl = 'https://pacs.gw12320.com/adminecg/admin-api/tblist/ecganalysisparas/rpc-processImage' -const imageAddress = 'F://陕西省咸阳市礼泉县心电图FTP/ecgimage/' -const originImageAddress = 'https://zzxmc.gw12320.com/ecgimage/' -// const apiUrl = 'https://localhost:48080/admin-api/tblist/ecganalysisparas/rpc-processImage' -// const imageAddress = 'F://陕西省咸阳市礼泉县心电图FTP/ecgimage/' -// const originImageAddress = 'https://zzxmc.gw12320.com/ecgimage/' // 超声组件 API export const processImageApi = { + // const apiUrl = 'https://zzxmc.gw12320.com/processImage' + apiUrl222 : 'https://pacs.gw12320.com/adminecg/admin-api/tblist/ecganalysisparas/rpc-processImage', //222服务器 + apiUrl111 : 'http://111.57.76.10:8072/admin-api/tblist/ecganalysisparas/rpc-processImage', //111服务器 + imageAddress : 'F://陕西省咸阳市礼泉县心电图FTP/ecgimage/', + originImageAddress : 'https://zzxmc.gw12320.com/ecgimage/', +// const apiUrl = 'https://localhost:48080/admin-api/tblist/ecganalysisparas/rpc-processImage' +// const imageAddress = 'F://陕西省咸阳市礼泉县心电图FTP/ecgimage/' +// const originImageAddress = 'https://zzxmc.gw12320.com/ecgimage/' // 查询模版表数据 paramsList:{ "礼泉县裴寨卫生院":{ @@ -84,11 +85,11 @@ export const processImageApi = { enableWatermark:1, } }, - processImg: async (params: string) => { + processImg: async (params: string,url=this.apiUrl222) => { try { const response = await axios({ method: 'post', - url: apiUrl, + url: url, data: params, timeout: 30000, withCredentials: true diff --git a/src/views/ECG/ECGForm.vue b/src/views/ECG/ECGForm.vue index 71d48b69..9a77b707 100644 --- a/src/views/ECG/ECGForm.vue +++ b/src/views/ECG/ECGForm.vue @@ -750,7 +750,7 @@ async function process() { data.imagePath = processImageApi.urlToAddress(data.imagePath) // let str = JSON.stringify(data) // let str64 = encodeBase64(str) - const processResponse = await processImageApi.processImg(data) + const processResponse = await processImageApi.processImg(data,processImageApi.apiUrl111) console.log("processResponse",processResponse) // 1. 解析外层 JSON 的 data 字符串