Explorar el Código

阅卷图片遮罩修改

xiatian hace 4 años
padre
commit
fc89aac24e
Se han modificado 1 ficheros con 8 adiciones y 1 borrados
  1. 8 1
      src/modules/marking/views/TpMain.vue

+ 8 - 1
src/modules/marking/views/TpMain.vue

@@ -109,7 +109,9 @@ export default {
   methods: {
     viewPicture(imagesClass, index) {
       const viewer = new Viewer(document.querySelector(imagesClass), {
-        container: "#app",
+        container: "#student_paper",
+        className: "viewPictureStyle",
+        backdrop: "static",
         zIndex: 99999,
         title: false,
         toolbar: {
@@ -544,3 +546,8 @@ img {
   text-align: center;
 }
 </style>
+<style>
+.viewPictureStyle {
+  width: 74%;
+}
+</style>