diff --git a/src/main.js b/src/main.js
index 7b1423e2..b1998a3e 100644
--- a/src/main.js
+++ b/src/main.js
@@ -28,25 +28,22 @@ Vue.use(permission)
import Viewer from 'v-viewer'
import './assets/css/viewer.css'
-
-Vue.use(Viewer)
Viewer.setDefaults({
- Options: {
- 'inline': true,
- 'button': true,
- 'navbar': true,
- 'title': true,
- 'toolbar': true,
- 'tooltip': true,
- 'movable': true,
- 'zoomable': true,
- 'rotatable': true,
- 'scalable': true,
- 'transition': true,
- 'keyboard': true,
- 'url': 'data-source'
+ // navbar: true, //底部缩略图
+ toolbar: {
+ zoomIn: true,
+ zoomOut: true,
+ reset: true,
+ prev: true,
+ next: true,
+ rotateLeft: true,
+ rotateRight: true,
+ flipHorizontal: true,
+ flipVertical: true,
}
})
+Vue.use(Viewer)
+
import hasPermi from './directive/permission'
Vue.use(hasPermi)
diff --git a/src/views/trials/trials-panel/reading/ad-review/index.vue b/src/views/trials/trials-panel/reading/ad-review/index.vue
index 5c32a23f..ea386cc9 100644
--- a/src/views/trials/trials-panel/reading/ad-review/index.vue
+++ b/src/views/trials/trials-panel/reading/ad-review/index.vue
@@ -445,7 +445,6 @@ import SignForm from "@/views/trials/components/newSignForm";
import DicomEvent from "@/views/trials/trials-panel/reading/dicoms/components/DicomEvent";
// import store from '@/store'
import { changeURLStatic } from "@/utils/history.js";
-import Viewer from "v-viewer";
export default {
name: "AdReview",
components: { SignForm },
@@ -532,7 +531,6 @@ export default {
// }
// },
mounted() {
- this.initializeViewer();
this.criterionType = parseInt(this.$route.query.criterionType);
this.getAdInfo();
if (this.isReadingShowPreviousResults) {
@@ -960,19 +958,7 @@ export default {
this.loading = false;
console.log(e);
}
- },
- initializeViewer() {
- Viewer.setDefaults({
- toolbar: {
- zoomIn: true,
- zoomOut: true,
- rotateLeft: true,
- rotateRight: true,
- flipHorizontal: true,
- flipVertical: true,
- },
- });
- },
+ }
},
};
diff --git a/src/views/trials/trials-panel/reading/dicoms/components/Lugano/QuestionForm.vue b/src/views/trials/trials-panel/reading/dicoms/components/Lugano/QuestionForm.vue
index c5e7430a..74c2b4a2 100644
--- a/src/views/trials/trials-panel/reading/dicoms/components/Lugano/QuestionForm.vue
+++ b/src/views/trials/trials-panel/reading/dicoms/components/Lugano/QuestionForm.vue
@@ -276,7 +276,6 @@ import { submitTableQuestion, deleteReadingRowAnswer, getIsSuvMaxLesion } from '
// import { uploadPrintscreen } from '@/api/reading'
import DicomEvent from './../DicomEvent'
import store from '@/store'
-import Viewer from 'v-viewer'
export default {
name: 'MeasurementForm',
props: {
@@ -353,7 +352,6 @@ export default {
}
},
mounted() {
- this.initializeViewer()
this.trialId = this.$route.query.trialId
this.initForm()
DicomEvent.$on('handleImageQualityAbnormal', () => {
@@ -380,11 +378,6 @@ export default {
}
}
},
- initializeViewer() {
- Viewer.setDefaults({
- toolbar: { zoomIn: true, zoomOut: true, rotateLeft: true, rotateRight: true, flipHorizontal: true, flipVertical: true }
- })
- },
previewImage() {
this.$refs.viewer[0].$viewer.show()
},
diff --git a/src/views/trials/trials-panel/reading/dicoms/customize/CustomizeQuestionFormItem.vue b/src/views/trials/trials-panel/reading/dicoms/customize/CustomizeQuestionFormItem.vue
index c40d341a..bf289f13 100644
--- a/src/views/trials/trials-panel/reading/dicoms/customize/CustomizeQuestionFormItem.vue
+++ b/src/views/trials/trials-panel/reading/dicoms/customize/CustomizeQuestionFormItem.vue
@@ -239,7 +239,7 @@
- ...
-
+ -->
+
+
+
@@ -801,6 +814,9 @@ export default {
}else{
this.imageUrl = this.OSSclientConfig.basePath + file.url
this.imgVisible = true
+ this.$nextTick(()=>{
+ this.$refs[this.imageUrl].$viewer.show()
+ })
}
},
// 删除图片
diff --git a/src/views/trials/trials-panel/reading/dicoms/customize/CustomizeQuestionItem.vue b/src/views/trials/trials-panel/reading/dicoms/customize/CustomizeQuestionItem.vue
index d6e7223a..ec700485 100644
--- a/src/views/trials/trials-panel/reading/dicoms/customize/CustomizeQuestionItem.vue
+++ b/src/views/trials/trials-panel/reading/dicoms/customize/CustomizeQuestionItem.vue
@@ -138,27 +138,41 @@
>
-
![]()
-
-
-
-
+
+
+
+
+
-
-
+
+
+
-
+
-
![]()
-
-
-
-
+
+
+
+
+
-
-
+
+
+
-
+
-
![]()
-
-
-
-
+
+
+
+
+
-
-
-
-
+
+
+
+
+
-
-
-
- 加载中...
-
-
-
@@ -142,7 +144,8 @@ name: "CustomizeReportPageUpload",
window.open(this.OSSclientConfig.basePath + file.url,'_blank')
}else{
this.imageUrl = this.OSSclientConfig.basePath + file.url
- this.imgVisible = true
+ // this.imgVisible = true
+ this.$refs[file.url].$viewer.show()
}
},
// 删除图片
diff --git a/src/views/trials/trials-panel/reading/medical-feedback/components/ChatForm.vue b/src/views/trials/trials-panel/reading/medical-feedback/components/ChatForm.vue
index 1280f856..5a8c2668 100644
--- a/src/views/trials/trials-panel/reading/medical-feedback/components/ChatForm.vue
+++ b/src/views/trials/trials-panel/reading/medical-feedback/components/ChatForm.vue
@@ -143,7 +143,6 @@ import { getMedicalReviewDialog } from '@/api/trials'
import FeedbackForm from './FeedbackForm'
import mimAvatar from '@/assets/MIM.png'
import irAvatar from '@/assets/IR.png'
-import Viewer from 'v-viewer'
export default {
name: 'ChatForm',
components: { FeedbackForm },
@@ -177,7 +176,6 @@ export default {
}
},
mounted() {
- this.initializeViewer()
this.getMessageList()
},
methods: {
@@ -213,11 +211,6 @@ export default {
this.imagePath = `${this.OSSclientConfig.basePath}${path}`
this.previewDialog = true
this.$refs[path][0].$viewer.show()
- },
- initializeViewer() {
- Viewer.setDefaults({
- toolbar: { zoomIn: true, zoomOut: true, rotateLeft: true, rotateRight: true, flipHorizontal: true, flipVertical: true }
- })
}
}
diff --git a/src/views/trials/trials-panel/reading/mim-medical-audit/components/ChatForm.vue b/src/views/trials/trials-panel/reading/mim-medical-audit/components/ChatForm.vue
index 272555a2..b2012239 100644
--- a/src/views/trials/trials-panel/reading/mim-medical-audit/components/ChatForm.vue
+++ b/src/views/trials/trials-panel/reading/mim-medical-audit/components/ChatForm.vue
@@ -171,7 +171,6 @@ import { getMedicalReviewDialog, sendMedicalReviewDialog } from '@/api/trials'
import FeedbackForm from '@/views/trials/trials-panel/reading/medical-feedback/components/FeedbackForm'
import mimAvatar from '@/assets/MIM.png'
import irAvatar from '@/assets/IR.png'
-import Viewer from 'v-viewer'
export default {
name: 'ChatForm',
components: {
@@ -207,7 +206,6 @@ export default {
}
},
mounted() {
- this.initializeViewer()
this.getMessageList()
},
methods: {
@@ -261,11 +259,6 @@ export default {
this.irFeedbackForm.title = this.$t('trials:medicalFeedback:title:feedback')
this.irFeedbackForm.visible = true
- },
- initializeViewer() {
- Viewer.setDefaults({
- toolbar: { zoomIn: true, zoomOut: true, rotateLeft: true, rotateRight: true, flipHorizontal: true, flipVertical: true }
- })
}
}
diff --git a/src/views/trials/trials-panel/reading/mim-medical-audit/components/Conclusions.vue b/src/views/trials/trials-panel/reading/mim-medical-audit/components/Conclusions.vue
index 6956cc0b..6cf4e87e 100644
--- a/src/views/trials/trials-panel/reading/mim-medical-audit/components/Conclusions.vue
+++ b/src/views/trials/trials-panel/reading/mim-medical-audit/components/Conclusions.vue
@@ -197,7 +197,6 @@
import { saveMedicalReviewInfo } from "@/api/trials";
import ChatForm from "./ChatForm";
import CloseQC from "./CloseQC";
-import Viewer from "v-viewer";
export default {
name: "AuditConclusions",
components: {
@@ -253,7 +252,6 @@ export default {
};
},
mounted() {
- this.initializeViewer();
this.initForm();
},
methods: {
@@ -435,21 +433,9 @@ export default {
var idx = this.fileList.findIndex((i) => i.url === file.url);
if (idx === -1) return;
this.fileList.splice(idx, 1);
- },
- initializeViewer() {
- Viewer.setDefaults({
- toolbar: {
- zoomIn: true,
- zoomOut: true,
- rotateLeft: true,
- rotateRight: true,
- flipHorizontal: true,
- flipVertical: true,
- },
- });
- },
- },
-};
+ }
+ }
+}