v2.0.0发布遗留问题
continuous-integration/drone/push Build is passing Details

uat
wangxiaoshuang 2026-03-04 11:23:15 +08:00
parent 1f51bbd178
commit fdb7251b62
5 changed files with 74 additions and 15 deletions

View File

@ -37,7 +37,7 @@ export default {
// console.log(type, No); // console.log(type, No);
if (type !== "Chrome" && type !== "Edge") { if (type !== "Chrome" && type !== "Edge") {
this.tip = this.$t("browser:tip:changeBorwser"); this.tip = this.$t("browser:tip:changeBorwser");
this.getSystemInfo() // this.getSystemInfo()
return (this.visible = true); return (this.visible = true);
} }
let res = await this.getInfo(); let res = await this.getInfo();
@ -53,10 +53,10 @@ export default {
this.tip += "、"; this.tip += "、";
} }
}); });
this.getSystemInfo() // this.getSystemInfo()
return (this.visible = true); return (this.visible = true);
} }
this.getSystemInfo() // this.getSystemInfo()
} catch (err) { } catch (err) {
console.log(err); console.log(err);
} }

View File

@ -704,6 +704,7 @@ import { getAutoCutNextTask } from '@/api/user'
import const_ from '@/const/sign-code' import const_ from '@/const/sign-code'
import { changeURLStatic } from '@/utils/history.js' import { changeURLStatic } from '@/utils/history.js'
import SystemInfo from "@/utils/systemInfo"; import SystemInfo from "@/utils/systemInfo";
import md5 from 'js-md5'
export default { export default {
name: 'DicomViewer', name: 'DicomViewer',
components: { components: {
@ -1138,6 +1139,7 @@ export default {
let windowHeight = document.documentElement.clientHeight; let windowHeight = document.documentElement.clientHeight;
this.AspectRatio = windowWidth / windowHeight this.AspectRatio = windowWidth / windowHeight
}; };
this.getSystemInfoReading()
}, },
beforeDestroy() { beforeDestroy() {
DicomEvent.$off('updateImage') DicomEvent.$off('updateImage')
@ -2501,6 +2503,30 @@ export default {
}) })
}, },
async getSystemInfoReading() {
return new Promise(async resolve => {
let whitelisting = localStorage.getItem('whitelisting') ? JSON.parse(localStorage.getItem('whitelisting')) : []
let user = md5(sessionStorage.getItem('identityUserId'))
let r = whitelisting.some(item => item === user)
if (r) return resolve(true)
const systemInfo = new SystemInfo();
const allInfo = systemInfo.getAllInfo();
let deviceMemory = allInfo.hardware.deviceMemory; //
let { width, height } = allInfo.screen; //
// let discrete = allInfo.webgl.gpuType.discrete; //
// let estimatedMemory = allInfo.webgl.memoryInfo.estimatedMemory; //
// parseFloat(deviceMemory) < 16 ||
if (width < 1920 || height < 1080) {
let res = await this.$confirm(this.$t('browser:tip:Configuration'))
whitelisting.push(user)
localStorage.setItem('whitelisting', JSON.stringify(whitelisting))
resolve(res)
} else {
resolve(true)
}
})
},
} }
} }
</script> </script>

View File

