Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 65e4192312 |
@@ -6,7 +6,7 @@ NODE_ENV = 'prod'
|
||||
VUE_APP_BASE_PATH = '/'
|
||||
|
||||
# onlyoffice地址
|
||||
VUE_APP_ONLYOFFICE_URL = "https://office.rayplus.net"
|
||||
VUE_APP_ONLYOFFICE_URL = "https://office.extimaging.com"
|
||||
|
||||
# 是否开启登陆限制 true:是 false:否
|
||||
VUE_APP_LOGIN_FOR_PERMISSION = true
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
<meta http-equiv="Pragma" content="no-cache">
|
||||
<meta http-equiv="Cache-control" content="no-store,no-cache,must-revalidate">
|
||||
<meta http-equiv="Cache" content="no-cache">
|
||||
<title>RPC lmaging Trial Management System</title>
|
||||
<title>EIC lmaging Trial Management System</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
<div class="title-container" style="display: flex;padding-top:180px;justify-content: flex-start;height: 100%;box-sizing: border-box">
|
||||
<!-- IRC Management System -->
|
||||
<!-- <div class="title" style="text-align: center;font-size: 28px;margin-top: 100px;padding-right: 120px"></div>-->
|
||||
<!-- <div class="title" v-show="false">RPC lmaging Trial Management System</div>-->
|
||||
<!-- <div class="title" v-show="false">EIC lmaging Trial Management System</div>-->
|
||||
<div style="color: #0a84ff;text-align: left;font-size: 28px">
|
||||
{{message}}
|
||||
</div>
|
||||
@@ -63,7 +63,7 @@
|
||||
<div style="margin: 0 auto;width: 600px;line-height: 28px;text-align: center" >
|
||||
<h1 style="text-align: center;margin-bottom: 20px">关于</h1>
|
||||
<p style="margin-bottom: 20px">
|
||||
RPC lmaging Trial Management System
|
||||
EIC lmaging Trial Management System
|
||||
</p>
|
||||
<p style="margin-bottom: 20px">
|
||||
V1.3.0.001
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
<div class="title-container" style="display: flex;padding-top:180px;justify-content: flex-start;height: 100%;box-sizing: border-box">
|
||||
<!-- IRC Management System -->
|
||||
<!-- <div class="title" style="text-align: center;font-size: 28px;margin-top: 100px;padding-right: 120px"></div>-->
|
||||
<!-- <div class="title" v-show="false">RPC lmaging Trial Management System</div>-->
|
||||
<!-- <div class="title" v-show="false">EIC lmaging Trial Management System</div>-->
|
||||
<div style="color: #0a84ff;text-align: left;font-size: 28px">
|
||||
{{message}}
|
||||
</div>
|
||||
|
||||
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 189 KiB After Width: | Height: | Size: 225 KiB |
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 353 KiB |
|
Before Width: | Height: | Size: 65 KiB After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 99 KiB After Width: | Height: | Size: 98 KiB |
@@ -1608,7 +1608,7 @@ Enroll: Enrolled Confirmation`,
|
||||
'trials:notice:table:appendix': `Attachment`,
|
||||
'trials:notice:table:isRead': `Readed`,
|
||||
'trials:notice:action:detail': `Details`,
|
||||
'login:title:system': `RPC lmaging Trial Management System`,
|
||||
'login:title:system': `EIC lmaging Trial Management System`,
|
||||
'login:form:userName': `User ID`,
|
||||
'login:form:password': `Password`,
|
||||
'login:button:login': `Login`,
|
||||
@@ -1672,7 +1672,7 @@ Enroll: Enrolled Confirmation`,
|
||||
'trials:tab:trials': `My Trials`,
|
||||
'trials:trials:title:back': `Return`,
|
||||
'trials:trials:title:backTrialList': `Return to trial list`,
|
||||
'trials:trials:title:eics': `RPC lmaging Trial Management System`,
|
||||
'trials:trials:title:eics': `EIC lmaging Trial Management System`,
|
||||
'trials:tab:reading': `Reads`,
|
||||
'trials:tab:pendingReadingTasks': `Pending`,
|
||||
'trials:pendingReadingTasks:table:subjectCode': `Subject ID`,
|
||||
|
||||
@@ -92,13 +92,8 @@ router.beforeEach(async (to, from, next) => {
|
||||
await store.dispatch('user/getUserInfo')
|
||||
const accessRoutes = await store.dispatch('permission/generateRoutes')
|
||||
resetRouter()
|
||||
if (accessRoutes.length > 0) {
|
||||
router.addRoutes(accessRoutes)
|
||||
next({ ...to, replace: true })
|
||||
} else {
|
||||
next()
|
||||
}
|
||||
|
||||
router.addRoutes(accessRoutes)
|
||||
next({ ...to, replace: true })
|
||||
} catch (error) {
|
||||
console.log(error)
|
||||
// 删除token并进入登录页面以重新登录
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// eslint-disable-next-line no-undef
|
||||
module.exports = {
|
||||
|
||||
title: 'RPC lmaging Trial Management System',
|
||||
title: 'HASC lmaging Trial Management System',
|
||||
|
||||
/**
|
||||
* @type {boolean} true | false
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import defaultSettings from '@/settings'
|
||||
|
||||
const title = defaultSettings.title || 'RPC lmaging Trial Management System'
|
||||
const title = defaultSettings.title || 'HASC lmaging Trial Management System'
|
||||
|
||||
export default function getPageTitle(pageTitle) {
|
||||
if (pageTitle) {
|
||||
|
||||
@@ -118,9 +118,6 @@ service.interceptors.response.use(
|
||||
if (res.IsSuccess) {
|
||||
return Promise.resolve(res)
|
||||
} else if (res.IsSuccess === false) {
|
||||
if (res.Code === -4) {
|
||||
return Promise.resolve(res)
|
||||
}
|
||||
if (res.Code !== 5) {
|
||||
MessageBox.confirm(res.ErrorMessage, {
|
||||
type: 'warning',
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<div class="dashboard">
|
||||
<div class="dashboard-header">
|
||||
<h1>
|
||||
<a href="#" @click="handleTitleClick">GRR Real-Time IRC Information</a>
|
||||
<a href="#" @click="handleTitleClick">GRR Real-Time HASC Information</a>
|
||||
</h1>
|
||||
|
||||
<div>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div class="dashboard">
|
||||
<div class="dashboard-header">
|
||||
<!-- <h1>Extimaging Real-Time IRC Information</h1> -->
|
||||
<!-- <h1>Extimaging Real-Time HASC Information</h1> -->
|
||||
<div>
|
||||
<span>{{ currentTime }}</span>
|
||||
</div>
|
||||
|
||||
@@ -5,28 +5,27 @@
|
||||
</div>
|
||||
<div class="login-body">
|
||||
<div class="login-l">
|
||||
<div class="login-logo">
|
||||
<!-- <div class="login-logo">
|
||||
<img v-if="language === 'zh'" src="@/assets/zzlogo2.png" alt="" />
|
||||
<img v-else-if="NODE_ENV === 'usa'" src="@/assets/zzlogo-usa.png" alt="" class="usa-logo" />
|
||||
<img v-else src="@/assets/zzlogo2.png" alt="" />
|
||||
</div>
|
||||
</div> -->
|
||||
<div :class="{
|
||||
'login-image': true,
|
||||
'login-image-usa': true,
|
||||
}">
|
||||
<svg-icon icon-class="login-bg" style="width: 90%; height: 90%" />
|
||||
<!-- <img src="@/assets/login-bg.png" v-else /> -->
|
||||
<!-- <svg-icon icon-class="login-bg" style="width: 90%; height: 90%" /> -->
|
||||
<img src="@/assets/login-bg.png" style=" height: 80%" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="login-r">
|
||||
<div class="title-container">
|
||||
<!-- IRC Management System -->
|
||||
<!-- HASC Management System -->
|
||||
<div v-if="NODE_ENV === 'usa'">
|
||||
<svg-icon icon-class="login-logo" style="width: 300px; height: 94px" />
|
||||
</div>
|
||||
<div class="title" v-else>
|
||||
<img src="@/assets/system.png" alt=""
|
||||
:style="{ width: isEN ? '180px' : '200px', height: isEN ? '60px' : '65px' }" />
|
||||
<img src="@/assets/system.png" alt="" :style="{ height: isEN ? '50px' : '55px' }" />
|
||||
<div :style="`font-size:${isEN ? '28px' : '35px'}`">{{ $t('login:title:system') }}</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -111,14 +110,14 @@
|
||||
</div>
|
||||
</div>
|
||||
<div v-if="language === 'zh'" class="login-footer">
|
||||
<span>Copyright © {{ new Date().getFullYear() }} 睿佳(武汉)软件科技有限公司
|
||||
<span>Copyright © {{ new Date().getFullYear() }} 上海禾安枢信息科技有限公司
|
||||
版权所有</span>
|
||||
<span> | </span>
|
||||
<a target="_blank" href="https://beian.miit.gov.cn/">
|
||||
<span> 鄂ICP备16002609号 </span>
|
||||
<!-- <a target="_blank" href="https://beian.miit.gov.cn/">
|
||||
<span> 沪ICP备2021037850-2 </span>
|
||||
</a>
|
||||
<!-- <span> | </span> -->
|
||||
<!-- <a target="_blank" href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=31011002005859">
|
||||
<span> | </span>
|
||||
<a target="_blank" href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=31011002005859">
|
||||
<img src="@/assets/filing.png" />
|
||||
<span>沪公网安备 31011002005859号</span>
|
||||
</a> -->
|
||||
@@ -162,16 +161,16 @@
|
||||
V{{ $version.IsEnv_US ? $version.Version_US : $version.Version }}
|
||||
</p>
|
||||
<p style="margin-bottom: 20px" v-if="language === 'zh'">
|
||||
Copyright © {{ new Date().getFullYear() }} 睿佳(武汉)软件科技有限公司
|
||||
Copyright © {{ new Date().getFullYear() }} 上海禾安枢信息科技有限公司
|
||||
版权所有
|
||||
</p>
|
||||
<p style="margin-bottom: 20px" v-else-if="NODE_ENV === 'usa'">
|
||||
© {{ new Date().getFullYear() }} Elevate Imaging Inc.
|
||||
</p>
|
||||
<p style="margin-bottom: 20px" v-else>
|
||||
<!-- <p style="margin-bottom: 20px" v-else>
|
||||
Copyright © {{ new Date().getFullYear() }} Shanghai Extensive Imaging
|
||||
Inc.
|
||||
</p>
|
||||
</p> -->
|
||||
<!-- <div style="margin-bottom: 20px" v-if="NODE_ENV === 'usa'">
|
||||
<img style="width: 180px" src="@/assets/zzlogo-usa.png" alt="" />
|
||||
</div>
|
||||
@@ -682,7 +681,7 @@ $light_gray: #606266;
|
||||
left: 50px;
|
||||
|
||||
img {
|
||||
height: 70px;
|
||||
height: 40px;
|
||||
}
|
||||
|
||||
.usa-logo {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div class="share-image-container">
|
||||
<div class="share-image-banner">
|
||||
<h2 style="text-align:center;">IRC Management System</h2>
|
||||
<h2 style="text-align:center;">HASC Management System</h2>
|
||||
<el-card shadow="hover">
|
||||
<h4>请输入提取码:</h4>
|
||||
<el-form ref="validateForm" :inline="true" :rules="rules" :model="form">
|
||||
|
||||
@@ -302,13 +302,13 @@ export default {
|
||||
// 发件人邮箱地址
|
||||
"FromEmail": "test@extimaging.com",
|
||||
// 发件人显示名称
|
||||
"FromName": "Test IRC Imaging System",
|
||||
"FromName": "Test HASC Imaging System",
|
||||
//SMTP授权码
|
||||
"AuthorizationCode": "SHzyyl2021",
|
||||
//系统对外访问地址
|
||||
"SiteUrl": "http://irc.test.extimaging.com/login",
|
||||
//系统简称-致性核查使用
|
||||
"SystemShortName": "IRC",
|
||||
"SystemShortName": "HASC",
|
||||
// 组织英文名称-添加用户默认值
|
||||
"OrganizationName": "ExtImaging",
|
||||
// 组织中文名称
|
||||
|
||||
@@ -178,7 +178,7 @@ export default {
|
||||
updateUser(this.user)
|
||||
.then((res) => {
|
||||
this.isDisabled = false
|
||||
this.$message.success(this.$t("common:message:updatedSuccessfully"))
|
||||
this.$message.success('Updated successfully')
|
||||
})
|
||||
.catch(() => {
|
||||
this.isDisabled = false
|
||||
@@ -190,7 +190,7 @@ export default {
|
||||
this.user.Id = res.Result.Id
|
||||
this.user.UserCode = res.Result.UserCode
|
||||
this.$emit('getUserId', res.Result.Id)
|
||||
this.$message.success(this.$t("common:message:addedSuccessfully"))
|
||||
this.$message.success('Added successfully')
|
||||
this.$router.push({ path: '/system/user/list' })
|
||||
})
|
||||
.catch(() => {
|
||||
@@ -308,63 +308,63 @@ export default {
|
||||
UserWorkLanguage: [
|
||||
{
|
||||
required: true,
|
||||
message: this.$t("common:ruleMessage:select"),
|
||||
message: 'Please Select',
|
||||
trigger: ['blur', 'change'],
|
||||
},
|
||||
],
|
||||
Roles: [
|
||||
{
|
||||
required: true,
|
||||
message: this.$t("common:ruleMessage:select"),
|
||||
message: 'Please Select',
|
||||
trigger: ['blur', 'change'],
|
||||
},
|
||||
],
|
||||
IsZhiZhun: [
|
||||
{
|
||||
required: true,
|
||||
message: this.$t("common:ruleMessage:select"),
|
||||
message: 'Please Select',
|
||||
trigger: ['blur', 'change'],
|
||||
},
|
||||
],
|
||||
OrganizationName: [
|
||||
{ required: true, message: this.$t("common:ruleMessage:specify"), trigger: 'blur' },
|
||||
{ required: true, message: 'Please specify', trigger: 'blur' },
|
||||
],
|
||||
LastName: [
|
||||
{ required: true, message: this.$t("common:ruleMessage:specify"), trigger: 'blur' },
|
||||
{ max: 50, message: this.$t("trials:researchForm:formRule:maxLength") },
|
||||
{ required: true, message: 'Please specify', trigger: 'blur' },
|
||||
{ max: 50, message: 'The maximum length is 50' },
|
||||
],
|
||||
FirstName: [
|
||||
{ required: true, message: this.$t("common:ruleMessage:specify"), trigger: 'blur' },
|
||||
{ max: 50, message: this.$t("trials:researchForm:formRule:maxLength") },
|
||||
{ required: true, message: 'Please specify', trigger: 'blur' },
|
||||
{ max: 50, message: 'The maximum length is 50' },
|
||||
],
|
||||
Phone: [
|
||||
{
|
||||
max: 20,
|
||||
min: 7,
|
||||
message: this.$t("system:userInfo:ruleMessage:length7to20"),
|
||||
message: 'The length is 7 to 20',
|
||||
trigger: ['blur'],
|
||||
},
|
||||
],
|
||||
EMail: [
|
||||
{
|
||||
required: true,
|
||||
message: this.$t("common:ruleMessage:specify"),
|
||||
message: 'Please input the email address',
|
||||
trigger: 'blur',
|
||||
},
|
||||
{
|
||||
// type: 'email',
|
||||
pattern: new RegExp(this.$reg().EmailRegexStr),
|
||||
message: this.$t("trials:site:ruleMessage:correctEmail"),
|
||||
message: 'Please input the correct email address',
|
||||
trigger: ['blur'],
|
||||
},
|
||||
{ max: 50, message: this.$t("trials:researchForm:formRule:maxLength") },
|
||||
{ max: 50, message: 'The maximum length is 50' },
|
||||
],
|
||||
Sex: [{ required: true, message: this.$t("common:ruleMessage:specify"), trigger: 'blur' }],
|
||||
Sex: [{ required: true, message: 'Please specify', trigger: 'blur' }],
|
||||
Status: [
|
||||
{ required: true, message: this.$t("common:ruleMessage:specify"), trigger: 'blur' },
|
||||
{ required: true, message: 'Please specify', trigger: 'blur' },
|
||||
],
|
||||
DepartmentName: [{ max: 50, message: this.$t("trials:researchForm:formRule:maxLength") }],
|
||||
PositionName: [{ max: 50, message: this.$t("trials:researchForm:formRule:maxLength") }],
|
||||
DepartmentName: [{ max: 50, message: 'The maximum length is 50' }],
|
||||
PositionName: [{ max: 50, message: 'The maximum length is 50' }],
|
||||
},
|
||||
userTypeOptions: [],
|
||||
isDisabled: false,
|
||||
|
||||
@@ -619,14 +619,6 @@ export default {
|
||||
}
|
||||
}
|
||||
|
||||
::v-deep .el-dialog.cd-dialog-container {
|
||||
.el-input.is-disabled .el-input__inner {
|
||||
background-color: rgb(245, 247, 250);
|
||||
color: #666;
|
||||
border: 1px solid #dcdfe6;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
::v-deep .dialog-container {
|
||||
|
||||
@@ -12,9 +12,7 @@
|
||||
{ required: true, message: $t('common:ruleMessage:select'), trigger: 'blur' }
|
||||
]">
|
||||
<el-select v-model="fusionForm.studyId" clearable @change="handleStudyIdChange">
|
||||
<el-option v-for="item in studyList" :key="item.StudyId"
|
||||
:label="taskInfo.IsReadingTaskViewInOrder !== 0 ? item.StudyCode : `${item.Modalities}(${item.SeriesCount})`"
|
||||
:value="item.StudyId" />
|
||||
<el-option v-for="item in studyList" :key="item.StudyId" :label="item.StudyCode" :value="item.StudyId" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<!-- 融合图像 -->
|
||||
@@ -113,12 +111,10 @@ export default {
|
||||
ctSeries: [],
|
||||
petSeries: [],
|
||||
petctWindow: null,
|
||||
digitPlaces: 2,
|
||||
taskInfo: {}
|
||||
digitPlaces: 2
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.taskInfo = JSON.parse(sessionStorage.getItem('taskInfo'))
|
||||
var digitPlaces = Number(localStorage.getItem('digitPlaces'))
|
||||
this.digitPlaces = digitPlaces === -1 ? this.digitPlaces : digitPlaces
|
||||
this.initForm()
|
||||
|
||||
@@ -187,7 +187,6 @@ export default {
|
||||
originalMarkers: [],
|
||||
markers: { top: '', right: '', bottom: '', left: '' },
|
||||
playClipState: false,
|
||||
clipFramesPerSecond: null,
|
||||
wwwcIdx: 2,
|
||||
presetName: '',
|
||||
volumeId: null,
|
||||
@@ -626,22 +625,6 @@ export default {
|
||||
}
|
||||
|
||||
},
|
||||
syncViewportStaticState() {
|
||||
const renderingEngine = getRenderingEngine(this.renderingEngineId)
|
||||
if (!renderingEngine) return
|
||||
const viewport = renderingEngine.getViewport(this.viewportId)
|
||||
if (!viewport) return
|
||||
|
||||
this.getOrientationMarker()
|
||||
const toolGroup =
|
||||
cornerstoneTools.ToolGroupManager.getToolGroupForViewport(
|
||||
this.viewportId,
|
||||
this.renderingEngineId
|
||||
) || cornerstoneTools.ToolGroupManager.getToolGroup(this.viewportId)
|
||||
if (toolGroup) {
|
||||
toolGroup.setToolEnabled('ScaleOverlay')
|
||||
}
|
||||
},
|
||||
setFullScreen(index) {
|
||||
setTimeout(() => {
|
||||
const renderingEngine = getRenderingEngine(this.renderingEngineId)
|
||||
@@ -744,33 +727,14 @@ export default {
|
||||
}
|
||||
},
|
||||
toggleClipPlay(isPlay, framesPerSecond) {
|
||||
this.playClipState = isPlay
|
||||
const renderingEngine = getRenderingEngine(this.renderingEngineId)
|
||||
if (!renderingEngine) return
|
||||
const viewport = renderingEngine.getViewport(this.viewportId)
|
||||
if (!viewport?.element) return
|
||||
|
||||
const parsedFramesPerSecond = Number(framesPerSecond)
|
||||
const nextFramesPerSecond = Number.isFinite(parsedFramesPerSecond)
|
||||
? parsedFramesPerSecond
|
||||
: (this.clipFramesPerSecond || 15)
|
||||
const isSameSpeedWhilePlaying = this.playClipState &&
|
||||
isPlay &&
|
||||
this.clipFramesPerSecond === nextFramesPerSecond
|
||||
|
||||
if (isPlay) {
|
||||
if (isSameSpeedWhilePlaying) return
|
||||
|
||||
cornerstoneTools.utilities.cine.playClip(viewport.element, {
|
||||
framesPerSecond: nextFramesPerSecond,
|
||||
loop: true,
|
||||
waitForRendered: 1
|
||||
})
|
||||
this.clipFramesPerSecond = nextFramesPerSecond
|
||||
this.playClipState = true
|
||||
cornerstoneTools.utilities.cine.playClip(viewport.element, { framesPerSecond, loop: true })
|
||||
} else {
|
||||
cornerstoneTools.utilities.cine.stopClip(viewport.element)
|
||||
this.clipFramesPerSecond = null
|
||||
this.playClipState = false
|
||||
}
|
||||
},
|
||||
scrollPage(type) {
|
||||
@@ -1161,7 +1125,6 @@ export default {
|
||||
|
||||
}
|
||||
viewport.render()
|
||||
this.syncViewportStaticState()
|
||||
if (this.currentVoiUpper > 0) {
|
||||
this.voiChange(this.currentVoiUpper)
|
||||
}
|
||||
|
||||
@@ -284,7 +284,7 @@
|
||||
<svg-icon icon-class="lastframe" class="svg-icon" />
|
||||
</div>
|
||||
<select v-model="fps" :title="$t('trials:dicom-show:speed')" class="select-wrapper"
|
||||
@change="handleClipFpsChange">
|
||||
:disabled="clipPlaying">
|
||||
<!-- 默认值 -->
|
||||
<option :value="5">5</option>
|
||||
<option :value="10">10</option>
|
||||
@@ -1221,7 +1221,12 @@ export default {
|
||||
this.selectArr.push(item.VisitTaskId)
|
||||
}
|
||||
if (item.IsCurrentTask) {
|
||||
this.syncMarkedSeriesIds(annotations)
|
||||
this.markedSeriesIds = []
|
||||
annotations.map(i => {
|
||||
if (i.MeasureData && i.MeasureData.seriesId) {
|
||||
this.markedSeriesIds.push(i.MeasureData.seriesId)
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2047,7 +2052,7 @@ export default {
|
||||
|
||||
// this.$refs['ecrf'].setAnnotation({ annotation, toolName: annotation.metadata.toolName })
|
||||
this.$refs[`ecrf_${this.lastViewportTaskId}`][0].setAnnotation({ annotation, toolName: annotation.metadata.toolName })
|
||||
this.syncMarkedSeriesIdsFromState(series.TaskInfo.VisitTaskId)
|
||||
this.markedSeriesIds.push(series.Id)
|
||||
}
|
||||
|
||||
this.setToolsPassive()
|
||||
@@ -2082,14 +2087,16 @@ export default {
|
||||
throw errorMsg
|
||||
}
|
||||
if (annotation.visitTaskId === this.taskInfo.VisitTaskId && annotation.seriesId) {
|
||||
this.syncMarkedSeriesIdsFromState(annotation.visitTaskId)
|
||||
const index = this.markedSeriesIds.indexOf(annotation.seriesId)
|
||||
if (index !== -1) {
|
||||
this.markedSeriesIds.splice(index, 1)
|
||||
}
|
||||
} else {
|
||||
const errorMsg = { message: 'annotation Not allowed to operate' }
|
||||
throw errorMsg
|
||||
}
|
||||
} catch (e) {
|
||||
cornerstoneTools.annotation.state.addAnnotation(annotation)
|
||||
this.syncMarkedSeriesIdsFromState(annotation.visitTaskId)
|
||||
const renderingEngine = getRenderingEngine(renderingEngineId)
|
||||
for (let i = 0; i < this.cells.length; i++) {
|
||||
const viewportId = `${this.viewportKey}-${i}`
|
||||
@@ -2126,7 +2133,7 @@ export default {
|
||||
annotation.sliceThickness = series.SliceThickness
|
||||
annotation.numberOfFrames = isNaN(parseInt(params.frame)) ? null : parseInt(params.frame)
|
||||
annotation.markTool = annotation.metadata.toolName
|
||||
this.syncMarkedSeriesIdsFromState(series.TaskInfo.VisitTaskId)
|
||||
this.markedSeriesIds.push(series.Id)
|
||||
const operateStateEnum = this.$refs[`ecrf_${this.taskInfo.VisitTaskId}`][0].operateStateEnum
|
||||
const markName = await this.customPrompt(!this.isNumber(operateStateEnum))
|
||||
|
||||
@@ -2268,7 +2275,10 @@ export default {
|
||||
if (!res.IsSuccess) throw ''
|
||||
}
|
||||
}
|
||||
this.syncMarkedSeriesIdsFromState(annotation.visitTaskId)
|
||||
const index = this.markedSeriesIds.indexOf(annotation.seriesId)
|
||||
if (index !== -1) {
|
||||
this.markedSeriesIds.splice(index, 1)
|
||||
}
|
||||
const renderingEngine = getRenderingEngine(renderingEngineId)
|
||||
for (let i = 0; i < this.cells.length; i++) {
|
||||
const viewportId = `${this.viewportKey}-${i}`
|
||||
@@ -2281,7 +2291,6 @@ export default {
|
||||
}
|
||||
} catch (e) {
|
||||
cornerstoneTools.annotation.state.addAnnotation(annotation)
|
||||
this.syncMarkedSeriesIdsFromState(annotation.visitTaskId)
|
||||
const renderingEngine = getRenderingEngine(renderingEngineId)
|
||||
for (let i = 0; i < this.cells.length; i++) {
|
||||
const viewportId = `${this.viewportKey}-${i}`
|
||||
@@ -2358,22 +2367,6 @@ export default {
|
||||
this.$set(this.visitTaskList[taskIdx], 'Annotations', annotations)
|
||||
this.$set(this.visitTaskList[taskIdx], 'AnnotationUIDs', annotationUIDs)
|
||||
},
|
||||
collectMarkedSeriesIds(list = []) {
|
||||
return [...new Set(
|
||||
list
|
||||
.map(item => item?.MeasureData?.seriesId || item?.seriesId)
|
||||
.filter(Boolean)
|
||||
)]
|
||||
},
|
||||
syncMarkedSeriesIds(list = []) {
|
||||
this.markedSeriesIds = this.collectMarkedSeriesIds(list)
|
||||
},
|
||||
syncMarkedSeriesIdsFromState(visitTaskId = this.taskInfo?.VisitTaskId) {
|
||||
const annotations = cornerstoneTools.annotation.state.getAllAnnotations().filter(item => {
|
||||
return item.visitTaskId === visitTaskId && item.seriesId
|
||||
})
|
||||
this.syncMarkedSeriesIds(annotations)
|
||||
},
|
||||
async resetAnnotations(visitTaskId) {
|
||||
if (this.readingTaskState === 2) return
|
||||
const taskIdx = this.visitTaskList.findIndex(i => i.VisitTaskId === visitTaskId)
|
||||
@@ -2408,9 +2401,9 @@ export default {
|
||||
if (i.MeasureData) {
|
||||
const annotation = i.MeasureData
|
||||
cornerstoneTools.annotation.state.addAnnotation(annotation)
|
||||
this.markedSeriesIds.push(annotation.seriesId)
|
||||
}
|
||||
})
|
||||
this.syncMarkedSeriesIds(annotations)
|
||||
const renderingEngine = getRenderingEngine(renderingEngineId)
|
||||
for (let i = 0; i < this.cells.length; i++) {
|
||||
const viewportId = `${this.viewportKey}-${i}`
|
||||
@@ -3422,15 +3415,6 @@ export default {
|
||||
this.clipPlaying = !this.clipPlaying
|
||||
this.$refs[`${this.viewportKey}-${this.activeViewportIndex}`][0].toggleClipPlay(isPlay, this.fps)
|
||||
},
|
||||
handleClipFpsChange() {
|
||||
if (!this.clipPlaying) return
|
||||
|
||||
const activeViewportRef = this.$refs[`${this.viewportKey}-${this.activeViewportIndex}`]
|
||||
const activeViewport = activeViewportRef && activeViewportRef[0]
|
||||
if (!activeViewport || typeof activeViewport.toggleClipPlay !== 'function') return
|
||||
|
||||
activeViewport.toggleClipPlay(true, this.fps)
|
||||
},
|
||||
// 获取窗宽窗位模板
|
||||
async getWwcTpl() {
|
||||
try {
|
||||
@@ -4053,10 +4037,8 @@ export default {
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!this.isActiveViewportAtMeasureLocation(obj.annotation)) {
|
||||
this.$refs[`${this.viewportKey}-${this.activeViewportIndex}`][0].setSeriesInfo(series, true)
|
||||
this.$refs[series.TaskInfo.VisitTaskId][0].setSeriesActive(series.StudyIndex, series.SeriesIndex)
|
||||
}
|
||||
this.$refs[`${this.viewportKey}-${this.activeViewportIndex}`][0].setSeriesInfo(series, true)
|
||||
this.$refs[series.TaskInfo.VisitTaskId][0].setSeriesActive(series.StudyIndex, series.SeriesIndex)
|
||||
setTimeout(async () => {
|
||||
const divForDownloadViewport = document.querySelector(
|
||||
`div[data-viewport-uid="${this.viewportKey}-${this.activeViewportIndex}"]`
|
||||
@@ -4067,48 +4049,9 @@ export default {
|
||||
}, 200)
|
||||
}
|
||||
},
|
||||
getMeasureImageLocation(measureData = {}) {
|
||||
const referencedImageId = measureData?.metadata?.referencedImageId
|
||||
const referencedImageParams = referencedImageId ? this.getInstanceInfo(referencedImageId) : {}
|
||||
return {
|
||||
visitTaskId: measureData.visitTaskId,
|
||||
studyId: measureData.studyId || measureData.StudyId,
|
||||
seriesId: measureData.seriesId || measureData.SeriesId,
|
||||
instanceId: measureData.instanceId || measureData.InstanceId || referencedImageParams.instanceId || null,
|
||||
frame: measureData.numberOfFrames ?? measureData.NumberOfFrames ?? referencedImageParams.frame
|
||||
}
|
||||
},
|
||||
getActiveViewportImageLocation() {
|
||||
const viewportRef = this.$refs[`${this.viewportKey}-${this.activeViewportIndex}`]?.[0]
|
||||
const currentSeries = viewportRef?.series
|
||||
if (!currentSeries) return null
|
||||
const renderingEngine = getRenderingEngine(renderingEngineId)
|
||||
const viewport = renderingEngine?.getViewport(`${this.viewportKey}-${this.activeViewportIndex}`)
|
||||
const currentImageId = viewport?.getCurrentImageId?.()
|
||||
const currentImageParams = currentImageId ? this.getInstanceInfo(currentImageId) : {}
|
||||
return {
|
||||
visitTaskId: currentSeries.TaskInfo?.VisitTaskId,
|
||||
studyId: currentSeries.StudyId,
|
||||
seriesId: currentSeries.Id,
|
||||
instanceId: currentImageParams.instanceId || null,
|
||||
frame: currentImageParams.frame
|
||||
}
|
||||
},
|
||||
isActiveViewportAtMeasureLocation(measureData) {
|
||||
const targetLocation = this.getMeasureImageLocation(measureData)
|
||||
const currentLocation = this.getActiveViewportImageLocation()
|
||||
if (!currentLocation || !targetLocation.seriesId) return false
|
||||
if (targetLocation.visitTaskId && currentLocation.visitTaskId !== targetLocation.visitTaskId) return false
|
||||
if (targetLocation.studyId && currentLocation.studyId !== targetLocation.studyId) return false
|
||||
if (currentLocation.seriesId !== targetLocation.seriesId) return false
|
||||
if (targetLocation.instanceId && currentLocation.instanceId !== targetLocation.instanceId) return false
|
||||
return currentLocation.frame === targetLocation.frame
|
||||
},
|
||||
async getScreenshots(measureData, callback) {
|
||||
if (measureData) {
|
||||
if (!this.isActiveViewportAtMeasureLocation(measureData.annotation)) {
|
||||
await this.imageLocation(measureData)
|
||||
}
|
||||
await this.imageLocation(measureData)
|
||||
const divForDownloadViewport = document.querySelector(
|
||||
`div[data-viewport-uid="${this.viewportKey}-${this.activeViewportIndex}"]`
|
||||
)
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
<el-form-item :label="$t('segment:form:label:studyName')" prop="taskBlindName">
|
||||
<el-select v-model="form.studyId" clearable @change="(e) => handleChange(e, 'study')"
|
||||
@clear="(e) => handleClear(e, 'study')">
|
||||
<el-option v-for="item in studyList" :key="item.StudyId"
|
||||
:label="taskInfo.IsReadingTaskViewInOrder !== 0 ? item.StudyCode : `${item.Modalities}(${item.SeriesCount})`"
|
||||
<el-option v-for="item in studyList" :key="item.StudyId" :label="item.StudyCode"
|
||||
:value="item.StudyId" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
@@ -88,13 +87,12 @@ export default {
|
||||
}, trigger: ['blur', 'change']
|
||||
}
|
||||
]
|
||||
},
|
||||
taskInfo: {}
|
||||
}
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.taskInfo = JSON.parse(sessionStorage.getItem('taskInfo'))
|
||||
},
|
||||
// mounted() {
|
||||
// this.init()
|
||||
// },
|
||||
methods: {
|
||||
setSeries(series) {
|
||||
this.series = series
|
||||
|
||||
@@ -150,8 +150,6 @@ export default {
|
||||
originalMarkers: [],
|
||||
markers: { top: '', right: '', bottom: '', left: '' },
|
||||
playClipState: false,
|
||||
clipFramesPerSecond: null,
|
||||
toggleClipPlayTimer: null,
|
||||
wwwcIdx: 2,
|
||||
loading: false,
|
||||
forceFitToWindow: false,
|
||||
@@ -171,10 +169,6 @@ export default {
|
||||
this.resizeObserver.unobserve(this.element)
|
||||
this.resizeObserver.disconnect()
|
||||
}
|
||||
if (this.toggleClipPlayTimer) {
|
||||
clearInterval(this.toggleClipPlayTimer)
|
||||
this.toggleClipPlayTimer = null
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
initViewport() {
|
||||
@@ -216,11 +210,12 @@ export default {
|
||||
this.imageInfo.imageOrientationPatient = imagePlaneModule.imageOrientationPatient
|
||||
this.imageInfo.imagePositionPatient = imagePlaneModule.imagePositionPatient
|
||||
this.imageInfo.location = imagePlaneModule.sliceLocation
|
||||
// this.imageInfo.wwwc = `${Math.round(detail.image.windowWidth)}/${Math.round(detail.image.windowCenter)}`
|
||||
this.getOrientationMarker()
|
||||
const toolGroup = cornerstoneTools.ToolGroupManager.getToolGroup(this.viewportId)
|
||||
if (toolGroup) {
|
||||
toolGroup.setToolEnabled('ScaleOverlay')
|
||||
}
|
||||
this.$emit('renderAnnotations', this.series)
|
||||
const toolGroupId = this.viewportId
|
||||
const toolGroup = cornerstoneTools.ToolGroupManager.getToolGroup(toolGroupId)
|
||||
toolGroup.setToolEnabled('ScaleOverlay')
|
||||
},
|
||||
imageRendered(e) {
|
||||
const renderingEngine = getRenderingEngine(this.renderingEngineId)
|
||||
@@ -317,61 +312,14 @@ export default {
|
||||
}
|
||||
},
|
||||
toggleClipPlay(isPlay, framesPerSecond) {
|
||||
this.playClipState = isPlay
|
||||
const renderingEngine = getRenderingEngine(this.renderingEngineId)
|
||||
if (!renderingEngine) return
|
||||
const viewport = renderingEngine.getViewport(this.viewportId)
|
||||
if (!viewport?.element) return
|
||||
|
||||
const parsedFramesPerSecond = Number(framesPerSecond)
|
||||
const nextFramesPerSecond = Number.isFinite(parsedFramesPerSecond)
|
||||
? parsedFramesPerSecond
|
||||
: (this.clipFramesPerSecond || 15)
|
||||
const isSameSpeedWhilePlaying = this.playClipState &&
|
||||
isPlay &&
|
||||
this.clipFramesPerSecond === nextFramesPerSecond
|
||||
|
||||
if (isPlay) {
|
||||
if (isSameSpeedWhilePlaying) return
|
||||
|
||||
cornerstoneTools.utilities.cine.stopClip(viewport.element)
|
||||
if (this.toggleClipPlayTimer) {
|
||||
clearInterval(this.toggleClipPlayTimer)
|
||||
this.toggleClipPlayTimer = null
|
||||
}
|
||||
|
||||
const frameInterval = Math.max(16, Math.round(1000 / nextFramesPerSecond))
|
||||
this.toggleClipPlayTimer = setInterval(() => {
|
||||
const imageIds = viewport.getImageIds()
|
||||
if (!imageIds?.length) return
|
||||
|
||||
let index = viewport.getCurrentImageIdIndex() + 1
|
||||
if (index > imageIds.length - 1) {
|
||||
index = 0
|
||||
}
|
||||
|
||||
csUtils.jumpToSlice(viewport.element, {
|
||||
imageIndex: index,
|
||||
debounceLoading: false
|
||||
})
|
||||
}, frameInterval)
|
||||
this.clipFramesPerSecond = nextFramesPerSecond
|
||||
this.playClipState = true
|
||||
cornerstoneTools.utilities.cine.playClip(viewport.element, { framesPerSecond, loop: true })
|
||||
} else {
|
||||
cornerstoneTools.utilities.cine.stopClip(viewport.element)
|
||||
if (this.toggleClipPlayTimer) {
|
||||
clearInterval(this.toggleClipPlayTimer)
|
||||
this.toggleClipPlayTimer = null
|
||||
}
|
||||
this.clipFramesPerSecond = null
|
||||
this.playClipState = false
|
||||
}
|
||||
},
|
||||
syncViewportStaticState() {
|
||||
this.getOrientationMarker()
|
||||
this.$emit('renderAnnotations', this.series)
|
||||
const toolGroup = cornerstoneTools.ToolGroupManager.getToolGroup(this.viewportId)
|
||||
if (toolGroup) {
|
||||
toolGroup.setToolEnabled('ScaleOverlay')
|
||||
}
|
||||
},
|
||||
scrollPage(type) {
|
||||
@@ -391,13 +339,7 @@ export default {
|
||||
}
|
||||
// viewport.setImageIdIndex(newImageIdIndex)
|
||||
csUtils.jumpToSlice(viewport.element, { imageIndex: newImageIdIndex })
|
||||
if (this.toggleClipPlayTimer) {
|
||||
clearInterval(this.toggleClipPlayTimer)
|
||||
this.toggleClipPlayTimer = null
|
||||
}
|
||||
cornerstoneTools.utilities.cine.stopClip(viewport.element)
|
||||
this.clipFramesPerSecond = null
|
||||
this.playClipState = false
|
||||
},
|
||||
setZoom(ratio) {
|
||||
const renderingEngine = getRenderingEngine(this.renderingEngineId)
|
||||
@@ -490,7 +432,6 @@ export default {
|
||||
}
|
||||
this.prefetchMetadataInformation(obj.ImageIds, obj.Modality)
|
||||
await viewport.setStack(this.series.Stack, obj.SliceIndex)
|
||||
this.syncViewportStaticState()
|
||||
|
||||
viewport.render()
|
||||
} catch (e) {
|
||||
|
||||
@@ -251,7 +251,7 @@ export default {
|
||||
return i
|
||||
})
|
||||
this.$set(this.visitTaskList[taskIdx], 'Annotations', annotations)
|
||||
this.$refs[visitTaskId][0].initCurrentMaredFiles(annotations)
|
||||
this.$refs[visitTaskId][0].initCurrentMaredFiles()
|
||||
this.$refs.fileViewer.resetAnnotations({ annotations, visitTaskId })
|
||||
},
|
||||
setReadingTaskState(state) {
|
||||
|
||||
@@ -97,7 +97,6 @@ export default {
|
||||
this.taskInfo = JSON.parse(localStorage.getItem('taskInfo'))
|
||||
this.BodyPart.Bodypart = await this.$getBodyPart(this.$route.query.trialId)
|
||||
this.studyList = this.decorateStudyList(this.visitTaskInfo.StudyList || [])
|
||||
this.initCurrentMaredFiles(this.visitTaskInfo.Annotations)
|
||||
if (this.studyList.length === 0) return
|
||||
this.$nextTick(() => {
|
||||
this.activeStudy(this.studyList[0].Id)
|
||||
@@ -111,26 +110,8 @@ export default {
|
||||
})
|
||||
}
|
||||
},
|
||||
'visitTaskInfo.Annotations': {
|
||||
handler(annotations) {
|
||||
this.initCurrentMaredFiles(annotations)
|
||||
},
|
||||
deep: true
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
buildCurrentMarkedFiles(annotations = []) {
|
||||
return annotations.reduce((result, item) => {
|
||||
const fileId = item?.NoneDicomFileId
|
||||
if (!fileId) return result
|
||||
if (!Object.hasOwn(result, fileId)) {
|
||||
result[fileId] = { count: 1 }
|
||||
} else {
|
||||
result[fileId].count++
|
||||
}
|
||||
return result
|
||||
}, {})
|
||||
},
|
||||
decorateStudyList(studyList = []) {
|
||||
return studyList.map(study => ({
|
||||
...study,
|
||||
@@ -223,9 +204,6 @@ export default {
|
||||
if (type === 'remove') {
|
||||
if (Object.hasOwn(this.currentMarkedFiles, fileId)) {
|
||||
this.currentMarkedFiles[fileId].count--
|
||||
if (this.currentMarkedFiles[fileId].count <= 0) {
|
||||
this.$delete(this.currentMarkedFiles, fileId)
|
||||
}
|
||||
}
|
||||
} else if (type === 'add') {
|
||||
if (!Object.hasOwn(this.currentMarkedFiles, fileId)) {
|
||||
@@ -236,8 +214,15 @@ export default {
|
||||
|
||||
}
|
||||
},
|
||||
initCurrentMaredFiles(annotations = this.visitTaskInfo.Annotations || []) {
|
||||
this.currentMarkedFiles = this.buildCurrentMarkedFiles(annotations)
|
||||
initCurrentMaredFiles() {
|
||||
this.currentMarkedFiles = {}
|
||||
this.visitTaskInfo.Annotations.map(i => {
|
||||
if (!Object.hasOwn(this.currentMarkedFiles, i.NoneDicomFileId)) {
|
||||
this.$set(this.currentMarkedFiles, i.NoneDicomFileId, { count: 1 })
|
||||
} else {
|
||||
this.currentMarkedFiles[i.NoneDicomFileId].count++
|
||||
}
|
||||
})
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
@@ -120,7 +120,7 @@ export default {
|
||||
// if (this.VUE_APP_OSS_PATH === '/uat/dist') {
|
||||
// this.form = {
|
||||
// EmailFromEmail: 'uat@extimaging.com',
|
||||
// EmailFromName: 'Uat RPC lmaging Trial Management System',
|
||||
// EmailFromName: 'Uat EIC lmaging Trial Management System',
|
||||
// EmailAuthorizationCode: 'SHzyyl2021',
|
||||
// EmailSMTPServerAddress: 'smtp.qiye.aliyun.com',
|
||||
// EmailSMTPServerPort: 465,
|
||||
@@ -130,7 +130,7 @@ export default {
|
||||
// if (this.VUE_APP_OSS_PATH === '/test/dist') {
|
||||
// this.form = {
|
||||
// EmailFromEmail: 'test@extimaging.com',
|
||||
// EmailFromName: 'Test RPC lmaging Trial Management System',
|
||||
// EmailFromName: 'Test EIC lmaging Trial Management System',
|
||||
// EmailAuthorizationCode: 'SHzyyl2021',
|
||||
// EmailSMTPServerAddress: 'smtp.qiye.aliyun.com',
|
||||
// EmailSMTPServerPort: 465,
|
||||
|
||||
@@ -11,7 +11,7 @@ const webpack = require('webpack')
|
||||
const defaultSettings = require('./src/settings.js')
|
||||
const moment = require('moment')
|
||||
var distDate = moment(new Date()).format('YYYY-MM-DD')
|
||||
const name = process.env.NODE_ENV === 'usa' ? 'Imaging Trial Management System' : defaultSettings.title || 'RPC lmaging Trial Management System' // page title
|
||||
const name = process.env.NODE_ENV === 'usa' ? 'Imaging Trial Management System' : defaultSettings.title || 'HASC lmaging Trial Management System' // page title
|
||||
// const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin
|
||||
// eslint-disable-next-line no-undef
|
||||
module.exports = defineConfig({
|
||||
|
||||