lsc 11 months ago
parent
commit
c4981f1447

+ 1 - 1
dist/index.html

@@ -32,7 +32,7 @@
       width: 100%;
       background: #e6eaf0;
       font-family: '黑体';
-    }</style><link href=./static/css/app.7f206d736de56d6b56d57cc9d2e02239.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.571c38d63f24b1ae9e16.js></script><script type=text/javascript src=./static/js/vendor.3cd0a0187ca1f70ded67.js></script><script type=text/javascript src=./static/js/app.f5ba531f621a708d9288.js></script></body></html><script>function stopSafari() {
+    }</style><link href=./static/css/app.3b7ea0cdcda135c07e7f45387f91673d.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.571c38d63f24b1ae9e16.js></script><script type=text/javascript src=./static/js/vendor.3cd0a0187ca1f70ded67.js></script><script type=text/javascript src=./static/js/app.ac40c90e6e1793b476e3.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.3b7ea0cdcda135c07e7f45387f91673d.css


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


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


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


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


+ 20 - 8
src/components/pages/aiAddCourse/addCourse.vue

@@ -3649,7 +3649,7 @@
                     }">
                       {{ steps == 3 ? "确认上传" : "下一步" }}
                     </button>
-                    <button class="c_pub_button_confirm" v-if="steps < 4 && cidType != 1 && templateid == ''" @click="openSaveTips">保存模板</button>
+                    <button class="c_pub_button_confirm" v-if="steps < 4 && promptShow" @click="openSaveTips">保存模板</button>
                   </div>
                 </div>
               </div>
@@ -7454,6 +7454,12 @@ export default {
                   uid: file.uid,
                   type: _type,
                 });
+                _this.unitJson[0].chapterInfo[0].taskJson[0].chapterData.push({
+                  name: file.name,
+                  url: data.Location,
+                  uid: file.uid,
+                  type: _type,
+                })
               } else if (type == 2 || type == 3 || type == 12) {
                 _this.infoData.push({
                   name: file.name,
@@ -7461,6 +7467,12 @@ export default {
                   uid: file.uid,
                   type: type,
                 });
+                _this.unitJson[0].chapterInfo[0].taskJson[0].chapterData.push({
+                  name: file.name,
+                  url: data.Location,
+                  uid: file.uid,
+                  type: type,
+                })
               }
               console.log(data.Location);
             }
@@ -10618,9 +10630,9 @@ export default {
             console.error(err);
           });
       }
-      if(this.cidType != 1 && this.templateid == ''){
-        this.promptShow = true
-      }
+      // if(this.cidType != 1 && this.templateid == ''){
+      //   this.promptShow = true
+      // }
     },
     seleteCourseUpdate() {
       let params = {
@@ -12957,7 +12969,7 @@ ${message} 以及##补充参考资料和##参考资料 以文本格式输出项
               ],
               isShowTools: false,
               askCount: 1,
-              isFold: 1,
+              isFold: 2,
               askTitle: "",
               askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
               checkJson: [{ checkCount: [], checkPerent: [] }],
@@ -13088,9 +13100,9 @@ ${message} 以及##补充参考资料和##参考资料 以文本格式输出项
               )
             }
           }
-          if (_this.infoData.length) {
-            _this.unitJson[0].chapterInfo[0].taskJson[0].chapterData = JSON.parse(JSON.stringify(_this.infoData))
-          }
+          // if (_this.infoData.length) {
+          //   _this.unitJson[0].chapterInfo[0].taskJson[0].chapterData = JSON.parse(JSON.stringify(_this.infoData))
+          // }
           _this.unitJson2 = JSON.parse(JSON.stringify(_this.unitJson))
           _this.$forceUpdate();
         }

+ 13 - 1
src/components/pages/aiAddCourse/addCourse3.vue

@@ -7454,6 +7454,12 @@ export default {
                   uid: file.uid,
                   type: _type,
                 });
+                _this.unitJson[0].chapterInfo[0].taskJson[0].chapterData.push({
+                  name: file.name,
+                  url: data.Location,
+                  uid: file.uid,
+                  type: _type,
+                })
               } else if (type == 2 || type == 3 || type == 12) {
                 _this.infoData.push({
                   name: file.name,
@@ -7461,6 +7467,12 @@ export default {
                   uid: file.uid,
                   type: type,
                 });
+                _this.unitJson[0].chapterInfo[0].taskJson[0].chapterData.push({
+                  name: file.name,
+                  url: data.Location,
+                  uid: file.uid,
+                  type: type,
+                })
               }
               console.log(data.Location);
             }
@@ -12894,7 +12906,7 @@ ${message} 以及##补充参考资料和##参考资料 以文本格式输出项
               ],
               isShowTools: false,
               askCount: 1,
-              isFold: 1,
+              isFold: 2,
               askTitle: "",
               askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
               checkJson: [{ checkCount: [], checkPerent: [] }],

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