lsc 2 năm trước cách đây
mục cha
commit
f025f39220

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

@@ -1681,6 +1681,7 @@
           <el-input
           <el-input
             v-model="AttText.title"
             v-model="AttText.title"
             auto-complete="off"
             auto-complete="off"
+            @input="change2"
             placeholder="请输入文本标题..."
             placeholder="请输入文本标题..."
           ></el-input>
           ></el-input>
         </el-form-item>
         </el-form-item>
@@ -1769,11 +1770,12 @@
           <div class="people_nav">选择班级</div>
           <div class="people_nav">选择班级</div>
         </div>
         </div>
         <el-checkbox-group v-model="checkboxList2" class="people_name">
         <el-checkbox-group v-model="checkboxList2" class="people_name">
-          <div v-for="(item,index) in grade" :key="item.id" >
+          <div v-for="(item, index) in grade" :key="item.id">
             <el-checkbox :label="item.id">{{
             <el-checkbox :label="item.id">{{
-            item.name ? item.name : "暂无班级可选"}}</el-checkbox>
+              item.name ? item.name : "暂无班级可选"
+            }}</el-checkbox>
             <div>
             <div>
-              <span>{{index}}</span>
+              <span>{{ index }}</span>
             </div>
             </div>
           </div>
           </div>
         </el-checkbox-group>
         </el-checkbox-group>
@@ -2367,7 +2369,7 @@ export default {
         let params = [
         let params = [
           {
           {
             cid: this.cid,
             cid: this.cid,
-            chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
+            chapters: JSON.stringify(this.unitJson),
             uid: this.userid,
             uid: this.userid,
             unitIndex: _unitIndex,
             unitIndex: _unitIndex,
           },
           },
@@ -2406,6 +2408,10 @@ export default {
     change(val) {
     change(val) {
       console.log(val);
       console.log(val);
     },
     },
+    change2(val) {
+      console.log(val);
+      this.$forceUpdate();
+    },
     handleClose(done) {
     handleClose(done) {
       done();
       done();
     },
     },
@@ -3255,7 +3261,7 @@ export default {
       let params = [
       let params = [
         {
         {
           cid: this.cid,
           cid: this.cid,
-          chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
+          chapters: JSON.stringify(this.unitJson),
           uid: this.userid,
           uid: this.userid,
           unitIndex: _unitIndex,
           unitIndex: _unitIndex,
         },
         },
@@ -3441,6 +3447,9 @@ export default {
         .then(() => {
         .then(() => {
           _this.unitJson = JSON.parse(res.chapters);
           _this.unitJson = JSON.parse(res.chapters);
           _this.steps++;
           _this.steps++;
+          setTimeout(() => {
+            this.checkEva();
+          }, 1000);
         })
         })
         .catch(() => {
         .catch(() => {
           return;
           return;

+ 1 - 1
src/components/pages/components/pdf3.vue

@@ -187,8 +187,8 @@ export default {
     async reportPreview() {
     async reportPreview() {
       this.src = pdf.createLoadingTask(this.pdfUrl);
       this.src = pdf.createLoadingTask(this.pdfUrl);
       this.src.promise.then((pdf) => {
       this.src.promise.then((pdf) => {
-        this.loading.close();
         this.numPages = pdf.numPages;
         this.numPages = pdf.numPages;
+        this.loading.close();
       });
       });
     },
     },
   },
   },

+ 1 - 1
src/components/tools/jsmind2.vue

@@ -378,7 +378,7 @@ export default {
 .jsmind_layout {
 .jsmind_layout {
   display: flex;
   display: flex;
   flex-direction: column;
   flex-direction: column;
-  width: 700px;
+  /* width: 700px; */
   height: calc(100%);
   height: calc(100%);
   /* height: 500px; */
   /* height: 500px; */
   /* margin: 15px 5px 0 0; */
   /* margin: 15px 5px 0 0; */