-
-
上传院前CT图片
+
@@ -40,6 +36,7 @@
} from '@/config/setting.js';
import emptyImage from '@/assets/images/slice/empty.png'
import ThromInterfereImageDcm from './throm-interfere-image-dcm.vue'
+ import WUpload from '@/components/w-upload/w-upload.vue'
import {
queryFirstAidInspectData,
queryVideo
@@ -76,7 +73,8 @@
},
props: ['outside'],
components: {
- ThromInterfereImageDcm
+ ThromInterfereImageDcm,
+ WUpload
},
computed: {
...mapState('patient', ['patientData', 'writeAble']),
@@ -135,6 +133,15 @@
this.list = data.list
}
},
+ handleUpload({
+ name,
+ url
+ }) {
+ console.log('upload end', 'http://116.204.114.73:20007' + url) //_doc/upload/
+ this.fileList.push(url);
+ const index = this.tabList.findIndex(a => a.key == 'ct')
+ this.tabList[index].tab = `院前CT (${this.fileList.length}张)`
+ },
openCamera() {
if (this.writeAble) {
this.$message.success('患者已审核,内容不可更改')
@@ -148,14 +155,17 @@
// }
const cmr = plus.camera.getCamera();
if (!cmr) {
- this.$message.success('没有可用的摄像头');
- return;
+ this.$message.success('没有可用的摄像头');
+ return;
}
- const res = cmr.supportedImageResolutions.length > 0 ? cmr.supportedImageResolutions[0] : { width: 640, height: 480 }; // 默认分辨率;
+ const res = cmr.supportedImageResolutions.length > 0 ? cmr.supportedImageResolutions[0] : {
+ width: 640,
+ height: 480
+ }; // 默认分辨率;
const fmt = cmr.supportedImageFormats.length > 0 ? cmr.supportedImageFormats[0] : 'jpeg';
if (!res || !fmt) {
- plus.nativeUI.toast('摄像头不支持该格式或分辨率');
- return;
+ plus.nativeUI.toast('摄像头不支持该格式或分辨率');
+ return;
}
// const res = cmr.supportedImageResolutions[0];
// const fmt = cmr.supportedImageFormats[0];
@@ -204,11 +214,11 @@
);
},
onFileChange(event) {
- const file = event.target.files[0];
- if (file) {
- // 处理图片文件
- this.compressImage(file);
- }
+ const file = event.target.files[0];
+ if (file) {
+ // 处理图片文件
+ this.compressImage(file);
+ }
},
//显示图片
showPics(url, name) {
@@ -286,6 +296,17 @@
align-items: center;
}
+
+ .image-box {
+ padding: .5rem;
+ box-sizing: border-box;
+
+ img {
+ width: 100%;
+ height: 100%;
+ }
+ }
+
}
.btns {
diff --git a/src/views/thrombolysis/components/throm-report.vue b/src/views/thrombolysis/components/throm-report.vue
index 3431804..be83962 100644
--- a/src/views/thrombolysis/components/throm-report.vue
+++ b/src/views/thrombolysis/components/throm-report.vue
@@ -109,63 +109,6 @@
{{item.record ? item.record.answer[0] : ''}}
-
-