lsc 2 years ago
parent
commit
7af55d93b5

+ 1 - 1
dist/index.html

@@ -25,7 +25,7 @@
       height: 100%;
       width: 100%;
       background: #e6eaf0;
-    }</style><link href=./static/css/app.7ffd9ac677a84b7c250f2592c6efebe8.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.3512a67a6213c2df4180.js></script><script type=text/javascript src=./static/js/vendor.f1661c5ebfd33221b88f.js></script><script type=text/javascript src=./static/js/app.5dd61ae186c934a4a935.js></script></body></html><script>function stopSafari() {
+    }</style><link href=./static/css/app.1816bb92521c2a0f844366b0d2c8a92a.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.3512a67a6213c2df4180.js></script><script type=text/javascript src=./static/js/vendor.f1661c5ebfd33221b88f.js></script><script type=text/javascript src=./static/js/app.87a122278282171b4286.js></script></body></html><script>function stopSafari() {
     //阻止safari浏览器双击放大功能
     let lastTouchEnd = 0  //更新手指弹起的时间
     document.documentElement.addEventListener("touchstart", function (event) {

File diff suppressed because it is too large
+ 0 - 0
dist/static/css/app.1816bb92521c2a0f844366b0d2c8a92a.css


File diff suppressed because it is too large
+ 0 - 0
dist/static/css/app.1816bb92521c2a0f844366b0d2c8a92a.css.map


File diff suppressed because it is too large
+ 0 - 0
dist/static/css/app.7ffd9ac677a84b7c250f2592c6efebe8.css


File diff suppressed because it is too large
+ 0 - 0
dist/static/css/app.7ffd9ac677a84b7c250f2592c6efebe8.css.map


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.5dd61ae186c934a4a935.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.87a122278282171b4286.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.87a122278282171b4286.js.map


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/manifest.3512a67a6213c2df4180.js.map


+ 14 - 13
src/components/pages/addCourse.vue

@@ -594,11 +594,11 @@
                                     item1.type == 12 ||
                                     item1.type == 13 ||
                                     item1.type == 7
-                                    " :placeholder="item1.name" @change="
+                                    " v-model="item1.name" :placeholder="item1.name" @change="
     updataVideoT(
       $event,
       unitIndex,
-      chapterIndex,
+      itemTaskIndex,
       index1
     )
     " style="
@@ -793,11 +793,11 @@
                                     <input v-if="item1.type == 2 ||
                                       item1.type == 3 ||
                                       item1.type == 7
-                                      " :placeholder="item1.name" @change="
+                                      " v-model="item1.name" :placeholder="item1.name" @change="
     updataVideoT(
       $event,
       unitIndex,
-      chapterIndex,
+      itemTaskIndex,
       index1
     )
     " style="
@@ -4841,9 +4841,10 @@ export default {
     },
     updataVideoT(e, i, j, ic) {
       e.stopPropagation();
-      this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[
+      this.unitJson[i].chapterInfo[0].taskJson[j].chapterData[
         ic
-      ].name = e.target.value;
+      ].name = JSON.parse(JSON.stringify(e.target.value));
+      this.$forceUpdate();
     },
     upCd(e, i, j, taskCount, ic) {
       e.stopPropagation();
@@ -4851,9 +4852,9 @@ export default {
         return;
       }
       var a =
-        this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1];
+        JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1]));
       this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1] =
-        this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic];
+      JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]));
       this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
       this.$forceUpdate();
     },
@@ -4862,14 +4863,14 @@ export default {
       if (
         ic ==
         this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData.length -
-        1
+          1
       ) {
         return;
       }
       var a =
-        this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1];
+        JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1]));
       this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1] =
-        this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic];
+      JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]));
       this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
       this.$forceUpdate();
     },
@@ -9339,7 +9340,7 @@ ol {
 }
 
 .leftTools+.leftTools{
-  border-top: 2px solid #CAD1DC;
+  border-top: 1px solid #dbdbdb;
   padding-top: 30px;
 }
 
