Procházet zdrojové kódy

阅卷图片遮罩修改

xiatian před 4 roky
rodič
revize
fc89aac24e
1 změnil soubory, kde provedl 8 přidání a 1 odebrání
  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>