提示框优化
continuous-integration/drone/push Build is passing Details

main
wangxiaoshuang 2025-12-31 11:04:18 +08:00
parent 2f20696827
commit a45ab4edf8
2 changed files with 15 additions and 5 deletions

View File

@ -150,7 +150,9 @@ export default {
let res = await getTrialDocumentList(data)
if (res.IsSuccess) {
const { CurrentPageData } = res.Result
if (CurrentPageData.length <= 0) this.$confirm(this.$t("trials:researchRecord:ImageManual:message:noImageManual"))
if (CurrentPageData.length <= 0) this.$confirm(this.$t("trials:researchRecord:ImageManual:message:noImageManual"), this.$t('system:menu:confirm:title:warning'), {
type: 'warning'
})
}
} catch (err) {
console.log(err)

View File

@ -3286,10 +3286,14 @@ export default {
}
if (!data) {
let { imageOrientationPatient, imagePositionPatient } = this.$refs[`viewport-${this.activeViewportIndex}`][0].imageInfo
if (!imageOrientationPatient || !imagePositionPatient || imagePositionPatient.length <= 0 || imageOrientationPatient.length <= 0) return this.$confirm(this.$t('trials:reading:confirm:imageNotMPR'))
if (!imageOrientationPatient || !imagePositionPatient || imagePositionPatient.length <= 0 || imageOrientationPatient.length <= 0) return this.$confirm(this.$t('trials:reading:confirm:imageNotMPR'), this.$t('system:menu:confirm:title:warning'), {
type: 'warning'
})
}
const series = data ? data : this.$refs[`viewport-${this.activeViewportIndex}`][0].series
if (series.ImageIds.length <= 5) return this.$confirm(this.$t('trials:reading:confirm:smallNumberOfimage'))
if (series.ImageIds.length <= 5) return this.$confirm(this.$t('trials:reading:confirm:smallNumberOfimage'), this.$t('system:menu:confirm:title:warning'), {
type: 'warning'
})
if (series.ImageIds.length > 500) {
let res = await this.getSystemInfo()
if (!res) return false
@ -3315,7 +3319,9 @@ export default {
async handleFusion(data) {
try {
if (!this.isFusion && this.$refs[`ecrf_${this.taskInfo.VisitTaskId}`][0].verifyAnnotationIsSave()) {
const confirm = await this.$confirm(this.$t('trials:reading:confirm:clearnAnnotation'))
const confirm = await this.$confirm(this.$t('trials:reading:confirm:clearnAnnotation'), this.$t('system:menu:confirm:title:warning'), {
type: 'warning'
})
if (!confirm) return false
this.$refs[`ecrf_${this.taskInfo.VisitTaskId}`][0].removeAllNoSaveAnnotation()
}
@ -3473,7 +3479,9 @@ export default {
let discrete = allInfo.webgl.gpuType.discrete; //
let estimatedMemory = allInfo.webgl.memoryInfo.estimatedMemory; //
if (parseFloat(deviceMemory) < 16 || width < 1920 || height < 1080 || !discrete || parseFloat(estimatedMemory) < 2) {
let res = await this.$confirm(this.$t('browser:tip:ReadingConfiguration'))
let res = await this.$confirm(this.$t('browser:tip:ReadingConfiguration'), this.$t('system:menu:confirm:title:warning'), {
type: 'warning'
})
resolve(res)
} else {
resolve(true)