@ -500,6 +500,7 @@ import downloadDicomAndNonedicom from '@/components/downloadDicomAndNonedicom'
import { getNetWorkSpeed, setNetWorkSpeedSizeAll, workSpeedclose } from "@/utils" import { getNetWorkSpeed, setNetWorkSpeedSizeAll, workSpeedclose } from "@/utils"
import readingChart from '@/components/readingChart' import readingChart from '@/components/readingChart'
import SystemInfo from "@/utils/systemInfo"; import SystemInfo from "@/utils/systemInfo";
import md5 from 'js-md5'
const { visibility } = annotation const { visibility } = annotation
const { ViewportType, Events } = Enums const { ViewportType, Events } = Enums
const renderingEngineId = 'myRenderingEngine' const renderingEngineId = 'myRenderingEngine'
@ -812,6 +813,7 @@ export default {
this.open.postMessage({ type: 'addNoneDicomMeasureData', data: data }, window.location) this.open.postMessage({ type: 'addNoneDicomMeasureData', data: data }, window.location)
}) })
document.addEventListener("click", this.foo); document.addEventListener("click", this.foo);
this.getSystemInfoReading();
}, },
methods: { methods: {
setMPRInfo(obj) { setMPRInfo(obj) {
@ -3567,6 +3569,30 @@ export default {
}) })
}, },
async getSystemInfoReading() {
return new Promise(async resolve => {
let whitelisting = localStorage.getItem('whitelisting') ? JSON.parse(localStorage.getItem('whitelisting')) : []
let user = md5(sessionStorage.getItem('identityUserId'))
let r = whitelisting.some(item => item === user)
if (r) return resolve(true)
const systemInfo = new SystemInfo();
const allInfo = systemInfo.getAllInfo();
let deviceMemory = allInfo.hardware.deviceMemory; //
let { width, height } = allInfo.screen; //
// let discrete = allInfo.webgl.gpuType.discrete; //
// let estimatedMemory = allInfo.webgl.memoryInfo.estimatedMemory; //
// parseFloat(deviceMemory) < 16 ||
if (width < 1920 || height < 1080) {
let res = await this.$confirm(this.$t('browser:tip:Configuration'))
whitelisting.push(user)
localStorage.setItem('whitelisting', JSON.stringify(whitelisting))
resolve(res)
} else {
resolve(true)
}
})
},
}, },
beforeDestroy() { beforeDestroy() {
DicomEvent.$off('isCanActiveNoneDicomTool') DicomEvent.$off('isCanActiveNoneDicomTool')

View File

@ -92,6 +92,7 @@ export default {
this.loading = true this.loading = true
getTrialCriterionList(this.$route.query.trialId, false).then(res => { getTrialCriterionList(this.$route.query.trialId, false).then(res => {
this.trialCriterionList = res.Result.filter(item => [1, 18, 2, 3, 7, 10, 17].includes(Number(item.CriterionType))) this.trialCriterionList = res.Result.filter(item => [1, 18, 2, 3, 7, 10, 17].includes(Number(item.CriterionType)))
this.loading = false
if (this.trialCriterionList.length > 0) { if (this.trialCriterionList.length > 0) {
this.TrialReadingCriterionId = this.trialCriterionList[0].TrialReadingCriterionId this.TrialReadingCriterionId = this.trialCriterionList[0].TrialReadingCriterionId
this.getList() this.getList()

View File

@ -145,23 +145,29 @@ export default {
titleText: this.$t("trials:reportForms:cjart:title:VisitFinishedStat"), titleText: this.$t("trials:reportForms:cjart:title:VisitFinishedStat"),
seriesData: [], seriesData: [],
max: 0, max: 0,
legendData: [ legendData: []
this.$t("trials:reportForms:cjart:title:UploadedCount"),
this.$t("trials:reportForms:cjart:title:QCFinishedCount"),
this.$t("trials:reportForms:cjart:title:CheckFinishedCount"),
this.$t("trials:reportForms:cjart:title:ReadingFinishedCount")
]
} }
res.Result.ReadingFinishedCount = res.Result.CriterionList[0].ReadingFinishedCount res.Result.ReadingFinishedCount = res.Result.CriterionList[0].ReadingFinishedCount
let keys = ['UploadedCount', 'QCFinishedCount', 'CheckFinishedCount', 'ReadingFinishedCount'] let keys = ['UploadedCount', 'QCFinishedCount', 'CheckFinishedCount', 'ReadingFinishedCount']
obj.legendData.forEach((item, index) => { keys.forEach((item, index) => {
let o = { if (res.Result[item] != null) {
name: item, let o = {
value: res.Result[keys[index]] name: this.$t(`trials:reportForms:cjart:title:${item}`),
value: res.Result[item]
}
obj.legendData.push(o.name)
obj.seriesData.push(o)
arr.push(res.Result[item])
} }
obj.seriesData.push(o)
arr.push(res.Result[keys[index]])
}) })
// obj.legendData.forEach((item, index) => {
// let o = {
// name: item,
// value: res.Result[keys[index]]
// }
// obj.seriesData.push(o)
// arr.push(res.Result[keys[index]])
// })
obj.max = Math.max(...arr) obj.max = Math.max(...arr)
this.initChart_left(obj) this.initChart_left(obj)
} }