|
|
|
@ -5,21 +5,23 @@
|
|
|
|
|
<div class="related-study-wrapper">
|
|
|
|
|
<div class="left">
|
|
|
|
|
<div class="visit-name-wrapper">
|
|
|
|
|
|
|
|
|
|
<div v-if="(visitTaskList.length > 0)" style="display: flex;flex-direction: row;">
|
|
|
|
|
<div
|
|
|
|
|
v-if="visitTaskList.length > 0"
|
|
|
|
|
style="display: flex; flex-direction: row"
|
|
|
|
|
>
|
|
|
|
|
<div
|
|
|
|
|
v-for="s in visitTaskList"
|
|
|
|
|
:key="s.VisitTaskId"
|
|
|
|
|
class="visit-item"
|
|
|
|
|
:class="{'visit-item-active': activeTaskVisitId==s.VisitTaskId}"
|
|
|
|
|
|
|
|
|
|
:class="{
|
|
|
|
|
'visit-item-active': activeTaskVisitId == s.VisitTaskId,
|
|
|
|
|
}"
|
|
|
|
|
@click.prevent="handleClick(s)"
|
|
|
|
|
>{{ s.TaskBlindName }}</div>
|
|
|
|
|
|
|
|
|
|
>
|
|
|
|
|
{{ s.TaskBlindName }}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<div class="right">
|
|
|
|
|
<div
|
|
|
|
@ -49,6 +51,9 @@
|
|
|
|
|
<DicomViewer
|
|
|
|
|
v-if="activeTaskVisitId"
|
|
|
|
|
ref="dicomViewer"
|
|
|
|
|
:trial-id="trialId"
|
|
|
|
|
:trial-reading-criterion-id="trialReadingCriterionId"
|
|
|
|
|
:subject-id="subjectId"
|
|
|
|
|
:is-show="isShow"
|
|
|
|
|
:is-exists-clinical-data="isExistsClinicalData"
|
|
|
|
|
:is-exists-no-dicom-file="isExistsNoDicomFile"
|
|
|
|
@ -59,241 +64,325 @@
|
|
|
|
|
@previewCD="previewCD"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<script>
|
|
|
|
|
import StudyList from './CustomizeStudyList'
|
|
|
|
|
import DicomViewer from './CustomizeDicomViewer'
|
|
|
|
|
import DicomEvent from './../components/DicomEvent'
|
|
|
|
|
import store from '@/store'
|
|
|
|
|
import { getToken } from '@/utils/auth'
|
|
|
|
|
import { mapGetters } from 'vuex'
|
|
|
|
|
import StudyList from "./CustomizeStudyList";
|
|
|
|
|
import DicomViewer from "./CustomizeDicomViewer";
|
|
|
|
|
import DicomEvent from "./../components/DicomEvent";
|
|
|
|
|
import store from "@/store";
|
|
|
|
|
import { getToken } from "@/utils/auth";
|
|
|
|
|
import { mapGetters } from "vuex";
|
|
|
|
|
export default {
|
|
|
|
|
name: 'CustomizeReadPage',
|
|
|
|
|
name: "CustomizeReadPage",
|
|
|
|
|
components: {
|
|
|
|
|
DicomViewer,
|
|
|
|
|
StudyList
|
|
|
|
|
StudyList,
|
|
|
|
|
},
|
|
|
|
|
props: {
|
|
|
|
|
isReadingShowSubjectInfo: {
|
|
|
|
|
type: Boolean,
|
|
|
|
|
required: true
|
|
|
|
|
required: true,
|
|
|
|
|
},
|
|
|
|
|
trialId: {
|
|
|
|
|
type: String,
|
|
|
|
|
required: true
|
|
|
|
|
required: true,
|
|
|
|
|
},
|
|
|
|
|
trialReadingCriterionId: {
|
|
|
|
|
type: String,
|
|
|
|
|
required: true,
|
|
|
|
|
},
|
|
|
|
|
subjectId: {
|
|
|
|
|
type: String,
|
|
|
|
|
required: true
|
|
|
|
|
required: true,
|
|
|
|
|
},
|
|
|
|
|
subjectCode: {
|
|
|
|
|
type: String,
|
|
|
|
|
required: true
|
|
|
|
|
required: true,
|
|
|
|
|
},
|
|
|
|
|
visitTaskId: {
|
|
|
|
|
type: String,
|
|
|
|
|
required: true
|
|
|
|
|
required: true,
|
|
|
|
|
},
|
|
|
|
|
isShow: {
|
|
|
|
|
type: Boolean,
|
|
|
|
|
required: true
|
|
|
|
|
required: true,
|
|
|
|
|
},
|
|
|
|
|
isExistsClinicalData: {
|
|
|
|
|
type: Boolean,
|
|
|
|
|
required: true
|
|
|
|
|
required: true,
|
|
|
|
|
},
|
|
|
|
|
isExistsManual: {
|
|
|
|
|
type: Boolean,
|
|
|
|
|
required: true
|
|
|
|
|
required: true,
|
|
|
|
|
},
|
|
|
|
|
isExistsNoDicomFile: {
|
|
|
|
|
type: Boolean,
|
|
|
|
|
required: true
|
|
|
|
|
required: true,
|
|
|
|
|
},
|
|
|
|
|
IseCRFShowInDicomReading: {
|
|
|
|
|
type: Boolean,
|
|
|
|
|
required: true
|
|
|
|
|
required: true,
|
|
|
|
|
},
|
|
|
|
|
isReadingTaskViewInOrder: {
|
|
|
|
|
type: Number,
|
|
|
|
|
required: true
|
|
|
|
|
required: true,
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
activeName: 'relation-study',
|
|
|
|
|
tabs: ['relation-study'],
|
|
|
|
|
activeName: "relation-study",
|
|
|
|
|
tabs: ["relation-study"],
|
|
|
|
|
taskList: [],
|
|
|
|
|
loading: false,
|
|
|
|
|
selectArr: [],
|
|
|
|
|
activeTaskIndex: -1,
|
|
|
|
|
activeTaskVisitId: '',
|
|
|
|
|
activeTaskVisitId: "",
|
|
|
|
|
measureData: [],
|
|
|
|
|
activeTaskIsCurrentTask: false,
|
|
|
|
|
activeTaskIsBaseline: false,
|
|
|
|
|
activeTaskReadingTaskState: 2,
|
|
|
|
|
readingTaskState: 2,
|
|
|
|
|
open: null
|
|
|
|
|
}
|
|
|
|
|
open: null,
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
computed: {
|
|
|
|
|
...mapGetters(['visitTaskList','activeSeries'])
|
|
|
|
|
...mapGetters(["visitTaskList", "activeSeries"]),
|
|
|
|
|
},
|
|
|
|
|
watch: {
|
|
|
|
|
'activeSeries': {
|
|
|
|
|
activeSeries: {
|
|
|
|
|
immediate: true,
|
|
|
|
|
handler(v) {
|
|
|
|
|
if (this.visitTaskList.length === 0) return
|
|
|
|
|
var index = this.visitTaskList.findIndex(i => i.VisitTaskId === v.visitTaskId)
|
|
|
|
|
if (index === -1) return
|
|
|
|
|
this.activeTaskVisitId = v.visitTaskId
|
|
|
|
|
this.activeTaskIndex = index
|
|
|
|
|
this.activeTaskIsCurrentTask = this.visitTaskList[index].IsCurrentTask
|
|
|
|
|
this.activeTaskIsBaseline = this.visitTaskList[index].IsBaseLineTask
|
|
|
|
|
this.activeTaskReadingTaskState = this.visitTaskList[index].ReadingTaskState
|
|
|
|
|
if (this.visitTaskList.length === 0) return;
|
|
|
|
|
var index = this.visitTaskList.findIndex(
|
|
|
|
|
(i) => i.VisitTaskId === v.visitTaskId
|
|
|
|
|
);
|
|
|
|
|
if (index === -1) return;
|
|
|
|
|
this.activeTaskVisitId = v.visitTaskId;
|
|
|
|
|
this.activeTaskIndex = index;
|
|
|
|
|
this.activeTaskIsCurrentTask = this.visitTaskList[index].IsCurrentTask;
|
|
|
|
|
this.activeTaskIsBaseline = this.visitTaskList[index].IsBaseLineTask;
|
|
|
|
|
this.activeTaskReadingTaskState =
|
|
|
|
|
this.visitTaskList[index].ReadingTaskState;
|
|
|
|
|
if (!this.selectArr.includes(this.visitTaskList[index].VisitTaskId)) {
|
|
|
|
|
this.selectArr.push(this.visitTaskList[index].VisitTaskId)
|
|
|
|
|
this.selectArr.push(this.visitTaskList[index].VisitTaskId);
|
|
|
|
|
}
|
|
|
|
|
this.$refs[this.activeTaskVisitId]
|
|
|
|
|
this.$refs[this.activeTaskVisitId];
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|
this.$refs[this.activeTaskVisitId][0].setSeriesActive(v)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
this.$refs[this.activeTaskVisitId][0].setSeriesActive(v);
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
mounted() {
|
|
|
|
|
this.getVisitInfo()
|
|
|
|
|
DicomEvent.$on('getNextVisitInfo', () => {
|
|
|
|
|
this.getNextVisitInfo()
|
|
|
|
|
})
|
|
|
|
|
DicomEvent.$on('toggleSeries', async data => {
|
|
|
|
|
console.log(data)
|
|
|
|
|
var index = this.visitTaskList.findIndex(i => i.VisitTaskId === data.series.visitTaskId)
|
|
|
|
|
if (index === -1) return
|
|
|
|
|
var alignedVisitTaskId = ''
|
|
|
|
|
var i = -1
|
|
|
|
|
this.getVisitInfo();
|
|
|
|
|
DicomEvent.$on("getNextVisitInfo", () => {
|
|
|
|
|
this.getNextVisitInfo();
|
|
|
|
|
});
|
|
|
|
|
DicomEvent.$on("toggleSeries", async (data) => {
|
|
|
|
|
console.log(data);
|
|
|
|
|
var index = this.visitTaskList.findIndex(
|
|
|
|
|
(i) => i.VisitTaskId === data.series.visitTaskId
|
|
|
|
|
);
|
|
|
|
|
if (index === -1) return;
|
|
|
|
|
var alignedVisitTaskId = "";
|
|
|
|
|
var i = -1;
|
|
|
|
|
if (data.type > 0) {
|
|
|
|
|
// 显示下一访视对齐的序列
|
|
|
|
|
i = index + 1
|
|
|
|
|
i = index + 1;
|
|
|
|
|
} else {
|
|
|
|
|
// 显示上一访视对齐的序列
|
|
|
|
|
i = index - 1
|
|
|
|
|
i = index - 1;
|
|
|
|
|
}
|
|
|
|
|
if (i > -1 && i < this.visitTaskList.length) {
|
|
|
|
|
alignedVisitTaskId = this.visitTaskList[i].VisitTaskId
|
|
|
|
|
this.getAlignedSeries(data.series, alignedVisitTaskId, data.measureData, i, data.canvasIndex)
|
|
|
|
|
alignedVisitTaskId = this.visitTaskList[i].VisitTaskId;
|
|
|
|
|
this.getAlignedSeries(
|
|
|
|
|
data.series,
|
|
|
|
|
alignedVisitTaskId,
|
|
|
|
|
data.measureData,
|
|
|
|
|
i,
|
|
|
|
|
data.canvasIndex
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
DicomEvent.$on('isCanActiveNoneDicomTool', data => {
|
|
|
|
|
this.open.postMessage({ type: 'isCanActiveNoneDicomTool', data: data }, window.location)
|
|
|
|
|
})
|
|
|
|
|
DicomEvent.$on('removeNoneDicomMeasureData', data => {
|
|
|
|
|
this.open.postMessage({ type: 'removeNoneDicomMeasureData', data: data }, window.location)
|
|
|
|
|
})
|
|
|
|
|
DicomEvent.$on('addNoneDicomMeasureData', data => {
|
|
|
|
|
this.open.postMessage({ type: 'addNoneDicomMeasureData', data: data }, window.location)
|
|
|
|
|
})
|
|
|
|
|
DicomEvent.$on('selectSeries', data => {
|
|
|
|
|
});
|
|
|
|
|
DicomEvent.$on("isCanActiveNoneDicomTool", (data) => {
|
|
|
|
|
this.open.postMessage(
|
|
|
|
|
{ type: "isCanActiveNoneDicomTool", data: data },
|
|
|
|
|
window.location
|
|
|
|
|
);
|
|
|
|
|
});
|
|
|
|
|
DicomEvent.$on("removeNoneDicomMeasureData", (data) => {
|
|
|
|
|
this.open.postMessage(
|
|
|
|
|
{ type: "removeNoneDicomMeasureData", data: data },
|
|
|
|
|
window.location
|
|
|
|
|
);
|
|
|
|
|
});
|
|
|
|
|
DicomEvent.$on("addNoneDicomMeasureData", (data) => {
|
|
|
|
|
this.open.postMessage(
|
|
|
|
|
{ type: "addNoneDicomMeasureData", data: data },
|
|
|
|
|
window.location
|
|
|
|
|
);
|
|
|
|
|
});
|
|
|
|
|
DicomEvent.$on("selectSeries", (data) => {
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|
this.$refs[this.activeTaskVisitId][0].selectSeries(data)
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
this.$refs[this.activeTaskVisitId][0].selectSeries(data);
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
beforeDestroy() {
|
|
|
|
|
DicomEvent.$off('getNextVisitInfo')
|
|
|
|
|
DicomEvent.$off('toggleSeries')
|
|
|
|
|
DicomEvent.$off('isCanActiveNoneDicomTool')
|
|
|
|
|
DicomEvent.$off('removeNoneDicomMeasureData')
|
|
|
|
|
DicomEvent.$off('addNoneDicomMeasureData')
|
|
|
|
|
DicomEvent.$off('selectSeries')
|
|
|
|
|
DicomEvent.$off("getNextVisitInfo");
|
|
|
|
|
DicomEvent.$off("toggleSeries");
|
|
|
|
|
DicomEvent.$off("isCanActiveNoneDicomTool");
|
|
|
|
|
DicomEvent.$off("removeNoneDicomMeasureData");
|
|
|
|
|
DicomEvent.$off("addNoneDicomMeasureData");
|
|
|
|
|
DicomEvent.$off("selectSeries");
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
async getVisitInfo() {
|
|
|
|
|
const loading = this.$loading({ fullscreen: true })
|
|
|
|
|
const loading = this.$loading({ fullscreen: true });
|
|
|
|
|
|
|
|
|
|
await store.dispatch('reading/getOrganInfo', this.visitTaskId)
|
|
|
|
|
await store.dispatch('reading/getVisitTasks', this.visitTaskId)
|
|
|
|
|
var index = this.visitTaskList.findIndex(i => i.IsCurrentTask)
|
|
|
|
|
await store.dispatch("reading/getOrganInfo", this.visitTaskId);
|
|
|
|
|
await store.dispatch("reading/getVisitTasks", this.visitTaskId);
|
|
|
|
|
var index = this.visitTaskList.findIndex((i) => i.IsCurrentTask);
|
|
|
|
|
if (index > -1) {
|
|
|
|
|
await store.dispatch('reading/getCustomizeMeasuredData', this.visitTaskList[index].VisitTaskId)
|
|
|
|
|
await store.dispatch('reading/getStudyInfo', { trialId: this.trialId, subjectVisitId: this.visitTaskList[index].VisitId, visitTaskId: this.visitTaskList[index].VisitTaskId, taskBlindName: this.visitTaskList[index].TaskBlindName })
|
|
|
|
|
await store.dispatch('reading/getReadingQuestionAndAnswer', { trialId: this.trialId, visitTaskId: this.visitTaskList[index].VisitTaskId })
|
|
|
|
|
await store.dispatch('reading/getDicomReadingQuestionAnswer', { trialId: this.trialId, visitTaskId: this.visitTaskList[index].VisitTaskId })
|
|
|
|
|
await store.dispatch(
|
|
|
|
|
"reading/getCustomizeMeasuredData",
|
|
|
|
|
this.visitTaskList[index].VisitTaskId
|
|
|
|
|
);
|
|
|
|
|
await store.dispatch("reading/getStudyInfo", {
|
|
|
|
|
trialId: this.trialId,
|
|
|
|
|
subjectVisitId: this.visitTaskList[index].VisitId,
|
|
|
|
|
visitTaskId: this.visitTaskList[index].VisitTaskId,
|
|
|
|
|
taskBlindName: this.visitTaskList[index].TaskBlindName,
|
|
|
|
|
});
|
|
|
|
|
await store.dispatch("reading/getReadingQuestionAndAnswer", {
|
|
|
|
|
trialId: this.trialId,
|
|
|
|
|
visitTaskId: this.visitTaskList[index].VisitTaskId,
|
|
|
|
|
});
|
|
|
|
|
await store.dispatch("reading/getDicomReadingQuestionAnswer", {
|
|
|
|
|
trialId: this.trialId,
|
|
|
|
|
visitTaskId: this.visitTaskList[index].VisitTaskId,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
await store.dispatch('reading/setStatus', { visitTaskId: this.visitTaskList[index].VisitTaskId })
|
|
|
|
|
this.activeTaskVisitId = this.visitTaskList[index].VisitTaskId
|
|
|
|
|
this.activeTaskIndex = index
|
|
|
|
|
this.activeTaskIsCurrentTask = this.visitTaskList[index].IsCurrentTask
|
|
|
|
|
this.activeTaskIsBaseline = this.visitTaskList[index].IsBaseLineTask
|
|
|
|
|
this.activeTaskReadingTaskState = this.visitTaskList[index].ReadingTaskState
|
|
|
|
|
this.selectArr.push(this.visitTaskList[index].VisitTaskId)
|
|
|
|
|
await store.dispatch("reading/setStatus", {
|
|
|
|
|
visitTaskId: this.visitTaskList[index].VisitTaskId,
|
|
|
|
|
});
|
|
|
|
|
this.activeTaskVisitId = this.visitTaskList[index].VisitTaskId;
|
|
|
|
|
this.activeTaskIndex = index;
|
|
|
|
|
this.activeTaskIsCurrentTask = this.visitTaskList[index].IsCurrentTask;
|
|
|
|
|
this.activeTaskIsBaseline = this.visitTaskList[index].IsBaseLineTask;
|
|
|
|
|
this.activeTaskReadingTaskState =
|
|
|
|
|
this.visitTaskList[index].ReadingTaskState;
|
|
|
|
|
this.selectArr.push(this.visitTaskList[index].VisitTaskId);
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|
this.$refs[this.activeTaskVisitId][0].initStudyInfo()
|
|
|
|
|
})
|
|
|
|
|
this.$refs[this.activeTaskVisitId][0].initStudyInfo();
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
loading.close()
|
|
|
|
|
loading.close();
|
|
|
|
|
},
|
|
|
|
|
async getNextVisitInfo() {
|
|
|
|
|
const loading = this.$loading({ fullscreen: true })
|
|
|
|
|
var i = this.visitTaskList.length - 1
|
|
|
|
|
await store.dispatch('reading/getMasterSeries', { trialId: this.trialId, visitTaskId: this.visitTaskList[i].VisitTaskId, visitId: this.visitTaskList[i].VisitId })
|
|
|
|
|
await store.dispatch('reading/refreshCustomizeMeasuredData', this.visitTaskList[i].VisitTaskId)
|
|
|
|
|
const loading = this.$loading({ fullscreen: true });
|
|
|
|
|
var i = this.visitTaskList.length - 1;
|
|
|
|
|
await store.dispatch("reading/getMasterSeries", {
|
|
|
|
|
trialId: this.trialId,
|
|
|
|
|
visitTaskId: this.visitTaskList[i].VisitTaskId,
|
|
|
|
|
visitId: this.visitTaskList[i].VisitId,
|
|
|
|
|
});
|
|
|
|
|
await store.dispatch(
|
|
|
|
|
"reading/refreshCustomizeMeasuredData",
|
|
|
|
|
this.visitTaskList[i].VisitTaskId
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
await store.dispatch('reading/getNextVisitTask', { visitTaskId: this.visitTaskId })
|
|
|
|
|
var index = this.visitTaskList.findIndex(i => i.IsCurrentTask)
|
|
|
|
|
await store.dispatch("reading/getNextVisitTask", {
|
|
|
|
|
visitTaskId: this.visitTaskId,
|
|
|
|
|
});
|
|
|
|
|
var index = this.visitTaskList.findIndex((i) => i.IsCurrentTask);
|
|
|
|
|
if (index > -1) {
|
|
|
|
|
await store.dispatch('reading/getCustomizeMeasuredData', this.visitTaskList[index].VisitTaskId)
|
|
|
|
|
await store.dispatch('reading/getStudyInfo', { trialId: this.trialId, subjectVisitId: this.visitTaskList[index].VisitId, visitTaskId: this.visitTaskList[index].VisitTaskId, taskBlindName: this.visitTaskList[index].TaskBlindName })
|
|
|
|
|
await store.dispatch('reading/getReadingQuestionAndAnswer', { trialId: this.trialId, visitTaskId: this.visitTaskList[index].VisitTaskId })
|
|
|
|
|
await store.dispatch('reading/getDicomReadingQuestionAnswer', { trialId: this.trialId, visitTaskId: this.visitTaskList[index].VisitTaskId })
|
|
|
|
|
await store.dispatch(
|
|
|
|
|
"reading/getCustomizeMeasuredData",
|
|
|
|
|
this.visitTaskList[index].VisitTaskId
|
|
|
|
|
);
|
|
|
|
|
await store.dispatch("reading/getStudyInfo", {
|
|
|
|
|
trialId: this.trialId,
|
|
|
|
|
subjectVisitId: this.visitTaskList[index].VisitId,
|
|
|
|
|
visitTaskId: this.visitTaskList[index].VisitTaskId,
|
|
|
|
|
taskBlindName: this.visitTaskList[index].TaskBlindName,
|
|
|
|
|
});
|
|
|
|
|
await store.dispatch("reading/getReadingQuestionAndAnswer", {
|
|
|
|
|
trialId: this.trialId,
|
|
|
|
|
visitTaskId: this.visitTaskList[index].VisitTaskId,
|
|
|
|
|
});
|
|
|
|
|
await store.dispatch("reading/getDicomReadingQuestionAnswer", {
|
|
|
|
|
trialId: this.trialId,
|
|
|
|
|
visitTaskId: this.visitTaskList[index].VisitTaskId,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
await store.dispatch('reading/setStatus', { visitTaskId: this.visitTaskList[index].VisitTaskId })
|
|
|
|
|
this.activeTaskVisitId = this.visitTaskList[index].VisitTaskId
|
|
|
|
|
this.activeTaskIndex = index
|
|
|
|
|
this.activeTaskIsCurrentTask = this.visitTaskList[index].IsCurrentTask
|
|
|
|
|
this.activeTaskIsBaseline = this.visitTaskList[index].IsBaseLineTask
|
|
|
|
|
this.activeTaskReadingTaskState = this.visitTaskList[index].ReadingTaskState
|
|
|
|
|
this.selectArr.push(this.visitTaskList[index].VisitTaskId)
|
|
|
|
|
await store.dispatch("reading/setStatus", {
|
|
|
|
|
visitTaskId: this.visitTaskList[index].VisitTaskId,
|
|
|
|
|
});
|
|
|
|
|
this.activeTaskVisitId = this.visitTaskList[index].VisitTaskId;
|
|
|
|
|
this.activeTaskIndex = index;
|
|
|
|
|
this.activeTaskIsCurrentTask = this.visitTaskList[index].IsCurrentTask;
|
|
|
|
|
this.activeTaskIsBaseline = this.visitTaskList[index].IsBaseLineTask;
|
|
|
|
|
this.activeTaskReadingTaskState =
|
|
|
|
|
this.visitTaskList[index].ReadingTaskState;
|
|
|
|
|
this.selectArr.push(this.visitTaskList[index].VisitTaskId);
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|
this.$refs[this.activeTaskVisitId][0].initStudyInfo()
|
|
|
|
|
})
|
|
|
|
|
this.$refs[this.activeTaskVisitId][0].initStudyInfo();
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
loading.close()
|
|
|
|
|
loading.close();
|
|
|
|
|
},
|
|
|
|
|
async handleClick(visitTaskInfo) {
|
|
|
|
|
if (this.activeTaskVisitId === visitTaskInfo.VisitTaskId) return
|
|
|
|
|
if (this.activeTaskVisitId === visitTaskInfo.VisitTaskId) return;
|
|
|
|
|
|
|
|
|
|
var index = this.visitTaskList.findIndex(i => i.VisitTaskId === visitTaskInfo.VisitTaskId)
|
|
|
|
|
var index = this.visitTaskList.findIndex(
|
|
|
|
|
(i) => i.VisitTaskId === visitTaskInfo.VisitTaskId
|
|
|
|
|
);
|
|
|
|
|
if (!this.visitTaskList[index].IsInit) {
|
|
|
|
|
const loading = this.$loading({ fullscreen: true })
|
|
|
|
|
await store.dispatch('reading/getCustomizeMeasuredData', this.visitTaskList[index].VisitTaskId)
|
|
|
|
|
await store.dispatch('reading/getStudyInfo', { trialId: this.trialId, subjectVisitId: this.visitTaskList[index].VisitId, visitTaskId: this.visitTaskList[index].VisitTaskId, taskBlindName: this.visitTaskList[index].TaskBlindName })
|
|
|
|
|
await store.dispatch('reading/getReadingQuestionAndAnswer', { trialId: this.trialId, visitTaskId: this.visitTaskList[index].VisitTaskId })
|
|
|
|
|
await store.dispatch('reading/getDicomReadingQuestionAnswer', { trialId: this.trialId, visitTaskId: this.visitTaskList[index].VisitTaskId })
|
|
|
|
|
await store.dispatch('reading/setStatus', { visitTaskId: this.visitTaskList[index].VisitTaskId })
|
|
|
|
|
loading.close()
|
|
|
|
|
const loading = this.$loading({ fullscreen: true });
|
|
|
|
|
await store.dispatch(
|
|
|
|
|
"reading/getCustomizeMeasuredData",
|
|
|
|
|
this.visitTaskList[index].VisitTaskId
|
|
|
|
|
);
|
|
|
|
|
await store.dispatch("reading/getStudyInfo", {
|
|
|
|
|
trialId: this.trialId,
|
|
|
|
|
subjectVisitId: this.visitTaskList[index].VisitId,
|
|
|
|
|
visitTaskId: this.visitTaskList[index].VisitTaskId,
|
|
|
|
|
taskBlindName: this.visitTaskList[index].TaskBlindName,
|
|
|
|
|
});
|
|
|
|
|
await store.dispatch("reading/getReadingQuestionAndAnswer", {
|
|
|
|
|
trialId: this.trialId,
|
|
|
|
|
visitTaskId: this.visitTaskList[index].VisitTaskId,
|
|
|
|
|
});
|
|
|
|
|
await store.dispatch("reading/getDicomReadingQuestionAnswer", {
|
|
|
|
|
trialId: this.trialId,
|
|
|
|
|
visitTaskId: this.visitTaskList[index].VisitTaskId,
|
|
|
|
|
});
|
|
|
|
|
await store.dispatch("reading/setStatus", {
|
|
|
|
|
visitTaskId: this.visitTaskList[index].VisitTaskId,
|
|
|
|
|
});
|
|
|
|
|
loading.close();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.activeTaskVisitId = this.visitTaskList[index].VisitTaskId
|
|
|
|
|
this.activeTaskIndex = index
|
|
|
|
|
this.activeTaskIsCurrentTask = this.visitTaskList[index].IsCurrentTask
|
|
|
|
|
this.activeTaskIsBaseline = this.visitTaskList[index].IsBaseLineTask
|
|
|
|
|
this.activeTaskReadingTaskState = this.visitTaskList[index].ReadingTaskState
|
|
|
|
|
this.activeTaskVisitId = this.visitTaskList[index].VisitTaskId;
|
|
|
|
|
this.activeTaskIndex = index;
|
|
|
|
|
this.activeTaskIsCurrentTask = this.visitTaskList[index].IsCurrentTask;
|
|
|
|
|
this.activeTaskIsBaseline = this.visitTaskList[index].IsBaseLineTask;
|
|
|
|
|
this.activeTaskReadingTaskState =
|
|
|
|
|
this.visitTaskList[index].ReadingTaskState;
|
|
|
|
|
if (!this.selectArr.includes(this.visitTaskList[index].VisitTaskId)) {
|
|
|
|
|
this.selectArr.push(this.visitTaskList[index].VisitTaskId)
|
|
|
|
|
this.selectArr.push(this.visitTaskList[index].VisitTaskId);
|
|
|
|
|
}
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|
this.$refs[this.activeTaskVisitId][0].getStudyList()
|
|
|
|
|
})
|
|
|
|
|
this.$refs[this.activeTaskVisitId][0].getStudyList();
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
loadImageStack(seriesInfo) {
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|
this.$refs.dicomViewer.loadImageStack(seriesInfo)
|
|
|
|
|
})
|
|
|
|
|
this.$refs.dicomViewer.loadImageStack(seriesInfo);
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
previewCD() {
|
|
|
|
|
// var token = getToken()
|
|
|
|
@ -301,75 +390,116 @@ export default {
|
|
|
|
|
// path: `/clinicalData?subjectId=${this.subjectId}&trialId=${this.trialId}&visitTaskId=${this.visitTaskId}&TokenKey=${token}`
|
|
|
|
|
// })
|
|
|
|
|
// window.open(routeData.href, '_blank')
|
|
|
|
|
this.$emit('previewCD')
|
|
|
|
|
this.$emit("previewCD");
|
|
|
|
|
},
|
|
|
|
|
previewNoneDicoms(obj) {
|
|
|
|
|
var index = this.visitTaskList.findIndex(i => i.VisitTaskId === obj.visitTaskId)
|
|
|
|
|
var taskBlindName = this.visitTaskList[index].TaskBlindName
|
|
|
|
|
var token = getToken()
|
|
|
|
|
var index = this.visitTaskList.findIndex(
|
|
|
|
|
(i) => i.VisitTaskId === obj.visitTaskId
|
|
|
|
|
);
|
|
|
|
|
var taskBlindName = this.visitTaskList[index].TaskBlindName;
|
|
|
|
|
var token = getToken();
|
|
|
|
|
const routeData = this.$router.resolve({
|
|
|
|
|
path: `/nonedicoms?subjectId=${this.subjectId}&trialId=${this.trialId}&visitTaskId=${obj.visitTaskId}&taskBlindName=${taskBlindName}&readingTaskState=${this.visitTaskList[index].ReadingTaskState}&TokenKey=${token}`
|
|
|
|
|
})
|
|
|
|
|
this.open = window.open(routeData.href, '_blank')
|
|
|
|
|
path: `/nonedicoms?subjectId=${this.subjectId}&trialId=${this.trialId}&visitTaskId=${obj.visitTaskId}&taskBlindName=${taskBlindName}&readingTaskState=${this.visitTaskList[index].ReadingTaskState}&TokenKey=${token}`,
|
|
|
|
|
});
|
|
|
|
|
this.open = window.open(routeData.href, "_blank");
|
|
|
|
|
},
|
|
|
|
|
async getAlignedSeries(baseSeries, visitTaskId, measureData, visitTaskIdx, canvasIndex) {
|
|
|
|
|
var loading = ''
|
|
|
|
|
var index = visitTaskIdx
|
|
|
|
|
async getAlignedSeries(
|
|
|
|
|
baseSeries,
|
|
|
|
|
visitTaskId,
|
|
|
|
|
measureData,
|
|
|
|
|
visitTaskIdx,
|
|
|
|
|
canvasIndex
|
|
|
|
|
) {
|
|
|
|
|
var loading = "";
|
|
|
|
|
var index = visitTaskIdx;
|
|
|
|
|
if (!this.visitTaskList[index].IsInit) {
|
|
|
|
|
loading = this.$loading({ fullscreen: true })
|
|
|
|
|
loading = this.$loading({ fullscreen: true });
|
|
|
|
|
if (!this.visitTaskList[index].measureDataInit) {
|
|
|
|
|
await store.dispatch('reading/getCustomizeMeasuredData', this.visitTaskList[index].VisitTaskId)
|
|
|
|
|
await store.dispatch(
|
|
|
|
|
"reading/getCustomizeMeasuredData",
|
|
|
|
|
this.visitTaskList[index].VisitTaskId
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
if (!this.visitTaskList[index].studyListInit) {
|
|
|
|
|
await store.dispatch('reading/getStudyInfo', { trialId: this.trialId, subjectVisitId: this.visitTaskList[index].VisitId, visitTaskId: this.visitTaskList[index].VisitTaskId, taskBlindName: this.visitTaskList[index].TaskBlindName })
|
|
|
|
|
await store.dispatch("reading/getStudyInfo", {
|
|
|
|
|
trialId: this.trialId,
|
|
|
|
|
subjectVisitId: this.visitTaskList[index].VisitId,
|
|
|
|
|
visitTaskId: this.visitTaskList[index].VisitTaskId,
|
|
|
|
|
taskBlindName: this.visitTaskList[index].TaskBlindName,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
if (!this.visitTaskList[index].readingQuestionsInit) {
|
|
|
|
|
await store.dispatch('reading/getReadingQuestionAndAnswer', { trialId: this.trialId, visitTaskId: this.visitTaskList[index].VisitTaskId })
|
|
|
|
|
await store.dispatch("reading/getReadingQuestionAndAnswer", {
|
|
|
|
|
trialId: this.trialId,
|
|
|
|
|
visitTaskId: this.visitTaskList[index].VisitTaskId,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
if (!this.visitTaskList[index].questionsInit) {
|
|
|
|
|
await store.dispatch('reading/getDicomReadingQuestionAnswer', { trialId: this.trialId, visitTaskId: this.visitTaskList[index].VisitTaskId })
|
|
|
|
|
await store.dispatch("reading/getDicomReadingQuestionAnswer", {
|
|
|
|
|
trialId: this.trialId,
|
|
|
|
|
visitTaskId: this.visitTaskList[index].VisitTaskId,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
await store.dispatch('reading/setStatus', { visitTaskId: this.visitTaskList[index].VisitTaskId })
|
|
|
|
|
await store.dispatch("reading/setStatus", {
|
|
|
|
|
visitTaskId: this.visitTaskList[index].VisitTaskId,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
this.activeTaskVisitId = visitTaskId
|
|
|
|
|
this.activeTaskIndex = index
|
|
|
|
|
this.activeTaskIsCurrentTask = this.visitTaskList[index].IsCurrentTask
|
|
|
|
|
this.activeTaskIsBaseline = this.visitTaskList[index].IsBaseLineTask
|
|
|
|
|
this.activeTaskReadingTaskState = this.visitTaskList[index].ReadingTaskState
|
|
|
|
|
this.activeTaskVisitId = visitTaskId;
|
|
|
|
|
this.activeTaskIndex = index;
|
|
|
|
|
this.activeTaskIsCurrentTask = this.visitTaskList[index].IsCurrentTask;
|
|
|
|
|
this.activeTaskIsBaseline = this.visitTaskList[index].IsBaseLineTask;
|
|
|
|
|
this.activeTaskReadingTaskState =
|
|
|
|
|
this.visitTaskList[index].ReadingTaskState;
|
|
|
|
|
if (!this.selectArr.includes(this.visitTaskList[index].VisitTaskId)) {
|
|
|
|
|
this.selectArr.push(this.visitTaskList[index].VisitTaskId)
|
|
|
|
|
this.selectArr.push(this.visitTaskList[index].VisitTaskId);
|
|
|
|
|
}
|
|
|
|
|
var linkedSeries = this.getSeriesInfoByMark(baseSeries, visitTaskId, measureData, visitTaskIdx)
|
|
|
|
|
var linkedSeries = this.getSeriesInfoByMark(
|
|
|
|
|
baseSeries,
|
|
|
|
|
visitTaskId,
|
|
|
|
|
measureData,
|
|
|
|
|
visitTaskIdx
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
if (linkedSeries) {
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|
linkedSeries.canvasIndex = canvasIndex
|
|
|
|
|
DicomEvent.$emit('loadLinkedImageStack', linkedSeries)
|
|
|
|
|
this.$refs[this.activeTaskVisitId][0].handleActiveSeries(linkedSeries)
|
|
|
|
|
})
|
|
|
|
|
linkedSeries.canvasIndex = canvasIndex;
|
|
|
|
|
DicomEvent.$emit("loadLinkedImageStack", linkedSeries);
|
|
|
|
|
this.$refs[this.activeTaskVisitId][0].handleActiveSeries(
|
|
|
|
|
linkedSeries
|
|
|
|
|
);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
if (loading) {
|
|
|
|
|
loading.close()
|
|
|
|
|
loading.close();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
getLinkedSeries(baseSeries, visitTaskId, visitTaskIdx) {
|
|
|
|
|
var index = visitTaskIdx
|
|
|
|
|
if (index === -1) return
|
|
|
|
|
var visitTaskInfo = this.visitTaskList[index]
|
|
|
|
|
var obj = null
|
|
|
|
|
var studyList = visitTaskInfo.StudyList
|
|
|
|
|
var index = visitTaskIdx;
|
|
|
|
|
if (index === -1) return;
|
|
|
|
|
var visitTaskInfo = this.visitTaskList[index];
|
|
|
|
|
var obj = null;
|
|
|
|
|
var studyList = visitTaskInfo.StudyList;
|
|
|
|
|
// 查找筛选描述一致
|
|
|
|
|
var seriesList = studyList.map(s => s.SeriesList).flat()
|
|
|
|
|
var seriesList = studyList.map((s) => s.SeriesList).flat();
|
|
|
|
|
var similarArr = seriesList.map((i, index) => {
|
|
|
|
|
return { similar: this.strSimilarity2Percent(i.description, baseSeries.description), index }
|
|
|
|
|
})
|
|
|
|
|
return {
|
|
|
|
|
similar: this.strSimilarity2Percent(
|
|
|
|
|
i.description,
|
|
|
|
|
baseSeries.description
|
|
|
|
|
),
|
|
|
|
|
index,
|
|
|
|
|
};
|
|
|
|
|
});
|
|
|
|
|
similarArr = similarArr.sort((a, b) => {
|
|
|
|
|
return b.similar - a.similar
|
|
|
|
|
})
|
|
|
|
|
const i = similarArr[0] && similarArr[0].similar > 0.85 ? similarArr[0].index : -1
|
|
|
|
|
return b.similar - a.similar;
|
|
|
|
|
});
|
|
|
|
|
const i =
|
|
|
|
|
similarArr[0] && similarArr[0].similar > 0.85
|
|
|
|
|
? similarArr[0].index
|
|
|
|
|
: -1;
|
|
|
|
|
if (i > -1) {
|
|
|
|
|
obj = seriesList[i]
|
|
|
|
|
obj = seriesList[i];
|
|
|
|
|
}
|
|
|
|
|
// const idx = seriesList.findIndex(series => series.description === baseSeries.description)
|
|
|
|
|
// idx > -1 ? obj = seriesList[idx] : ''
|
|
|
|
@ -385,101 +515,139 @@ export default {
|
|
|
|
|
// idx > -1 ? obj = seriesList[idx] : ''
|
|
|
|
|
// }
|
|
|
|
|
if (!obj) {
|
|
|
|
|
const idx = seriesList.findIndex(series => series.isDicom && series.instanceCount > 0)
|
|
|
|
|
idx > -1 ? obj = seriesList[idx] : ''
|
|
|
|
|
const idx = seriesList.findIndex(
|
|
|
|
|
(series) => series.isDicom && series.instanceCount > 0
|
|
|
|
|
);
|
|
|
|
|
idx > -1 ? (obj = seriesList[idx]) : "";
|
|
|
|
|
}
|
|
|
|
|
if (obj) {
|
|
|
|
|
let index = Math.floor(obj.imageIds.length * ((baseSeries.imageIdIndex+1) / baseSeries.instanceCount))
|
|
|
|
|
obj.imageIdIndex = index > 0 ? index - 1 : 0
|
|
|
|
|
let index = Math.floor(
|
|
|
|
|
obj.imageIds.length *
|
|
|
|
|
((baseSeries.imageIdIndex + 1) / baseSeries.instanceCount)
|
|
|
|
|
);
|
|
|
|
|
obj.imageIdIndex = index > 0 ? index - 1 : 0;
|
|
|
|
|
}
|
|
|
|
|
return obj
|
|
|
|
|
return obj;
|
|
|
|
|
},
|
|
|
|
|
strSimilarity2Number(s, t) {
|
|
|
|
|
var n = s.length; var m = t.length; var d = []
|
|
|
|
|
var i, j, s_i, t_j, cost
|
|
|
|
|
if (n === 0) return m
|
|
|
|
|
if (m === 0) return n
|
|
|
|
|
var n = s.length;
|
|
|
|
|
var m = t.length;
|
|
|
|
|
var d = [];
|
|
|
|
|
var i, j, s_i, t_j, cost;
|
|
|
|
|
if (n === 0) return m;
|
|
|
|
|
if (m === 0) return n;
|
|
|
|
|
for (i = 0; i <= n; i++) {
|
|
|
|
|
d[i] = []
|
|
|
|
|
d[i][0] = i
|
|
|
|
|
d[i] = [];
|
|
|
|
|
d[i][0] = i;
|
|
|
|
|
}
|
|
|
|
|
for (j = 0; j <= m; j++) {
|
|
|
|
|
d[0][j] = j
|
|
|
|
|
d[0][j] = j;
|
|
|
|
|
}
|
|
|
|
|
for (i = 1; i <= n; i++) {
|
|
|
|
|
s_i = s.charAt(i - 1)
|
|
|
|
|
s_i = s.charAt(i - 1);
|
|
|
|
|
for (j = 1; j <= m; j++) {
|
|
|
|
|
t_j = t.charAt(j - 1)
|
|
|
|
|
t_j = t.charAt(j - 1);
|
|
|
|
|
if (s_i === t_j) {
|
|
|
|
|
cost = 0
|
|
|
|
|
cost = 0;
|
|
|
|
|
} else {
|
|
|
|
|
cost = 1
|
|
|
|
|
cost = 1;
|
|
|
|
|
}
|
|
|
|
|
d[i][j] = this.Minimum(d[i - 1][j] + 1, d[i][j - 1] + 1, d[i - 1][j - 1] + cost)
|
|
|
|
|
d[i][j] = this.Minimum(
|
|
|
|
|
d[i - 1][j] + 1,
|
|
|
|
|
d[i][j - 1] + 1,
|
|
|
|
|
d[i - 1][j - 1] + cost
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return d[n][m]
|
|
|
|
|
return d[n][m];
|
|
|
|
|
},
|
|
|
|
|
// 两个字符串的相似程度,并返回相似度百分比
|
|
|
|
|
strSimilarity2Percent(s, t) {
|
|
|
|
|
var l = s.length > t.length ? s.length : t.length
|
|
|
|
|
var d = this.strSimilarity2Number(s, t)
|
|
|
|
|
return Number((1 - d / l).toFixed(4))
|
|
|
|
|
var l = s.length > t.length ? s.length : t.length;
|
|
|
|
|
var d = this.strSimilarity2Number(s, t);
|
|
|
|
|
return Number((1 - d / l).toFixed(4));
|
|
|
|
|
},
|
|
|
|
|
Minimum(a, b, c) {
|
|
|
|
|
return a < b ? (a < c ? a : c) : (b < c ? b : c)
|
|
|
|
|
return a < b ? (a < c ? a : c) : b < c ? b : c;
|
|
|
|
|
},
|
|
|
|
|
// 根据标记获取标记所在的序列信息
|
|
|
|
|
getSeriesInfoByMark(baseSeries, visitTaskId, obj, visitTaskIdx) {
|
|
|
|
|
var seriesInfo = null
|
|
|
|
|
var seriesInfo = null;
|
|
|
|
|
if (obj) {
|
|
|
|
|
// 根据任务ID测量病灶信息
|
|
|
|
|
var index = visitTaskIdx
|
|
|
|
|
var index = visitTaskIdx;
|
|
|
|
|
if (index > -1) {
|
|
|
|
|
var idx = -1
|
|
|
|
|
var idx = -1;
|
|
|
|
|
if (this.CriterionType === 10) {
|
|
|
|
|
idx = this.visitTaskList[index].MeasureData.findIndex(item => item.OrderMarkName === obj.OrderMarkName)
|
|
|
|
|
idx = this.visitTaskList[index].MeasureData.findIndex(
|
|
|
|
|
(item) => item.OrderMarkName === obj.OrderMarkName
|
|
|
|
|
);
|
|
|
|
|
} else {
|
|
|
|
|
idx = this.visitTaskList[index].MeasureData.findIndex(item => item.QuestionId === obj.QuestionId && item.RowIndex === obj.RowIndex)
|
|
|
|
|
idx = this.visitTaskList[index].MeasureData.findIndex(
|
|
|
|
|
(item) =>
|
|
|
|
|
item.QuestionId === obj.QuestionId &&
|
|
|
|
|
item.RowIndex === obj.RowIndex
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
if (idx > -1 && this.visitTaskList[index].MeasureData[idx].MeasureData) {
|
|
|
|
|
var studyList = this.visitTaskList[index].StudyList
|
|
|
|
|
var studyId = this.visitTaskList[index].MeasureData[idx].StudyId
|
|
|
|
|
var seriesId = this.visitTaskList[index].MeasureData[idx].SeriesId
|
|
|
|
|
var instanceId = this.visitTaskList[index].MeasureData[idx].InstanceId
|
|
|
|
|
var studyIdx = studyList.findIndex(study => study.StudyId === studyId)
|
|
|
|
|
if (
|
|
|
|
|
idx > -1 &&
|
|
|
|
|
this.visitTaskList[index].MeasureData[idx].MeasureData
|
|
|
|
|
) {
|
|
|
|
|
var studyList = this.visitTaskList[index].StudyList;
|
|
|
|
|
var studyId = this.visitTaskList[index].MeasureData[idx].StudyId;
|
|
|
|
|
var seriesId = this.visitTaskList[index].MeasureData[idx].SeriesId;
|
|
|
|
|
var instanceId =
|
|
|
|
|
this.visitTaskList[index].MeasureData[idx].InstanceId;
|
|
|
|
|
var studyIdx = studyList.findIndex(
|
|
|
|
|
(study) => study.StudyId === studyId
|
|
|
|
|
);
|
|
|
|
|
if (studyIdx > -1) {
|
|
|
|
|
var seriesIdx = studyList[studyIdx].SeriesList.findIndex(s => s.seriesId === seriesId)
|
|
|
|
|
var seriesIdx = studyList[studyIdx].SeriesList.findIndex(
|
|
|
|
|
(s) => s.seriesId === seriesId
|
|
|
|
|
);
|
|
|
|
|
if (seriesIdx > -1) {
|
|
|
|
|
var series = studyList[studyIdx].SeriesList[seriesIdx]
|
|
|
|
|
var instanceIdx = series.instanceList.findIndex(imageId => !!~imageId.indexOf(instanceId))
|
|
|
|
|
var series = studyList[studyIdx].SeriesList[seriesIdx];
|
|
|
|
|
var instanceIdx = series.instanceList.findIndex(
|
|
|
|
|
(imageId) => !!~imageId.indexOf(instanceId)
|
|
|
|
|
);
|
|
|
|
|
if (instanceIdx > -1) {
|
|
|
|
|
series.imageIdIndex = instanceIdx
|
|
|
|
|
series.imageIdIndex = instanceIdx;
|
|
|
|
|
// series.studyIndex = studyIdx
|
|
|
|
|
// series.seriesIndex = seriesIdx
|
|
|
|
|
// series.visitTaskId = visitTaskId
|
|
|
|
|
// series.studyId = studyId
|
|
|
|
|
seriesInfo = series
|
|
|
|
|
seriesInfo = series;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
seriesInfo = this.getLinkedSeries(baseSeries, visitTaskId, visitTaskIdx)
|
|
|
|
|
seriesInfo = this.getLinkedSeries(
|
|
|
|
|
baseSeries,
|
|
|
|
|
visitTaskId,
|
|
|
|
|
visitTaskIdx
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
seriesInfo = this.getLinkedSeries(baseSeries, visitTaskId, visitTaskIdx)
|
|
|
|
|
seriesInfo = this.getLinkedSeries(
|
|
|
|
|
baseSeries,
|
|
|
|
|
visitTaskId,
|
|
|
|
|
visitTaskIdx
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
seriesInfo = this.getLinkedSeries(baseSeries, visitTaskId, visitTaskIdx)
|
|
|
|
|
}
|
|
|
|
|
return seriesInfo
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
seriesInfo = this.getLinkedSeries(
|
|
|
|
|
baseSeries,
|
|
|
|
|
visitTaskId,
|
|
|
|
|
visitTaskIdx
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
return seriesInfo;
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
.dicom-container {
|
|
|
|
|
|
|
|
|
|
height: 100%;
|
|
|
|
|
// background-color: #fff;
|
|
|
|
|
background-color: #000;
|
|
|
|
@ -499,13 +667,15 @@ export default {
|
|
|
|
|
color: #ffffff;
|
|
|
|
|
border: none;
|
|
|
|
|
}
|
|
|
|
|
/deep/ .el-table, .el-table__expanded-cell {
|
|
|
|
|
/deep/ .el-table,
|
|
|
|
|
.el-table__expanded-cell {
|
|
|
|
|
background-color: #000;
|
|
|
|
|
color: #fff;
|
|
|
|
|
border-color: #444444;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/deep/ .el-table th, .el-table tr {
|
|
|
|
|
/deep/ .el-table th,
|
|
|
|
|
.el-table tr {
|
|
|
|
|
background-color: #000;
|
|
|
|
|
color: #fff;
|
|
|
|
|
border-color: #444444;
|
|
|
|
@ -566,7 +736,6 @@ export default {
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
border: 1px solid #727272;
|
|
|
|
|
// border: 1px solid #ccc;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
.el-tabs {
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
@ -593,7 +762,6 @@ export default {
|
|
|
|
|
/deep/ .el-tabs__item {
|
|
|
|
|
color: #fff;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
.dicom-desc {
|
|
|
|
|
font-weight: bold;
|
|
|
|
|