From 07e1f925d395fd87e1d4ca06b28adcb8994f0f3b Mon Sep 17 00:00:00 2001
From: wangxiaoshuang <825034831@qq.com>
Date: Tue, 23 Apr 2024 10:55:53 +0800
Subject: [PATCH] =?UTF-8?q?=E8=AF=84=E4=BC=B0=E6=8A=A5=E5=91=8A=E4=B8=8B?=
=?UTF-8?q?=E8=BD=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/export.js | 10 +++
.../PreviewFileDialog/PreviewFileDialog.vue | 40 ---------
.../trials/trials-panel/hirVisit/index.vue | 84 ++-----------------
.../reading/reading-tracking/index.vue | 49 +++++++++--
4 files changed, 59 insertions(+), 124 deletions(-)
delete mode 100644 src/components/PreviewFileDialog/PreviewFileDialog.vue
diff --git a/src/api/export.js b/src/api/export.js
index 5ff69d8..fe3ef50 100644
--- a/src/api/export.js
+++ b/src/api/export.js
@@ -160,3 +160,13 @@ export function getSubjectProgress_Export(param) {
data: param
})
}
+
+// 下载阅片报告
+export function downLoadReadReport(data) {
+ return requestDownload({
+ url: `/ReadingImageTask/downLoadReadReport`,
+ method: 'post',
+ responseType: 'blob',
+ data
+ })
+}
diff --git a/src/components/PreviewFileDialog/PreviewFileDialog.vue b/src/components/PreviewFileDialog/PreviewFileDialog.vue
deleted file mode 100644
index 62bdd7a..0000000
--- a/src/components/PreviewFileDialog/PreviewFileDialog.vue
+++ /dev/null
@@ -1,40 +0,0 @@
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/views/trials/trials-panel/hirVisit/index.vue b/src/views/trials/trials-panel/hirVisit/index.vue
index 4870523..68ba4f2 100644
--- a/src/views/trials/trials-panel/hirVisit/index.vue
+++ b/src/views/trials/trials-panel/hirVisit/index.vue
@@ -219,7 +219,6 @@
hasPermi(['trials:trials-panel:hirVisit:edit']) ||
hasPermi(['trials:trials-panel:hirVisit:submit']) ||
hasPermi(['trials:trials-panel:hirVisit:remove']) ||
- hasPermi(['trials:trials-panel:hirVisit:result']) ||
hasPermi(['trials:trials-panel:hirVisit:downlaod'])
"
>
@@ -254,53 +253,15 @@
:disabled="Number(scope.row.SubmitState) > 0"
:title="$t('common:button:delete')"
/>
- handleCommand(command, scope.row)"
- >
-
-
-
-
-
-
- {{
- $t("trials:trials-panel:hirVisit:EvaluationReport")
- }}
-
- {{
- $t("trials:reading:button:uploadImages")
- }}
-
-
+
+
@@ -327,11 +288,6 @@
:visible.sync="visitVisible"
:rowData="rowData"
/>
-
-
diff --git a/src/views/trials/trials-panel/reading/reading-tracking/index.vue b/src/views/trials/trials-panel/reading/reading-tracking/index.vue
index 07ac62c..be3b31c 100644
--- a/src/views/trials/trials-panel/reading/reading-tracking/index.vue
+++ b/src/views/trials/trials-panel/reading/reading-tracking/index.vue
@@ -234,13 +234,28 @@
@click="readResult(scope.row)"
:disabled="scope.row.ReadingTaskState !== 2"
/>
-
-
+ handleCommand(command, scope.row)"
+ >
+
+
+
+
+ {{
+ $t("trials:trials-panel:hirVisit:EvaluationReport")
+ }}
+
+ {{
+ $t("trials:reading:button:uploadImages")
+ }}
+
+
@@ -262,6 +277,7 @@ import Pagination from "@/components/Pagination";
import { getPatientVisitTaskList } from "@/api/readManagenent.js";
import { getToken } from "@/utils/auth";
import { getSystemConfirmedCreiterionList } from "@/api/trials";
+import { downLoadReadReport } from "@/api/export";
import { downloadImage } from "@/utils/uploadZip.js";
const defaultSearchData = () => {
return {
@@ -307,6 +323,21 @@ export default {
this.getSystemConfirmedCreiterionList();
},
methods: {
+ // 下拉菜单操作
+ handleCommand(command, item) {
+ this[command](item);
+ },
+ // 评估报告
+ async showReport(item) {
+ let data = {
+ VisitTaskId: item.Id,
+ };
+ try {
+ let res = await downLoadReadReport(data);
+ } catch (err) {
+ console.log(err);
+ }
+ },
// 获取阅片标准
async getSystemConfirmedCreiterionList() {
try {
@@ -376,8 +407,8 @@ export default {
console.log(err);
}
},
- // 下载报告
- downloadReport(item) {
+ // 下载影像
+ async downloadImage(item) {
downloadImage(item.SubjectId, item.SourceSubjectVisitId);
},
// 阅片结果