修改跨域调用,转换调用套壳api,修改逻辑
This commit is contained in:
parent
80764d6f76
commit
b9dcee834c
@ -12,7 +12,7 @@ export const processImageApi = {
|
||||
startY:100,
|
||||
height:400,
|
||||
width:900,
|
||||
options:{watermarkFontSize:40,enableAreaCover:true}
|
||||
options:{watermarkFontSize:40,enableAreaCover:true,enableOcr:false}
|
||||
},{}],
|
||||
processImg: async (params: any) => {
|
||||
try {
|
||||
@ -35,16 +35,16 @@ export const processImageApi = {
|
||||
}
|
||||
console.log(imageAddress)
|
||||
const str = url.replace(originImageAddress,imageAddress)
|
||||
console.log(str)
|
||||
// console.log(str)
|
||||
return str;
|
||||
},
|
||||
addressToUrl:(address)=>{
|
||||
if (!address){
|
||||
return
|
||||
}
|
||||
console.log(imageAddress)
|
||||
// console.log(imageAddress)
|
||||
const str = address.replace(imageAddress,originImageAddress)
|
||||
console.log(str)
|
||||
// console.log(str)
|
||||
return str;
|
||||
}
|
||||
}
|
||||
|
@ -801,17 +801,6 @@ const open = async (row: any) => {
|
||||
}
|
||||
//审核功能
|
||||
async function process() {
|
||||
let data = Object.assign({},processImageApi.paramsList[0])
|
||||
// data.imagePath = "F:\\陕西省咸阳市礼泉县心电图FTP\\ecgimage\\北屯中心卫生院\\K021180213001N0003_20250418161404.jpg"
|
||||
data.imagePath = queryParams.value.ecgJsonDataFilePath
|
||||
// data.imagePath = "https://zzxmc.gw12320.com/ecgimage/%E5%8C%97%E5%B1%AF%E4%B8%AD%E5%BF%83%E5%8D%AB%E7%94%9F%E9%99%A2/K021180213001N0003_20250418162136.jpg"
|
||||
data.examId = rowinfo.value.examId
|
||||
data.orgId = rowinfo.value.orgId
|
||||
data.watermarkText = "诊断结果:\n"+ queryParams.value.doctorDiagResult
|
||||
console.log(data)
|
||||
data.imagePath = processImageApi.urlToAddress(data.imagePath)
|
||||
const processResponse = await processImageApi.processImg(data)
|
||||
console.log(processResponse)
|
||||
if (applyFormVO.value.reportstatus === '已分析') {
|
||||
// 审核确认
|
||||
await message.delConfirm('是否进行审核操作', '审核')
|
||||
@ -819,6 +808,20 @@ async function process() {
|
||||
|
||||
if (response) {
|
||||
message.alertSuccess('审核成功')
|
||||
let data = Object.assign({},processImageApi.paramsList[0])
|
||||
// data.imagePath = "F:\\陕西省咸阳市礼泉县心电图FTP\\ecgimage\\北屯中心卫生院\\K021180213001N0003_20250418161404.jpg"
|
||||
data.imagePath = queryParams.value.ecgJsonDataFilePath
|
||||
// data.imagePath = "https://zzxmc.gw12320.com/ecgimage/%E5%8C%97%E5%B1%AF%E4%B8%AD%E5%BF%83%E5%8D%AB%E7%94%9F%E9%99%A2/K021180213001N0003_20250418162136.jpg"
|
||||
data.examId = rowinfo.value.examId
|
||||
data.orgId = rowinfo.value.orgId
|
||||
data.watermarkText = "诊断结果:\n"+ queryParams.value.doctorDiagResult
|
||||
// console.log(data)
|
||||
data.imagePath = processImageApi.urlToAddress(data.imagePath)
|
||||
const processResponse = await processImageApi.processImg(data)
|
||||
if (!processResponse.data.updateSuccess){
|
||||
message.warning('诊断图片生成异常')
|
||||
}
|
||||
console.log(processResponse)
|
||||
await getPatientexamlist(keyid.value)
|
||||
emit('success')
|
||||
savedisabled.value = true
|
||||
|
Loading…
Reference in New Issue
Block a user