From 836fddef3e1fb6399da316061cfb8a4462bf0e00 Mon Sep 17 00:00:00 2001
From: yy2205 <2238220225@qq.com>
Date: Tue, 20 May 2025 10:45:12 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=89=93=E5=8D=B0=E5=9B=BE?=
=?UTF-8?q?=E7=89=87?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/processImage/index.ts | 1 +
src/views/ECG/ECGForm.vue | 19 ++++++++++++-------
2 files changed, 13 insertions(+), 7 deletions(-)
diff --git a/src/api/processImage/index.ts b/src/api/processImage/index.ts
index 4bc81fcb..584c4c63 100644
--- a/src/api/processImage/index.ts
+++ b/src/api/processImage/index.ts
@@ -58,6 +58,7 @@ export const processImageApi = {
method: 'post',
url: apiUrl,
data: params,
+ timeout: 30000,
withCredentials: true
})
return response
diff --git a/src/views/ECG/ECGForm.vue b/src/views/ECG/ECGForm.vue
index f43d329f..34e24200 100644
--- a/src/views/ECG/ECGForm.vue
+++ b/src/views/ECG/ECGForm.vue
@@ -15,7 +15,7 @@
}
"
>
-
+
@@ -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