非dicom阅片更改
parent
a27c6f6f18
commit
8ebf10b373
|
@ -76,6 +76,7 @@
|
|||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import { getTableAnswerRowInfoList } from '@/api/trials'
|
||||
import { on, off } from 'element-ui/src/utils/dom'
|
||||
import { rafThrottle, isFirefox } from 'element-ui/src/utils/util'
|
||||
import store from '@/store'
|
||||
|
@ -222,16 +223,27 @@ export default {
|
|||
getCanvasData() {
|
||||
return new Promise(async resolve => {
|
||||
this.visitTaskId = this.$router.currentRoute.query.visitTaskId
|
||||
this.canvasData = []
|
||||
await store.dispatch('reading/getMeasuredData', this.visitTaskId)
|
||||
await store.dispatch('reading/getNoneDicomMeasuredData', this.visitTaskId).then(res => {
|
||||
res.forEach(item => {
|
||||
if (item && item.MeasureData) {
|
||||
this.canvasData.push(item.MeasureData)
|
||||
this.canvasData = []
|
||||
let res = await getTableAnswerRowInfoList(this.visitTaskId)
|
||||
res.Result.forEach(el => {
|
||||
if (!el.IsDicomReading){
|
||||
if (el.MeasureData) {
|
||||
el.MeasureData = JSON.parse(el.MeasureData)
|
||||
el.MeasureData.data.remark = el.OrderMarkName
|
||||
this.canvasData.push(el.MeasureData)
|
||||
}
|
||||
})
|
||||
sessionStorage.setItem('measureData', this.canvasData)
|
||||
}
|
||||
})
|
||||
sessionStorage.setItem('measureData', this.canvasData)
|
||||
// await store.dispatch('reading/getMeasuredData', this.visitTaskId)
|
||||
// await store.dispatch('reading/getNoneDicomMeasuredData', this.visitTaskId).then(res => {
|
||||
// res.forEach(item => {
|
||||
// if (item && item.MeasureData) {
|
||||
// this.canvasData.push(item.MeasureData)
|
||||
// }
|
||||
// })
|
||||
// sessionStorage.setItem('measureData', this.canvasData)
|
||||
// })
|
||||
resolve()
|
||||
})
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue