lsc 2 éve
szülő
commit
93805adef3
1 módosított fájl, 10 hozzáadás és 5 törlés
  1. 10 5
      src/components/pages/addCourse.vue

+ 10 - 5
src/components/pages/addCourse.vue

@@ -127,10 +127,10 @@
               }}
             </div>
           </div>
-          <div class="rightBox" v-if="this.steps == 1">
+          <div class="rightBox" v-if="this.steps == 1"  @mousewheel="scrollChange">
             <div
               class="updateMask"
-              :style="{ height: rightBoxHeight + 'px' }"
+              :style="{ height: rightBoxHeight ? rightBoxHeight + 'px' : '100%' }"
               v-if="cid && userid != courseUserid"
             ></div>
             <div class="whiteBg">
@@ -3865,12 +3865,13 @@ export default {
       selectSteps: 1,
       groupJson: {},
       dialogVisibleGroup: false,
+      rightBoxHeight:0
     };
   },
   computed: {
-    rightBoxHeight: function () {
-      return $(".rightBox")[0] ? $(".rightBox")[0].scrollHeight : 100;
-    },
+    // rightBoxHeight: function () {
+    //   return $(".rightBox")[0] ? $(".rightBox")[0].scrollHeight : 1000
+    // },
     offsetLetfPx: function () {
       //addnum可以直接在模板语法里面用,相当于data内的值
       return (
@@ -3966,6 +3967,9 @@ export default {
     },
   },
   methods: {
+    scrollChange(){
+      this.rightBoxHeight = $(".rightBox")[0].scrollHeight
+    },
     handleCheckAllChange(val) {
       this.checkedCities = val ? cityOptions : [];
       this.isIndeterminate = false;
@@ -9292,6 +9296,7 @@ ol {
   z-index: 3;
   top: 0;
   position: absolute;
+  background-color: rgba(0,0,0,.3);
 }
 
 .t_j_box {