Dicom字典渲染更改
continuous-integration/drone/push Build is running Details

uat_us
caiyiling 2024-12-06 16:34:40 +08:00
parent b1d707a7dd
commit 3a20586609
1 changed files with 11 additions and 4 deletions

View File

@ -119,6 +119,9 @@ export default {
} else { } else {
elementObject.tagCode = tag ? tag.tag : '' elementObject.tagCode = tag ? tag.tag : ''
elementObject.tagName = tag ? tag.name : '' elementObject.tagName = tag ? tag.name : ''
if (tag.name === 'PatientName') {
console.log(123)
}
} }
elementObject.tagLength = element.length elementObject.tagLength = element.length
@ -174,6 +177,9 @@ export default {
} else { } else {
if (this.isStringVr(vr)) { if (this.isStringVr(vr)) {
const str = dataSet.string(propertyName) const str = dataSet.string(propertyName)
if (elementObject.tagName === 'PatientName') {
console.log(str)
}
const stringIsAscii = this.isASCII(str) const stringIsAscii = this.isASCII(str)
if (stringIsAscii) { if (stringIsAscii) {
@ -181,9 +187,10 @@ export default {
elementObject.value = str elementObject.value = str
} }
} else { } else {
if (element.length !== 2 && element.length !== 4) { elementObject.value = dataSet.string(propertyName)
// elementObject.value = 'binary data' // if (element.length !== 2 && element.length !== 4) {
} // // elementObject.value = 'binary data'
// }
} }
} else if (vr === 'US') { } else if (vr === 'US') {
let text = dataSet.uint16(propertyName) let text = dataSet.uint16(propertyName)