重传比对算法优化
parent
fc6d99b01d
commit
bc6bbcc29d
|
@ -673,11 +673,9 @@ export default {
|
||||||
var time = data.string('x00080030')
|
var time = data.string('x00080030')
|
||||||
var studyTime = ''
|
var studyTime = ''
|
||||||
if (date) {
|
if (date) {
|
||||||
// date = `${date.substr(0, 4)}-${date.substr(4, 2)}-${date.substr(6, 2)}`
|
|
||||||
date = `${date.substring(0, 4)}-${date.substring(4, 6)}-${date.substring(6, 8)}`
|
date = `${date.substring(0, 4)}-${date.substring(4, 6)}-${date.substring(6, 8)}`
|
||||||
}
|
}
|
||||||
if (time) {
|
if (time) {
|
||||||
// time = `${time.substr(0, 2)}:${time.substr(2, 2)}:${time.substr(4, 2)}`
|
|
||||||
time = `${time.substring(0, 2)}:${time.substring(2, 4)}:${time.substring(4, 6)}`
|
time = `${time.substring(0, 2)}:${time.substring(2, 4)}:${time.substring(4, 6)}`
|
||||||
}
|
}
|
||||||
if(date){
|
if(date){
|
||||||
|
@ -757,11 +755,9 @@ export default {
|
||||||
var time = data.string('x00080031')
|
var time = data.string('x00080031')
|
||||||
var seriesTime = ''
|
var seriesTime = ''
|
||||||
if (date) {
|
if (date) {
|
||||||
// date = `${date.substr(0, 4)}-${date.substr(4, 2)}-${date.substr(6, 2)}`
|
|
||||||
date = `${date.substring(0, 4)}-${date.substring(4, 6)}-${date.substring(6, 8)}`
|
date = `${date.substring(0, 4)}-${date.substring(4, 6)}-${date.substring(6, 8)}`
|
||||||
}
|
}
|
||||||
if (time) {
|
if (time) {
|
||||||
// time = `${time.substr(0, 2)}:${time.substr(2, 2)}:${time.substr(4, 2)}`
|
|
||||||
time = `${time.substring(0, 2)}:${time.substring(2, 4)}:${time.substring(4, 6)}`
|
time = `${time.substring(0, 2)}:${time.substring(2, 4)}:${time.substring(4, 6)}`
|
||||||
}
|
}
|
||||||
if(date){
|
if(date){
|
||||||
|
@ -792,11 +788,9 @@ export default {
|
||||||
var time = data.string('x00080033')
|
var time = data.string('x00080033')
|
||||||
var instanceTime = ''
|
var instanceTime = ''
|
||||||
if (date) {
|
if (date) {
|
||||||
// date = `${date.substr(0, 4)}-${date.substr(4, 2)}-${date.substr(6, 2)}`
|
|
||||||
date = `${date.substring(0, 4)}-${date.substring(4, 6)}-${date.substring(6, 8)}`
|
date = `${date.substring(0, 4)}-${date.substring(4, 6)}-${date.substring(6, 8)}`
|
||||||
}
|
}
|
||||||
if (time) {
|
if (time) {
|
||||||
// time = `${time.substr(0, 2)}:${time.substr(2, 2)}:${time.substr(4, 2)}`
|
|
||||||
time = `${time.substring(0, 2)}:${time.substring(2, 4)}:${time.substring(4, 6)}`
|
time = `${time.substring(0, 2)}:${time.substring(2, 4)}:${time.substring(4, 6)}`
|
||||||
}
|
}
|
||||||
if(date){
|
if(date){
|
||||||
|
@ -824,7 +818,6 @@ export default {
|
||||||
}
|
}
|
||||||
resolve()
|
resolve()
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
// scope.$alert(scope.$t('trials:trials-panel:message:notIsHasDicom'))
|
|
||||||
console.log(error)
|
console.log(error)
|
||||||
resolve()
|
resolve()
|
||||||
}
|
}
|
||||||
|
@ -883,37 +876,47 @@ export default {
|
||||||
var messageArr = []
|
var messageArr = []
|
||||||
res.Result.forEach((item) => {
|
res.Result.forEach((item) => {
|
||||||
const i = this.uploadQueues.findIndex((value) => value.dicomInfo.studyUid === item.StudyInstanceUid)
|
const i = this.uploadQueues.findIndex((value) => value.dicomInfo.studyUid === item.StudyInstanceUid)
|
||||||
|
let instanceUidList = []
|
||||||
|
item.UploadedSeriesList.forEach(v => {
|
||||||
|
v.SOPInstanceUIDList.forEach(v1 => {
|
||||||
|
instanceUidList.push(v1)
|
||||||
|
})
|
||||||
|
})
|
||||||
|
// isReUploadinstanceUidList1.includes(instanceUidList2)
|
||||||
try {
|
try {
|
||||||
this.uploadQueues[i].seriesList.forEach(v => {
|
this.uploadQueues[i].seriesList.forEach(v => {
|
||||||
let o = item.UploadedSeriesList.find(v1 => {
|
let o = item.UploadedSeriesList.find(v1 => {
|
||||||
v.instanceList.forEach(v2 => {
|
return v.seriesUid === v1.SeriesId
|
||||||
let o2 = v1.SOPInstanceUIDList.find(v3 => {
|
// v.instanceList.forEach(v2 => {
|
||||||
console.log(v3, v2.instanceUid)
|
// let o2 = v1.SOPInstanceUIDList.find(v3 => {
|
||||||
return v3 === v2.instanceUid
|
// return v3 === v2.instanceUid
|
||||||
})
|
// })
|
||||||
console.log(v2)
|
// if (!!o2) {
|
||||||
if (!!o2) {
|
// v2.isReUpload = true
|
||||||
v2.isReUpload = true
|
// }
|
||||||
}
|
// })
|
||||||
})
|
|
||||||
})
|
})
|
||||||
if (!!o) {
|
if (!!o) {
|
||||||
v.isReUpload = true
|
v.isReUpload = true
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
this.uploadQueues[i].seriesList.forEach(v => {
|
||||||
|
v.instanceList.forEach(v2 => {
|
||||||
|
let o2 = instanceUidList.find(v3 => {
|
||||||
|
return v3 === v2.instanceUid
|
||||||
|
})
|
||||||
|
if (!!o2) {
|
||||||
|
v2.isReUpload = true
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log(e)
|
console.log(e)
|
||||||
}
|
}
|
||||||
// 不能上传或不能重传时,收集校验结果提示,并取消勾选,设置上传状态
|
// 不能上传或不能重传时,收集校验结果提示,并取消勾选,设置上传状态
|
||||||
if (item.ErrorMesseage) {
|
if (item.ErrorMesseage) {
|
||||||
// Uploading not allowed
|
|
||||||
// this.uploadQueues[i].uploadState.stateText = this.$t('trials:uploadDicomList:label:uploadingNotAllowed')
|
|
||||||
// this.uploadQueues[i].uploadState.selected = true
|
|
||||||
// this.uploadQueues[i].uploadState.stateCode = 'Uploading not allowed'
|
|
||||||
// this.uploadQueues[i].uploadState.errorMessage = item.ErrorMesseage
|
|
||||||
this.uploadQueues[i].uploadState.AllowReUpload = item.AllowReUpload
|
this.uploadQueues[i].uploadState.AllowReUpload = item.AllowReUpload
|
||||||
this.$refs.dicomFilesTable.toggleRowSelection(this.uploadQueues[i])
|
this.$refs.dicomFilesTable.toggleRowSelection(this.uploadQueues[i])
|
||||||
// const msg = `ACC:${this.uploadQueues[i].dicomInfo.accNumber}, ${item.ErrorMesseage}`
|
|
||||||
const msg = `${item.ErrorMesseage}`
|
const msg = `${item.ErrorMesseage}`
|
||||||
messageArr.push(msg)
|
messageArr.push(msg)
|
||||||
}
|
}
|
||||||
|
|
|
@ -638,6 +638,8 @@ import Pagination from '@/components/Pagination'
|
||||||
import moment from 'moment'
|
import moment from 'moment'
|
||||||
import { changeURLStatic } from '@/utils/history.js'
|
import { changeURLStatic } from '@/utils/history.js'
|
||||||
import { getToken } from '@/utils/auth'
|
import { getToken } from '@/utils/auth'
|
||||||
|
|
||||||
|
|
||||||
const searchDataDefault = () => {
|
const searchDataDefault = () => {
|
||||||
return {
|
return {
|
||||||
TrialId: '',
|
TrialId: '',
|
||||||
|
|
|
@ -3,7 +3,7 @@ const path = require('path')
|
||||||
// eslint-disable-next-line no-undef
|
// eslint-disable-next-line no-undef
|
||||||
const defaultSettings = require('./src/settings.js')
|
const defaultSettings = require('./src/settings.js')
|
||||||
const CopyPlugin = require('copy-webpack-plugin')
|
const CopyPlugin = require('copy-webpack-plugin')
|
||||||
// const WebpackAliyunOss = require('webpack-aliyun-oss')
|
const WebpackAliyunOss = require('webpack-aliyun-oss')
|
||||||
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')
|
||||||
console.log(distDate)
|
console.log(distDate)
|
||||||
|
@ -18,8 +18,8 @@ const name = defaultSettings.title || 'IRCIS' // page title
|
||||||
module.exports = {
|
module.exports = {
|
||||||
// lintOnSave: false,
|
// lintOnSave: false,
|
||||||
transpileDependencies: ['@cornerstonejs', 'minio'],
|
transpileDependencies: ['@cornerstonejs', 'minio'],
|
||||||
// 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.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',
|
||||||
productionSourceMap: false,
|
productionSourceMap: false,
|
||||||
|
@ -93,27 +93,27 @@ module.exports = {
|
||||||
to: path.resolve(__dirname, './dist/static'),
|
to: path.resolve(__dirname, './dist/static'),
|
||||||
ignore: ['.*']
|
ignore: ['.*']
|
||||||
}
|
}
|
||||||
])
|
]),
|
||||||
// process.env.NODE_ENV === 'development' || process.env.VUE_APP_OSS_CONFIG_BUCKET === 'zyypacs-usa' ? function() {}
|
process.env.NODE_ENV === 'development' || process.env.VUE_APP_OSS_CONFIG_BUCKET === 'zyypacs-usa' ? function() {}
|
||||||
// : new WebpackAliyunOss({
|
: new WebpackAliyunOss({
|
||||||
// from: ['./dist/**'],
|
from: ['./dist/**'],
|
||||||
// dist: process.env.VUE_APP_OSS_PATH + distDate,
|
dist: process.env.VUE_APP_OSS_PATH + distDate,
|
||||||
// region: process.env.OSS_REGION,
|
region: process.env.OSS_REGION,
|
||||||
// accessKeyId: process.env.OSS_ACCESS_KEY_ID,
|
accessKeyId: process.env.OSS_ACCESS_KEY_ID,
|
||||||
// accessKeySecret: process.env.OSS_ACCESS_KEY_SECRET,
|
accessKeySecret: process.env.OSS_ACCESS_KEY_SECRET,
|
||||||
// bucket: process.env.OSS_BUCKET,
|
bucket: process.env.OSS_BUCKET,
|
||||||
// overwrite: true,
|
overwrite: true,
|
||||||
// setOssPath: filePath => {
|
setOssPath: filePath => {
|
||||||
// const index = filePath.lastIndexOf('dist')
|
const index = filePath.lastIndexOf('dist')
|
||||||
// const Path = filePath.substring(index + 4, filePath.length)
|
const Path = filePath.substring(index + 4, filePath.length)
|
||||||
// return Path.replace(/\\/g, '/')
|
return Path.replace(/\\/g, '/')
|
||||||
// },
|
},
|
||||||
// setHeaders: filePath => {
|
setHeaders: filePath => {
|
||||||
// return {
|
return {
|
||||||
// 'Cache-Control': 'max-age=31536000'
|
'Cache-Control': 'max-age=31536000'
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// })
|
})
|
||||||
// new OfflinePlugin({})
|
// new OfflinePlugin({})
|
||||||
],
|
],
|
||||||
performance: {
|
performance: {
|
||||||
|
|
Loading…
Reference in New Issue