7 changed files with 103 additions and 8 deletions
-
10src/components/doctorCheck/CheckItemList.vue
-
2src/components/doctorCheck/CheckSumSug.vue
-
80src/components/doctorCheck/PacsDcmPreview.vue
-
3src/components/doctorCheck/RegisterCheckList.vue
-
2src/components/report/BtnReport.vue
-
1src/store/index.js
-
13src/views/doctorCheck/doctorCheck.vue
@ -0,0 +1,80 @@ |
|||
<template> |
|||
<div> |
|||
<iframe :src="iframeSrc" :height="window.pageHeight - 205" :width="window.pageWidth - 320"></iframe> |
|||
</div> |
|||
</template> |
|||
<script> |
|||
|
|||
import { mapState } from "vuex"; |
|||
|
|||
|
|||
export default { |
|||
components: { |
|||
|
|||
}, |
|||
data() { |
|||
return { |
|||
sysConfig: {}, // |
|||
|
|||
checkRequestNo: '', |
|||
|
|||
iframeSrc: '' |
|||
|
|||
|
|||
}; |
|||
}, |
|||
|
|||
created() { |
|||
this.sysConfig = JSON.parse(window.sessionStorage.getItem('sysConfig')) |
|||
}, |
|||
|
|||
//挂载完成 |
|||
mounted() { |
|||
this.brushDcm() |
|||
}, |
|||
|
|||
computed: { |
|||
...mapState([ |
|||
"window", |
|||
"doctorCheck", |
|||
]), |
|||
|
|||
}, |
|||
methods: { |
|||
// 浏览Dcm文件 |
|||
brushDcm() { |
|||
// console.log('this.sysConfig',this.sysConfig,this.doctorCheck.checkRequestNo) |
|||
if(!this.doctorCheck.checkRequestNo) return |
|||
switch (this.doctorCheck.checkTypeFlag) { |
|||
case '2': |
|||
case '3': |
|||
let token = window.sessionStorage.getItem('token') |
|||
this.iframeSrc = '' |
|||
this.iframeSrc = `${this.sysConfig.dcmViewers}/?mrn=${this.doctorCheck.checkRequestNo}&token=${token}&pacsapi=${this.sysConfig.pacsApiHttps}` |
|||
break; |
|||
|
|||
default: |
|||
this.iframeSrc = '' |
|||
break; |
|||
} |
|||
}, |
|||
|
|||
}, |
|||
|
|||
//监听事件 |
|||
watch: { |
|||
//检查项目未切换换时 也可以强制刷新数据 |
|||
"doctorCheck.checkRequestNo": { |
|||
// immediate: true, |
|||
handler(newVal, oldVal) { |
|||
console.log(`watch 检查条码 newVal:${newVal} oldVal:${oldVal}`); |
|||
if (newVal != oldVal) this.brushDcm(); |
|||
} |
|||
}, |
|||
|
|||
}, |
|||
}; |
|||
</script> |
|||
<style scoped> |
|||
|
|||
</style> |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue