非dicom文件更改
parent
c6a6029f38
commit
fa173a32fb
|
@ -101,7 +101,7 @@
|
||||||
@mouseup="sliderMouseup($event, index)"
|
@mouseup="sliderMouseup($event, index)"
|
||||||
@mousemove="sliderMousemove($event, index)"
|
@mousemove="sliderMousemove($event, index)"
|
||||||
>
|
>
|
||||||
<div v-show="v.fileType === 'image/jpeg'" :ref="`canvas-${index}`" class="content">
|
<div v-show="imageType.includes(v.fileType)" :ref="`canvas-${index}`" class="content">
|
||||||
<div class="left-top-text">
|
<div class="left-top-text">
|
||||||
<div
|
<div
|
||||||
v-if="v.taskInfo.IsExistsClinicalData"
|
v-if="v.taskInfo.IsExistsClinicalData"
|
||||||
|
@ -263,7 +263,8 @@ export default {
|
||||||
taskInfo: null,
|
taskInfo: null,
|
||||||
activeTool: '',
|
activeTool: '',
|
||||||
readingTaskState: 2,
|
readingTaskState: 2,
|
||||||
renderHistoryAnnotationTaskIds: []
|
renderHistoryAnnotationTaskIds: [],
|
||||||
|
imageType: ['image/jpeg', 'image/jpg', 'image/bmp', 'image/png']
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
@ -493,7 +494,7 @@ export default {
|
||||||
if (!obj || Object.keys(obj).length === 0) return
|
if (!obj || Object.keys(obj).length === 0) return
|
||||||
const i = this.viewportInfos.findIndex(i => i.index === this.activeCanvasIndex)
|
const i = this.viewportInfos.findIndex(i => i.index === this.activeCanvasIndex)
|
||||||
if (i === -1) return
|
if (i === -1) return
|
||||||
if (obj.studyId === this.viewportInfos[i].studyId && this.viewportInfos[i].fileType === 'image/jpeg' && obj.fileInfo.FileType === 'image/jpeg') {
|
if (obj.studyId === this.viewportInfos[i].studyId && this.imageType.includes(this.viewportInfos[i].fileType) && this.imageType.includes(obj.fileInfo.FileType)) {
|
||||||
const fileIndex = this.viewportInfos[i].fileList.findIndex(i => i.Path === obj.fileInfo.Path)
|
const fileIndex = this.viewportInfos[i].fileList.findIndex(i => i.Path === obj.fileInfo.Path)
|
||||||
this.sliceIndex(fileIndex)
|
this.sliceIndex(fileIndex)
|
||||||
} else {
|
} else {
|
||||||
|
@ -525,8 +526,8 @@ export default {
|
||||||
this.viewportInfos[i].currentFileName = obj.fileInfo.FileName
|
this.viewportInfos[i].currentFileName = obj.fileInfo.FileName
|
||||||
this.viewportInfos[i].studyId = obj.studyId
|
this.viewportInfos[i].studyId = obj.studyId
|
||||||
this.viewportInfos[i].fileType = obj.fileInfo.FileType
|
this.viewportInfos[i].fileType = obj.fileInfo.FileType
|
||||||
if (obj.fileInfo.FileType === 'image/jpeg') {
|
if (this.imageType.includes(obj.fileInfo.FileType)) {
|
||||||
const arr = obj.fileList.filter(i => i.FileType === obj.fileInfo.FileType)
|
const arr = obj.fileList.filter(i => this.imageType.includes(i.FileType))
|
||||||
this.viewportInfos[i].fileList = arr
|
this.viewportInfos[i].fileList = arr
|
||||||
const fileIndex = this.viewportInfos[i].fileList.findIndex(i => i.Path === obj.fileInfo.Path)
|
const fileIndex = this.viewportInfos[i].fileList.findIndex(i => i.Path === obj.fileInfo.Path)
|
||||||
this.viewportInfos[i].currentImageIdIndex = fileIndex
|
this.viewportInfos[i].currentImageIdIndex = fileIndex
|
||||||
|
@ -648,7 +649,7 @@ export default {
|
||||||
// 切换全屏
|
// 切换全屏
|
||||||
toggleFullScreen(e, index) {
|
toggleFullScreen(e, index) {
|
||||||
const i = this.viewportInfos.findIndex(i => i.index === index)
|
const i = this.viewportInfos.findIndex(i => i.index === index)
|
||||||
if (i === -1 && this.viewportInfos[i].fileType !== 'image/jpeg') return
|
if (i === -1 && this.imageType.includes(this.viewportInfos[i].fileType)) return
|
||||||
this.fullScreenIndex = this.fullScreenIndex === index ? null : index
|
this.fullScreenIndex = this.fullScreenIndex === index ? null : index
|
||||||
this.activeCanvasIndex = index
|
this.activeCanvasIndex = index
|
||||||
},
|
},
|
||||||
|
@ -847,12 +848,12 @@ export default {
|
||||||
},
|
},
|
||||||
sliderMouseup(e, index) {
|
sliderMouseup(e, index) {
|
||||||
const i = this.viewportInfos.findIndex(i => i.index === index)
|
const i = this.viewportInfos.findIndex(i => i.index === index)
|
||||||
if (i === -1 && this.viewportInfos[i].fileType !== 'image/jpeg') return
|
if (i === -1 && this.imageType.includes(this.viewportInfos[i].fileType)) return
|
||||||
this.viewportInfos[i].isMove = false
|
this.viewportInfos[i].isMove = false
|
||||||
},
|
},
|
||||||
sliderMousemove(e, index) {
|
sliderMousemove(e, index) {
|
||||||
const i = this.viewportInfos.findIndex(i => i.index === index)
|
const i = this.viewportInfos.findIndex(i => i.index === index)
|
||||||
if (i === -1 && this.viewportInfos[i].fileType !== 'image/jpeg') return
|
if (i === -1 && this.imageType.includes(this.viewportInfos[i].fileType)) return
|
||||||
if (!this.viewportInfos[i].isMove) return
|
if (!this.viewportInfos[i].isMove) return
|
||||||
const delta = this.viewportInfos[i].oldB - (this.viewportInfos[i].oldM - e.clientY)
|
const delta = this.viewportInfos[i].oldB - (this.viewportInfos[i].oldM - e.clientY)
|
||||||
const boxHeight = this.$refs[`sliderBox-${index}`][0].clientHeight
|
const boxHeight = this.$refs[`sliderBox-${index}`][0].clientHeight
|
||||||
|
|
|
@ -12,12 +12,12 @@ const defaultSettings = require('./src/settings.js')
|
||||||
const moment = require('moment')
|
const moment = require('moment')
|
||||||
var distDate = moment(new Date()).format('YYYY-MM-DD')
|
var distDate = moment(new Date()).format('YYYY-MM-DD')
|
||||||
const name = process.env.NODE_ENV === 'usa' ? 'LILI' : defaultSettings.title || 'IRCIS' // page title
|
const name = process.env.NODE_ENV === 'usa' ? 'LILI' : defaultSettings.title || 'IRCIS' // page title
|
||||||
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
|
// const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin
|
||||||
// eslint-disable-next-line no-undef
|
// eslint-disable-next-line no-undef
|
||||||
module.exports = defineConfig({
|
module.exports = defineConfig({
|
||||||
// lintOnSave: false,
|
// lintOnSave: false,
|
||||||
transpileDependencies: false,
|
transpileDependencies: false,
|
||||||
publicPath: process.env.NODE_ENV === 'development' || process.env.VUE_APP_OSS_CONFIG_BUCKET === 'zyypacs-usa' ? process.env.VUE_APP_BASE_PATH : `${process.env.VUE_FILE_PATH}${process.env.VUE_APP_OSS_PATH}${distDate}/`,
|
publicPath: process.env.NODE_ENV === 'development' || process.env.NODE_ENV === 'production' || process.env.VUE_APP_OSS_CONFIG_BUCKET === 'zyypacs-usa' ? process.env.VUE_APP_BASE_PATH : `${process.env.VUE_FILE_PATH}${process.env.VUE_APP_OSS_PATH}${distDate}/`,
|
||||||
// publicPath: '/',
|
// publicPath: '/',
|
||||||
outputDir: 'dist',
|
outputDir: 'dist',
|
||||||
assetsDir: 'static',
|
assetsDir: 'static',
|
||||||
|
|
Loading…
Reference in New Issue