@@ -9996,7 +9997,7 @@ ol {
   justify-content: center;
   align-items: center;
   font-size: 14px;
-  color: #ccc;
+  color: #6e6e6e;
 }
 
 .uploadFm>img {

+ 10 - 8
src/components/pages/course.vue

@@ -1,7 +1,11 @@
 <template>
-  <div class="pb_content" style="height: auto; width: 94%; margin: 0 auto;background: unset;">
-    <div class="pb_head top">
-      <div>
+  <div class="pb_content" style="height: auto; width: 94%; margin: 10px auto;background: unset;">
+    <div style="width:100%;padding:0 21px;background:#fff;border-radius: 5px;">
+      <div class="pb_head top">
+      <div style="
+    display: flex;
+    align-items: center;
+">
         <span class="sub_head">课程管理</span>
         <span
           class="subClick"
@@ -126,6 +130,7 @@
         </div>
       </div>
     </div>
+    </div>
     <div class="line"></div>
     <div class="pb_content_body" style="height: 100%;width: 100%;background: #e6eaf0;margin: 0 auto;">
       <div class="student_head" v-if="false">
@@ -1250,10 +1255,9 @@ export default {
     display: flex;
     justify-content: space-between;
     width: 100% !important;
-    background: #fff;
     box-sizing: border-box;
     margin: 0px auto;
-    padding: 10px 15px;
+    padding: 10px 5px;
 }
 
 .bgColor {
@@ -1678,7 +1682,7 @@ export default {
   height: 2px;
   position: absolute;
   left: 0;
-  bottom: -18px;
+  bottom: -14px;
 }
 
 .subClick {
@@ -1738,9 +1742,7 @@ export default {
 }
 
 .reBox {
-  background: #fff;
     width: 100%;
-    border-radius: 0 5px;
     /* padding-left: 20px; */
     margin: 0 auto;
     box-sizing: border-box;

+ 37 - 27
src/components/pages/easy/addCourse.vue

@@ -218,11 +218,11 @@
                                     item1.type == 12 ||
                                     item1.type == 13 ||
                                     item1.type == 7
-                                    " :placeholder="item1.name" @change="
+                                    " v-model="item1.name" :placeholder="item1.name" @change="
     updataVideoT(
       $event,
       unitIndex,
-      chapterIndex,
+      0,
       index1
     )
     " style="
@@ -243,7 +243,7 @@
                                   white-space: nowrap;
                                   overflow: hidden;
                                   text-overflow: ellipsis;
-                                " readonly="true" @click="selectAttText(itemTaskIndex, index1)" />
+                                " readonly="true" @click="selectAttText(0, index1)" />
                                   <input :placeholder="item1.title ? item1.title : '链接'
                                     " v-if="item1.type == 8" style="
                                   border: none;
@@ -252,27 +252,27 @@
                                   white-space: nowrap;
                                   overflow: hidden;
                                   text-overflow: ellipsis;
-                                " readonly="true" @click="selectLine(itemTaskIndex, index1)" />
+                                " readonly="true" @click="selectLine(0, index1)" />
                                 </div>
                                 <div class="chapter_upload_ic">
                                   <div class="chapter_upload_noSee" v-if="item1.type == 12">
                                   </div>
                                   <div class="chapter_upload_ud" style="z-index: 99">
-                                    <div class="chapter_upload_up" @click="
+                                    <div class="chapter_upload_up" @click.stop="
                                       upCd(
                                         $event,
-                                        unitIndex,
-                                        index,
-                                        itemTaskIndex,
-                                        index1
+                                          unitIndex,
+                                          index,
+                                          0,
+                                          index1
                                       )
                                       "></div>
-                                    <div class="chapter_upload_down" @click="
+                                    <div class="chapter_upload_down" @click.stop="
                                       downCd(
                                         $event,
                                         unitIndex,
                                         index,
-                                        itemTaskIndex,
+                                        0,
                                         index1
                                       )
                                       "></div>
@@ -280,10 +280,10 @@
                                   <div class="chapter_upload_ic_r" @click.stop="
                                     deleteChapterData(
                                       $event,
-                                      unitIndex,
-                                      index,
-                                      index1,
-                                      itemTaskIndex
+                                        unitIndex,
+                                        index,
+                                        index1,
+                                        0
                                     )
                                     ">
                                     <div></div>
@@ -5790,9 +5790,10 @@ export default {
     },
     updataVideoT(e, i, j, ic) {
       e.stopPropagation();
-      this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[
+      this.unitJson[i].chapterInfo[0].taskJson[0].chapterData[
         ic
-      ].name = e.target.value;
+        ].name = JSON.parse(JSON.stringify(e.target.value));
+      this.$forceUpdate();
     },
     upCd(e, i, j, taskCount, ic) {
       e.stopPropagation();
@@ -5800,9 +5801,9 @@ export default {
         return;
       }
       var a =
-        this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1];
+        JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1]));
       this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1] =
