From 734d6dc1a572c0ecb6b0a718bdc6d387e7a8e031 Mon Sep 17 00:00:00 2001 From: caiyiling <1321909229@qq.com> Date: Tue, 25 Feb 2025 17:35:02 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E9=9D=9Edicom=E5=9B=BE=E5=83=8F=E9=98=85?= =?UTF-8?q?=E7=89=87=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/trials.js | 29 +- src/permission.js | 28 +- .../reading/none-dicoms/index--.vue | 347 ++++++++ .../reading/none-dicoms/index-.vue | 76 -- .../reading/none-dicoms/index.vue | 345 +------- .../visit-review/components/ImageViewer.vue | 421 ++++++++- .../visit-review/components/ReadPage.vue | 52 +- .../visit-review/components/ReportPage.vue | 796 +++++++++++++++++- .../visit-review/components/StudyList.vue | 13 + .../reading/visit-review/index.vue | 2 +- 10 files changed, 1659 insertions(+), 450 deletions(-) create mode 100644 src/views/trials/trials-panel/reading/none-dicoms/index--.vue delete mode 100644 src/views/trials/trials-panel/reading/none-dicoms/index-.vue diff --git a/src/api/trials.js b/src/api/trials.js index 31c03293..f9c572d1 100644 --- a/src/api/trials.js +++ b/src/api/trials.js @@ -3940,8 +3940,6 @@ export function updateTrialUserRole(data) { }) } - - // 获取报表配置 export function getTrialQuestionExportResult(data) { return request({ @@ -3965,4 +3963,29 @@ export function trialUserSendJoinEmail(data) { method: 'post', data }) -} \ No newline at end of file +} + +// 获取非Dicom标记 +export function getNoneDicomMarkListOutDto(data) { + return request({ + url: `/ReadingImageTask/getNoneDicomMarkListOutDto`, + method: 'post', + data + }) +} +// 添加非Dicom标记 +export function addNoneDicomMark(data) { + return request({ + url: `/ReadingImageTask/addNoneDicomMark`, + method: 'post', + data + }) +} +// 删除非Dicom标记 +export function deleteTrialFileType(id) { + return request({ + url: `/ReadingImageTask/deleteTrialFileType/${id}`, + method: 'post' + }) +} + diff --git a/src/permission.js b/src/permission.js index ea78a655..e0f2cc8f 100644 --- a/src/permission.js +++ b/src/permission.js @@ -7,15 +7,15 @@ import 'nprogress/nprogress.css' import { getToken, removeToken } from '@/utils/auth' import Vue from 'vue' import { OSSclient } from './utils/oss' -import WHITELIST from "./utils/whiteList" +import WHITELIST from './utils/whiteList' import { getTrialExtralConfig } from '@/api/trials' // import getPageTitle from '@/utils/get-page-title' NProgress.configure({ showSpinner: false }) const whiteList = WHITELIST -store.state.trials.whiteList = whiteList; -router.beforeEach(async (to, from, next) => { +store.state.trials.whiteList = whiteList +router.beforeEach(async(to, from, next) => { NProgress.start() // 设置页面标题 // document.title = getPageTitle(to.meta.title) store.state.trials.whiteList.indexOf(to.path) === -1 @@ -27,13 +27,13 @@ router.beforeEach(async (to, from, next) => { to.query.trialId !== store.state.trials.config.trialId ) { - let res = await getTrialExtralConfig({ - TrialId: to.query.trialId, + const res = await getTrialExtralConfig({ + TrialId: to.query.trialId }) if (res.IsSuccess) { store.dispatch('trials/setConfig', { trialId: to.query.trialId, - ...res.Result, + ...res.Result }) } } @@ -45,13 +45,13 @@ router.beforeEach(async (to, from, next) => { to.query.trialId !== store.state.trials.config.trialId ) { - let res = await getTrialExtralConfig({ - TrialId: to.query.trialId, + const res = await getTrialExtralConfig({ + TrialId: to.query.trialId }) if (res.IsSuccess) { store.dispatch('trials/setConfig', { trialId: to.query.trialId, - ...res.Result, + ...res.Result }) } } @@ -72,12 +72,12 @@ router.beforeEach(async (to, from, next) => { NProgress.done() } else if (from.path === '/researchForm') { removeToken() - let lang = to.query.lang || zzSessionStorage.getItem('lang') + const lang = to.query.lang || zzSessionStorage.getItem('lang') next(`/researchLogin?trialId=${to.query.trialId}&lang=${lang}`) NProgress.done() } else if (from.path === '/researchDetail_m') { removeToken() - let lang = to.query.lang || zzSessionStorage.getItem('lang') + const lang = to.query.lang || zzSessionStorage.getItem('lang') next(`/researchLogin_m?trialId=${to.query.trialId}&lang=${lang}`) NProgress.done() } else { @@ -107,7 +107,7 @@ router.beforeEach(async (to, from, next) => { /* has no token*/ if (whiteList.indexOf(to.path) !== -1) { if (to.path === '/researchLogin') { - let lang = to.query.lang || zzSessionStorage.getItem('lang') + const lang = to.query.lang || zzSessionStorage.getItem('lang') const flag = navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i) if (flag) { next(`/researchLogin_m?trialId=${to.query.trialId}&lang=${lang}`) @@ -123,11 +123,11 @@ router.beforeEach(async (to, from, next) => { } } else { if (to.path === '/researchForm') { - let lang = to.query.lang || zzSessionStorage.getItem('lang') + const lang = to.query.lang || zzSessionStorage.getItem('lang') next(`/researchLogin?trialId=${to.query.trialId}&lang=${lang}`) NProgress.done() } else if (to.path === '/researchDetail_m') { - let lang = to.query.lang || zzSessionStorage.getItem('lang') + const lang = to.query.lang || zzSessionStorage.getItem('lang') next(`/researchLogin_m?trialId=${to.query.trialId}&lang=${lang}`) NProgress.done() } else if (to.path === '/ReviewersResearchForm') { diff --git a/src/views/trials/trials-panel/reading/none-dicoms/index--.vue b/src/views/trials/trials-panel/reading/none-dicoms/index--.vue new file mode 100644 index 00000000..7a690ea1 --- /dev/null +++ b/src/views/trials/trials-panel/reading/none-dicoms/index--.vue @@ -0,0 +1,347 @@ + + + + + diff --git a/src/views/trials/trials-panel/reading/none-dicoms/index-.vue b/src/views/trials/trials-panel/reading/none-dicoms/index-.vue deleted file mode 100644 index f1c9db2e..00000000 --- a/src/views/trials/trials-panel/reading/none-dicoms/index-.vue +++ /dev/null @@ -1,76 +0,0 @@ - - - diff --git a/src/views/trials/trials-panel/reading/none-dicoms/index.vue b/src/views/trials/trials-panel/reading/none-dicoms/index.vue index 7a690ea1..f1c9db2e 100644 --- a/src/views/trials/trials-panel/reading/none-dicoms/index.vue +++ b/src/views/trials/trials-panel/reading/none-dicoms/index.vue @@ -1,347 +1,76 @@ - - diff --git a/src/views/trials/trials-panel/reading/visit-review/components/ImageViewer.vue b/src/views/trials/trials-panel/reading/visit-review/components/ImageViewer.vue index c8601ae3..1d41a282 100644 --- a/src/views/trials/trials-panel/reading/visit-review/components/ImageViewer.vue +++ b/src/views/trials/trials-panel/reading/visit-review/components/ImageViewer.vue @@ -2,17 +2,75 @@
- - - - - - 1*1 - 1*2 - 2*2 - - - + +
+ + + + + + 1*1 + 1*2 + 2*2 + + +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ + + +
+ +
@@ -22,9 +80,11 @@ v-show="index < cells.length" :key="index" :style="cellStyle" - :class="['grid-cell', index === activeCanvasIndex?'cell_active':'']" + :class="['grid-cell', index === activeCanvasIndex ? 'cell_active' : '', index === fullScreenIndex ? 'cell-full-screen' : '']" + @dblclick="toggleFullScreen($event, index)" @click="activeCanvas(index)" - @dblclick="toggleFullScreen(index)" + @mouseup="sliderMouseup($event, index)" + @mousemove="sliderMousemove($event, index)" >
@@ -70,6 +130,9 @@
+
+
+
@@ -77,12 +140,14 @@ + diff --git a/src/views/trials/trials-panel/reading/visit-review/components/StudyList.vue b/src/views/trials/trials-panel/reading/visit-review/components/StudyList.vue index 10910e47..6fb687e2 100644 --- a/src/views/trials/trials-panel/reading/visit-review/components/StudyList.vue +++ b/src/views/trials/trials-panel/reading/visit-review/components/StudyList.vue @@ -19,6 +19,7 @@
i.Id === obj.studyId) + if (i === -1) return + this.activeNames.push(obj.studyId) + this.activeStudyIndex = i + this.activeFileIndex = obj.imageIndex } } } diff --git a/src/views/trials/trials-panel/reading/visit-review/index.vue b/src/views/trials/trials-panel/reading/visit-review/index.vue index ef0d6b4a..aec04def 100644 --- a/src/views/trials/trials-panel/reading/visit-review/index.vue +++ b/src/views/trials/trials-panel/reading/visit-review/index.vue @@ -17,7 +17,7 @@ :label="$t('trials:reading:tabTitle:report')" name="report" > - +
From 5f960348ed48c420dc6b512c36601c2234e053bc Mon Sep 17 00:00:00 2001 From: caiyiling <1321909229@qq.com> Date: Tue, 25 Feb 2025 17:55:17 +0800 Subject: [PATCH 2/2] 1 --- .../reading/none-dicoms/index--.vue | 345 ++---------------- .../reading/none-dicoms/index.vue | 345 ++++++++++++++++-- 2 files changed, 345 insertions(+), 345 deletions(-) diff --git a/src/views/trials/trials-panel/reading/none-dicoms/index--.vue b/src/views/trials/trials-panel/reading/none-dicoms/index--.vue index 7a690ea1..f1c9db2e 100644 --- a/src/views/trials/trials-panel/reading/none-dicoms/index--.vue +++ b/src/views/trials/trials-panel/reading/none-dicoms/index--.vue @@ -1,347 +1,76 @@ - - diff --git a/src/views/trials/trials-panel/reading/none-dicoms/index.vue b/src/views/trials/trials-panel/reading/none-dicoms/index.vue index f1c9db2e..7a690ea1 100644 --- a/src/views/trials/trials-panel/reading/none-dicoms/index.vue +++ b/src/views/trials/trials-panel/reading/none-dicoms/index.vue @@ -1,76 +1,347 @@ + +