zengyicheng 1 år sedan
förälder
incheckning
e63c92ed28

+ 13 - 1
src/components/easy2/studyStudent.vue

@@ -11268,7 +11268,7 @@
           </div>
           <div class="engText">
             <div>作文题目:</div>
-            <div v-html="englishList1.englishText"></div>
+            <div class="cont" v-html="englishList1.englishText"></div>
           </div>
         </div>
         <div class="correctBox" :style="{height: `calc(100% - ${topHeight}px)` }">
@@ -18728,11 +18728,18 @@ export default {
           }else{
             var a = res.data[0];
             if(this.userMes[0].type == 2){
+              var snum = 0;
               for(var i = 0;i<a.length;i++){
                 if(this.userMes[0].userid == a[i].correct){
                   this.newEnglishList = JSON.parse(a[i].cWork);
+                  snum = 1;
                 }
               }
+              if(snum == 0){
+                this.newEnglishList = { engTitle:"",engText:"" };
+                this.newEnglishList.engTitle = z.engTitle;
+                this.newEnglishList.engText = z.engText;
+              }
             }else if(this.userMes[0].type == 1){
               var num = 0;
               for(var w= 0;w<a.length;w++){
@@ -23240,4 +23247,9 @@ ol {
   border: 1px solid #bcc2cc;
   box-sizing: border-box;
 }
+
+.engUpTop{
+  max-height: 300px;
+  overflow: auto;
+}
 </style>

+ 13 - 1
src/components/easy3/studyStudent.vue

@@ -11255,7 +11255,7 @@
           </div>
           <div class="engText">
             <div>作文题目:</div>
-            <div v-html="englishList1.englishText"></div>
+            <div class="cont" v-html="englishList1.englishText"></div>
           </div>
         </div>
         <div class="correctBox" :style="{height: `calc(100% - ${topHeight}px)` }">
@@ -18717,11 +18717,18 @@ export default {
           }else{
             var a = res.data[0];
             if(this.userMes[0].type == 2){
+              var snum = 0;
               for(var i = 0;i<a.length;i++){
                 if(this.userMes[0].userid == a[i].correct){
                   this.newEnglishList = JSON.parse(a[i].cWork);
+                  snum = 1;
                 }
               }
+              if(snum == 0){
+                this.newEnglishList = { engTitle:"",engText:"" };
+                this.newEnglishList.engTitle = z.engTitle;
+                this.newEnglishList.engText = z.engText;
+              }
             }else if(this.userMes[0].type == 1){
               var num = 0;
               for(var w= 0;w<a.length;w++){
@@ -23229,4 +23236,9 @@ ol {
   border: 1px solid #bcc2cc;
   box-sizing: border-box;
 }
+
+.engUpTop{
+  max-height: 300px;
+  overflow: auto;
+}
 </style>

+ 13 - 1
src/components/studyStudent.vue

@@ -11238,7 +11238,7 @@
           </div>
           <div class="engText">
             <div>作文题目:</div>
-            <div v-html="englishList1.englishText"></div>
+            <div class="cont" v-html="englishList1.englishText"></div>
           </div>
         </div>
         <div class="correctBox" :style="{height: `calc(100% - ${topHeight}px)` }">
@@ -18692,11 +18692,18 @@ export default {
           }else{
             var a = res.data[0];
             if(this.userMes[0].type == 2){
+              var snum = 0;
               for(var i = 0;i<a.length;i++){
                 if(this.userMes[0].userid == a[i].correct){
                   this.newEnglishList = JSON.parse(a[i].cWork);
+                  snum = 1;
                 }
               }
+              if(snum == 0){
+                this.newEnglishList = { engTitle:"",engText:"" };
+                this.newEnglishList.engTitle = z.engTitle;
+                this.newEnglishList.engText = z.engText;
+              }
             }else if(this.userMes[0].type == 1){
               var num = 0;
               for(var w= 0;w<a.length;w++){
@@ -23201,4 +23208,9 @@ ol {
   border: 1px solid #bcc2cc;
   box-sizing: border-box;
 }
+
+.engUpTop{
+  max-height: 300px;
+  overflow: auto;
+}
 </style>