-        this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic];
+      JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]));
       this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
       this.$forceUpdate();
     },
@@ -5811,14 +5812,14 @@ export default {
       if (
         ic ==
         this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData.length -
-        1
+          1
       ) {
         return;
       }
       var a =
-        this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1];
+        JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1]));
       this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1] =
-        this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic];
+      JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]));
       this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
       this.$forceUpdate();
     },
@@ -8332,8 +8333,8 @@ export default {
     },
     goToTask(i) {
       $(".rightBox")[0].scrollTop =
-        $(".taskBorder")[i].offsetTop +
-        $(".taskBorder")[i].parentElement.parentElement.offsetTop;
+        $(".taskBorder")[i+1].offsetTop +
+        $(".taskBorder")[i+1].parentElement.parentElement.offsetTop;
       this.isClickColor = i + 1;
     },
     taskMove(type, index) {
@@ -10265,7 +10266,7 @@ ol {
 }
 
 .leftTools+.leftTools{
-  border-top: 2px solid #CAD1DC;
+  border-top: 1px solid #dbdbdb;
   padding-top: 30px;
 }
 .rightTools {
@@ -10904,7 +10905,7 @@ ol {
   justify-content: center;
   align-items: center;
   font-size: 14px;
-  color: #ccc;
+  color: #6e6e6e;
 }
 
 .uploadFm>img {
@@ -11370,9 +11371,18 @@ ol {
 
 
 .isNavTask {
-  /* background: #7e9ebd; */
+  background: #3681FC;
 }
 
+.isNavTask .nt_taskName {
+  color: #fff !important;
+}
+
+.isNavTask .nt_taskTitle {
+  color: #AECCFE !important;
+}
+
+
 .navTask .nt_taskBox {
   width: calc(100% - 40px);
   padding: 0 10px 0 20px;

+ 21 - 11
src/components/pages/task/addCourse.vue

@@ -356,11 +356,11 @@
                                     item1.type == 12 ||
                                     item1.type == 13 ||
                                     item1.type == 7
-                                    " :placeholder="item1.name" @change="
+                                    " v-model="item1.name" :placeholder="item1.name" @change="
     updataVideoT(
       $event,
       unitIndex,
-      chapterIndex,
+      itemTaskIndex,
       index1
     )
     " style="
@@ -8399,9 +8399,10 @@ export default {
     },
     updataVideoT(e, i, j, ic) {
       e.stopPropagation();
-      this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[
+      this.unitJson[i].chapterInfo[0].taskJson[j].chapterData[
         ic
-      ].name = e.target.value;
+      ].name = JSON.parse(JSON.stringify(e.target.value));
+      this.$forceUpdate();
     },
     upCd(e, i, j, taskCount, ic) {
       e.stopPropagation();
@@ -8409,9 +8410,9 @@ export default {
         return;
       }
       var a =
-        this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1];
+        JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1]));
       this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1] =
-        this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic];
+      JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]));
       this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
       this.$forceUpdate();
     },
@@ -8425,9 +8426,9 @@ export default {
         return;
       }
       var a =
-        this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1];
+        JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1]));
       this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1] =
-        this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic];
+      JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]));
       this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
       this.$forceUpdate();
     },
@@ -12845,7 +12846,7 @@ ol {
 }
 
 .leftTools+.leftTools{
-  border-top: 2px solid #CAD1DC;
+  border-top: 1px solid #dbdbdb;
   padding-top: 30px;
 }
 
@@ -13486,7 +13487,7 @@ ol {
   justify-content: center;
   align-items: center;
   font-size: 14px;
-  color: #ccc;
+  color: #6e6e6e;
 }
 
 .uploadFm > img {
@@ -13954,9 +13955,18 @@ ol {
 }
 
 .isNavTask {
-  /* background: #7e9ebd; */
+  background: #3681FC;
+}
+
+.isNavTask .nt_taskName {
+  color: #fff !important;
+}
+
+.isNavTask .nt_taskTitle {
+  color: #AECCFE !important;
 }
 
+
 .navTask .nt_taskBox {
   width: calc(100% - 40px);
   padding: 0 10px 0 20px;

Some files were not shown because too many files changed in this diff