lsc 2 år sedan
förälder
incheckning
3cb4672c7d
2 ändrade filer med 63 tillägg och 4 borttagningar
  1. 31 2
      src/components/pages/addCourse.vue
  2. 32 2
      src/components/pages/addCourseGM.vue

+ 31 - 2
src/components/pages/addCourse.vue

@@ -100,8 +100,18 @@
             </div>
           </div>
           <div class="rightBox" v-if="this.steps == 1">
+            <div
+              class="updateMask"
+              :style="{ height: rightBoxHeight + 'px' }"
+              v-if="cid && userid != courseUserid"
+            ></div>
             <div class="whiteBg">
-              <div class="right_title">项目基本信息</div>
+              <div
+                class="right_title"
+                :class="{ updateTips: cid && userid != courseUserid }"
+              >
+                项目基本信息
+              </div>
               <div class="basic_box">
                 <div class="big_box">
                   <div class="left_first">
@@ -3294,6 +3304,9 @@ export default {
     };
   },
   computed: {
+    rightBoxHeight: function () {
+      return $(".rightBox")[0] ? $(".rightBox")[0].scrollHeight : 100;
+    },
     offsetLetfPx: function () {
       //addnum可以直接在模板语法里面用,相当于data内的值
       return (
@@ -4068,7 +4081,7 @@ export default {
               _this.unitJson[unitIndex].chapterInfo[0].taskJson[
                 itemTaskIndex
               ].proVisible = false;
-              this.$forceUpdate();
+              _this.$forceUpdate();
             }, 1000);
             _this.inputShow = true;
             if (err) {
@@ -7606,6 +7619,7 @@ ol {
   border-radius: 10px;
   overflow: auto;
   height: calc(100% - 130px);
+  position: relative;
 }
 
 .e_add_top {
@@ -8153,4 +8167,19 @@ ol {
   width: 40px;
   margin-right: 20px;
 }
+
+.updateTips::after {
+  content: "协同编辑课程暂不支持修改基本信息,只支持修改阶段内容。";
+  font-size: 14px;
+  margin-left: 20px;
+  font-weight: 400;
+  color: #ff3a3a;
+}
+
+.updateMask {
+  width: 100%;
+  z-index: 3;
+  top: 0;
+  position: absolute;
+}
 </style>

+ 32 - 2
src/components/pages/addCourseGM.vue

@@ -104,8 +104,19 @@
             </div>
           </div>
           <div class="rightBox" v-if="this.steps == 1">
+            <!-- $(".rightBox").scrollHeight -->
+            <div
+              class="updateMask"
+              :style="{ height: rightBoxHeight + 'px' }"
+              v-if="cid && userid != courseUserid"
+            ></div>
             <div class="whiteBg">
-              <div class="right_title">项目基本信息</div>
+              <div
+                class="right_title"
+                :class="{ updateTips: cid && userid != courseUserid }"
+              >
+                项目基本信息
+              </div>
               <div class="basic_box">
                 <div class="big_box">
                   <div class="left_first">
@@ -3380,6 +3391,9 @@ export default {
     };
   },
   computed: {
+    rightBoxHeight: function () {
+      return $(".rightBox")[0] ? $(".rightBox")[0].scrollHeight : 100;
+    },
     offsetLetfPx: function () {
       //addnum可以直接在模板语法里面用,相当于data内的值
       return (
@@ -4154,7 +4168,7 @@ export default {
               _this.unitJson[unitIndex].chapterInfo[0].taskJson[
                 itemTaskIndex
               ].proVisible = false;
-              this.$forceUpdate();
+              _this.$forceUpdate();
             }, 1000);
             _this.inputShow = true;
             if (err) {
@@ -7724,6 +7738,7 @@ ol {
   overflow: auto;
   height: calc(100% - 255px);
   margin: 0 auto;
+  position: relative;
 }
 
 .e_add_top {
@@ -8292,4 +8307,19 @@ ol {
 .stepsNav >>> .el-breadcrumb__inner.is-link:hover {
   color: #5c549f;
 }
+
+.updateTips::after {
+  content: "协同编辑课程暂不支持修改基本信息,只支持修改阶段内容。";
+  font-size: 14px;
+  margin-left: 20px;
+  font-weight: 400;
+  color: #ff3a3a;
+}
+
+.updateMask {
+  width: 100%;
+  z-index: 3;
+  top: 0;
+  position: absolute;
+}
 </style>