修改打印图片

This commit is contained in:
yy2205 2025-05-20 10:45:12 +08:00
parent 545312a655
commit 836fddef3e
2 changed files with 13 additions and 7 deletions

View File

@ -58,6 +58,7 @@ export const processImageApi = {
method: 'post',
url: apiUrl,
data: params,
timeout: 30000,
withCredentials: true
})
return response

View File

@ -15,7 +15,7 @@
}
"
>
<div id="ECGForm_main" class="mycontainer">
<div id="ECGForm_main" class="mycontainer" v-loading="loading">
<div class="myleft-box">
<el-container>
<!--头部 患者信息-->
@ -493,7 +493,6 @@
<el-dialog
title=""
v-if="false"
v-model="isdiagshow"
:fullscreen="true"
append-to-body
@ -603,7 +602,8 @@
</template>
</el-image>
<div v-loading="!imagebase64_new" element-loading-text="加载中...">
<iframe
<el-image :src="imagebase64_new"/>
<!-- <iframe
v-if="true"
id="pdf_view"
name="pdf_view"
@ -611,8 +611,8 @@
frameborder="0"
class="pdf_view"
width="100%"
height="960px"
></iframe>
height="100%"
></iframe>-->
</div>
</div>
</div>
@ -714,6 +714,7 @@ const ECGApply = ref() //申请返修弹窗
const keyid = ref() //ID
const savedisabled = ref(false) //
const isPictureVisible = ref(false) //
const loading = ref(false) //
//
const treeDefaultProps = {
children: 'children',
@ -804,6 +805,8 @@ async function process() {
if (applyFormVO.value.reportstatus === '已分析') {
//
await message.delConfirm('是否进行审核操作', '审核')
loading.value = true
// return
const response = await PatientexamlistApi.examine(keyid.value,Profilevo.value.doctorname,Profilevo.value.doctorID)
if (response) {
@ -819,14 +822,16 @@ async function process() {
data.imagePath = processImageApi.urlToAddress(data.imagePath)
const processResponse = await processImageApi.processImg(data)
// 1. JSON data
const dataObj = JSON.parse(response.data);
const dataObj = JSON.parse(processResponse.data);
// 2. updateSuccess
const updateSuccess = dataObj.updateSuccess;
if (!updateSuccess){
message.warning('诊断图片生成异常')
}
console.log(processResponse)
console.log("processResponse",processResponse)
console.log("updateSuccess",updateSuccess)
console.log("dataObj",dataObj)
await getPatientexamlist(keyid.value)
emit('success')
savedisabled.value = true