定圆工具更改及国际化全局替换IRC逻辑更改
continuous-integration/drone/push Build is passing Details

uat_us
caiyiling 2026-04-20 15:20:46 +08:00
parent 7afbc360e5
commit 040f66f182
3 changed files with 586 additions and 920 deletions

1496
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -337,8 +337,10 @@ async function VueInit() {
})
}
let CompanyInfo = JSON.parse(localStorage.getItem('CompanyInfo'))
if (CompanyInfo && CompanyInfo.SystemShortName && text.toUpperCase() !== "CIRCLE") {
let test = new RegExp('IRC', 'ig')
if (CompanyInfo && CompanyInfo.SystemShortName && (text.toUpperCase() !== "CIRCLE")) {
// 精准匹配独立单词 IRC
// let test = new RegExp('IRC', 'ig')
let test = new RegExp('\\bIRC\\b', 'ig')
text = text.replace(test, CompanyInfo.SystemShortName)
}
// return i18n.t(key)

View File

@ -136,7 +136,9 @@ class FixedRadiusCircleROITool extends cornerstoneTools.CircleROITool {
);
triggerAnnotationRenderForViewportIds(viewportIdsToRender);
setTimeout(() => {
triggerAnnotationCompleted(annotation);
}, 0);
return annotation;
};