lsc 2 years ago
parent
commit
256b60e494

File diff suppressed because it is too large
+ 0 - 569
src/components/json2.json


+ 18 - 1
src/components/pages/addCourse.vue

@@ -2100,7 +2100,7 @@
             >
               {{ steps == 4 ? "返回首页" : "上一步" }}
             </button>
-            <button class="info_btn" v-if="steps < 5" @click="nextSteps">
+            <button class="info_btn" v-if="steps < 4" @click="nextSteps">
               {{ steps == 3 ? "确认上传" : "下一步" }}
             </button>
           </div>
@@ -5434,6 +5434,23 @@ export default {
                   ? this.unitJson[j].chapterInfo[i].taskJson[this.taskCount]
                       .toolChoose
                   : [];
+                for (var k in this.unitJson[j].chapterInfo[i].taskJson) {
+                  let _chapterData = [];
+                  for (var c in this.unitJson[j].chapterInfo[i].taskJson[k]
+                    .chapterData) {
+                    if (
+                      this.unitJson[j].chapterInfo[i].taskJson[k].chapterData[c]
+                    ) {
+                      _chapterData.push(
+                        this.unitJson[j].chapterInfo[i].taskJson[k].chapterData[
+                          c
+                        ]
+                      );
+                    }
+                  }
+                  this.unitJson[j].chapterInfo[i].taskJson[k].chapterData =
+                    _chapterData;
+                }
               }
             }
             this.courseName = res.data[0][0].title;

+ 6 - 4
src/components/pages/race/eventCenter.vue

@@ -24,13 +24,13 @@
     <div class="center_btn">
       <el-button
         type="primary"
-        style="background:rgb(112, 135, 228)"
+        style="background: rgb(112, 135, 228)"
         @click="goTo('/addRace?userid=' + userid + '&oid=' + oid)"
         >案例设计(必填)</el-button
       >
       <el-button
         type="primary"
-        style="margin-left:110px;background:rgb(91, 134, 210)"
+        style="margin-left: 110px; background: rgb(91, 134, 210)"
         @click="goToX()"
         >平台实施(选填)</el-button
       >
@@ -62,9 +62,11 @@ export default {
     goTo(path) {
       this.$router.push(path);
     },
-    goToX(){
+    goToX() {
+      this.$message("暂未开放");
+      return;
       window.parent.postMessage({ tools: "46" }, "*");
-    }
+    },
   },
 };
 </script>

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