修改打印图片
This commit is contained in:
parent
545312a655
commit
836fddef3e
@ -58,6 +58,7 @@ export const processImageApi = {
|
|||||||
method: 'post',
|
method: 'post',
|
||||||
url: apiUrl,
|
url: apiUrl,
|
||||||
data: params,
|
data: params,
|
||||||
|
timeout: 30000,
|
||||||
withCredentials: true
|
withCredentials: true
|
||||||
})
|
})
|
||||||
return response
|
return response
|
||||||
|
|||||||
@ -15,7 +15,7 @@
|
|||||||
}
|
}
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
<div id="ECGForm_main" class="mycontainer">
|
<div id="ECGForm_main" class="mycontainer" v-loading="loading">
|
||||||
<div class="myleft-box">
|
<div class="myleft-box">
|
||||||
<el-container>
|
<el-container>
|
||||||
<!--头部 患者信息-->
|
<!--头部 患者信息-->
|
||||||
@ -493,7 +493,6 @@
|
|||||||
|
|
||||||
<el-dialog
|
<el-dialog
|
||||||
title=""
|
title=""
|
||||||
v-if="false"
|
|
||||||
v-model="isdiagshow"
|
v-model="isdiagshow"
|
||||||
:fullscreen="true"
|
:fullscreen="true"
|
||||||
append-to-body
|
append-to-body
|
||||||
@ -603,7 +602,8 @@
|
|||||||
</template>
|
</template>
|
||||||
</el-image>
|
</el-image>
|
||||||
<div v-loading="!imagebase64_new" element-loading-text="加载中...">
|
<div v-loading="!imagebase64_new" element-loading-text="加载中...">
|
||||||
<iframe
|
<el-image :src="imagebase64_new"/>
|
||||||
|
<!-- <iframe
|
||||||
v-if="true"
|
v-if="true"
|
||||||
id="pdf_view"
|
id="pdf_view"
|
||||||
name="pdf_view"
|
name="pdf_view"
|
||||||
@ -611,8 +611,8 @@
|
|||||||
frameborder="0"
|
frameborder="0"
|
||||||
class="pdf_view"
|
class="pdf_view"
|
||||||
width="100%"
|
width="100%"
|
||||||
height="960px"
|
height="100%"
|
||||||
></iframe>
|
></iframe>-->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -714,6 +714,7 @@ const ECGApply = ref() //申请返修弹窗
|
|||||||
const keyid = ref() //当前数据行的主键ID
|
const keyid = ref() //当前数据行的主键ID
|
||||||
const savedisabled = ref(false) //保存按钮是否可用
|
const savedisabled = ref(false) //保存按钮是否可用
|
||||||
const isPictureVisible = ref(false) //是否显示图片
|
const isPictureVisible = ref(false) //是否显示图片
|
||||||
|
const loading = ref(false) // 点击审核后的加载
|
||||||
// 树配置项
|
// 树配置项
|
||||||
const treeDefaultProps = {
|
const treeDefaultProps = {
|
||||||
children: 'children',
|
children: 'children',
|
||||||
@ -804,6 +805,8 @@ async function process() {
|
|||||||
if (applyFormVO.value.reportstatus === '已分析') {
|
if (applyFormVO.value.reportstatus === '已分析') {
|
||||||
// 审核确认
|
// 审核确认
|
||||||
await message.delConfirm('是否进行审核操作', '审核')
|
await message.delConfirm('是否进行审核操作', '审核')
|
||||||
|
loading.value = true
|
||||||
|
// return
|
||||||
const response = await PatientexamlistApi.examine(keyid.value,Profilevo.value.doctorname,Profilevo.value.doctorID)
|
const response = await PatientexamlistApi.examine(keyid.value,Profilevo.value.doctorname,Profilevo.value.doctorID)
|
||||||
|
|
||||||
if (response) {
|
if (response) {
|
||||||
@ -819,14 +822,16 @@ async function process() {
|
|||||||
data.imagePath = processImageApi.urlToAddress(data.imagePath)
|
data.imagePath = processImageApi.urlToAddress(data.imagePath)
|
||||||
const processResponse = await processImageApi.processImg(data)
|
const processResponse = await processImageApi.processImg(data)
|
||||||
// 1. 解析外层 JSON 的 data 字符串
|
// 1. 解析外层 JSON 的 data 字符串
|
||||||
const dataObj = JSON.parse(response.data);
|
const dataObj = JSON.parse(processResponse.data);
|
||||||
|
|
||||||
// 2. 直接获取 updateSuccess 的值
|
// 2. 直接获取 updateSuccess 的值
|
||||||
const updateSuccess = dataObj.updateSuccess;
|
const updateSuccess = dataObj.updateSuccess;
|
||||||
if (!updateSuccess){
|
if (!updateSuccess){
|
||||||
message.warning('诊断图片生成异常')
|
message.warning('诊断图片生成异常')
|
||||||
}
|
}
|
||||||
console.log(processResponse)
|
console.log("processResponse",processResponse)
|
||||||
|
console.log("updateSuccess",updateSuccess)
|
||||||
|
console.log("dataObj",dataObj)
|
||||||
await getPatientexamlist(keyid.value)
|
await getPatientexamlist(keyid.value)
|
||||||
emit('success')
|
emit('success')
|
||||||
savedisabled.value = true
|
savedisabled.value = true
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user