From d1448d4cc6f1080e3b63d5027a40ed566930ddd2 Mon Sep 17 00:00:00 2001
From: wangxiaoshuang <825034831@qq.com>
Date: Tue, 12 Aug 2025 14:44:52 +0800
Subject: [PATCH] =?UTF-8?q?=E8=B4=A8=E6=8E=A7=E4=B8=8B=E8=BD=BD=E5=B7=A5?=
=?UTF-8?q?=E5=85=B7?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/dictionary.js | 8 +++-
.../components/ToolsTemplate/index.vue | 2 +-
.../qc-check/components/qualityAssurance.vue | 38 +++++++++++++++++++
3 files changed, 46 insertions(+), 2 deletions(-)
diff --git a/src/api/dictionary.js b/src/api/dictionary.js
index ff7abcae..f296d695 100644
--- a/src/api/dictionary.js
+++ b/src/api/dictionary.js
@@ -281,7 +281,13 @@ export function getCommonDocumentList(param) {
data: param
})
}
-
+export function getCommonDocument(param) {
+ return request({
+ url: `/CommonDocument/getCommonDocument`,
+ method: 'get',
+ params: param
+ })
+}
export function addOrUpdateCommonDocument(param) {
return request({
url: `/CommonDocument/addOrUpdateCommonDocument`,
diff --git a/src/views/dictionary/attachment/components/ToolsTemplate/index.vue b/src/views/dictionary/attachment/components/ToolsTemplate/index.vue
index f08964f5..c23bd217 100644
--- a/src/views/dictionary/attachment/components/ToolsTemplate/index.vue
+++ b/src/views/dictionary/attachment/components/ToolsTemplate/index.vue
@@ -184,7 +184,7 @@ export default {
async handleDownload(row) {
try {
this.loading = true
- let fileName = this.isEN ? row.PathName : row.NameCN;
+ let fileName = this.isEN ? row.Name : row.NameCN;
let type = fileName
.substring(fileName.lastIndexOf('.'))
.toLocaleLowerCase()
diff --git a/src/views/trials/trials-panel/visit/qc-check/components/qualityAssurance.vue b/src/views/trials/trials-panel/visit/qc-check/components/qualityAssurance.vue
index 57aa07de..fdb12e56 100644
--- a/src/views/trials/trials-panel/visit/qc-check/components/qualityAssurance.vue
+++ b/src/views/trials/trials-panel/visit/qc-check/components/qualityAssurance.vue
@@ -53,6 +53,14 @@
style="margin-left: 10px" @click="getCRCUploadedStudyInfo('dicom')">
{{ $t('trials:audit:button:downLoadAllDiocms') }}
+
+
+ {{ $t('trials:audit:button:downLoadTools') }}
+
{{ $t('trials:audit:button:previewAllDiocms') }}
@@ -933,6 +941,9 @@ import const_ from '@/const/sign-code'
import uploadPetClinicalData from '@/views/trials/trials-panel/visit/crc-upload/components/uploadPetClinicalData.vue'
import { downLoadFile } from '@/utils/stream.js'
import { getCRCUploadedStudyInfo, downloadImageSuccess } from '@/api/load.js'
+import {
+ getCommonDocument,
+} from '@/api/dictionary'
import store from '@/store'
export default {
name: 'QualityAssurance',
@@ -1126,6 +1137,9 @@ export default {
NoneDicomStudyIdList: [],
DicomStudyIdList: [],
}
+ if (type === 'tools') {
+ return this.handleDownload()
+ }
if (type === 'dicom') {
data.DicomStudyIdList = this.selectTableDicom.map(
(item) => item.StudyId
@@ -1149,6 +1163,30 @@ export default {
console.log(err)
}
},
+ // 获取工具并下载
+ async handleDownload() {
+ try {
+ this.downloading = true
+ let res = await getCommonDocument({ Code: 'TrialImageConvert_Soft' })
+ if (res.IsSuccess) {
+ let row = res.Result
+ let fileName = this.isEN ? row.Name : row.NameCN;
+ let type = fileName
+ .substring(fileName.lastIndexOf('.'))
+ .toLocaleLowerCase()
+ if (!type) {
+ let extendName = row.Path
+ .substring(row.Path.lastIndexOf('.'))
+ .toLocaleLowerCase()
+ fileName += extendName
+ }
+ res = await downLoadFile(this.OSSclientConfig.basePath + row.Path, fileName)
+ }
+ this.downloading = false
+ } catch (err) {
+ this.downloading = false
+ }
+ },
// 打包下载
async downloadImage(data, type) {
try {