定圆工具更改及国际化全局替换IRC逻辑更改
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
7afbc360e5
commit
040f66f182
File diff suppressed because it is too large
Load Diff
|
|
@ -337,8 +337,10 @@ async function VueInit() {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
let CompanyInfo = JSON.parse(localStorage.getItem('CompanyInfo'))
|
let CompanyInfo = JSON.parse(localStorage.getItem('CompanyInfo'))
|
||||||
if (CompanyInfo && CompanyInfo.SystemShortName && text.toUpperCase() !== "CIRCLE") {
|
if (CompanyInfo && CompanyInfo.SystemShortName && (text.toUpperCase() !== "CIRCLE")) {
|
||||||
let test = new RegExp('IRC', 'ig')
|
// 精准匹配独立单词 IRC
|
||||||
|
// let test = new RegExp('IRC', 'ig')
|
||||||
|
let test = new RegExp('\\bIRC\\b', 'ig')
|
||||||
text = text.replace(test, CompanyInfo.SystemShortName)
|
text = text.replace(test, CompanyInfo.SystemShortName)
|
||||||
}
|
}
|
||||||
// return i18n.t(key)
|
// return i18n.t(key)
|
||||||
|
|
|
||||||
|
|
@ -136,7 +136,9 @@ class FixedRadiusCircleROITool extends cornerstoneTools.CircleROITool {
|
||||||
);
|
);
|
||||||
|
|
||||||
triggerAnnotationRenderForViewportIds(viewportIdsToRender);
|
triggerAnnotationRenderForViewportIds(viewportIdsToRender);
|
||||||
triggerAnnotationCompleted(annotation);
|
setTimeout(() => {
|
||||||
|
triggerAnnotationCompleted(annotation);
|
||||||
|
}, 0);
|
||||||
|
|
||||||
return annotation;
|
return annotation;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue