zengyicheng 1 year ago
parent
commit
0f8137152a

+ 52 - 34
src/components/easy2/studyStudent.vue

@@ -2323,7 +2323,7 @@
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
-                          收缩
+                          折叠
                         </div>
                         <div
                           class="corOpen"
@@ -2881,7 +2881,7 @@
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
-                          收缩
+                          折叠
                         </div>
                         <div
                           class="corOpen"
@@ -3038,7 +3038,7 @@
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
-                          收缩
+                          折叠
                         </div>
                         <div
                           class="corOpen"
@@ -3194,7 +3194,7 @@
                           isCloseList[toolIndex].isClose == 0
                         "
                       >
-                        收缩
+                        折叠
                       </div>
                       <div
                         class="corOpen"
@@ -3504,7 +3504,7 @@
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
-                          收缩
+                          折叠
                         </div>
                         <div
                           class="corOpen"
@@ -3672,7 +3672,7 @@
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
-                          收缩
+                          折叠
                         </div>
                         <div
                           class="corOpen"
@@ -3767,7 +3767,7 @@
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
-                          收缩
+                          折叠
                         </div>
                         <div
                           class="corOpen"
@@ -3863,7 +3863,7 @@
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
-                          收缩
+                          折叠
                         </div>
                         <div
                           class="corOpen"
@@ -4157,7 +4157,7 @@
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
-                          收缩
+                          折叠
                         </div>
                         <div
                           class="corOpen"
@@ -4437,7 +4437,7 @@
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
-                          收缩
+                          折叠
                         </div>
                         <div
                           class="corOpen"
@@ -4717,7 +4717,7 @@
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
-                          收缩
+                          折叠
                         </div>
                         <div
                           class="corOpen"
@@ -4996,7 +4996,7 @@
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
-                          收缩
+                          折叠
                         </div>
                         <div
                           class="corOpen"
@@ -5276,7 +5276,7 @@
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
-                          收缩
+                          折叠
                         </div>
                         <div
                           class="corOpen"
@@ -5381,7 +5381,7 @@
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
-                          收缩
+                          折叠
                         </div>
                         <div
                           class="corOpen"
@@ -5581,7 +5581,7 @@
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
-                          收缩
+                          折叠
                         </div>
                         <div
                           class="corOpen"
@@ -5829,7 +5829,7 @@
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
-                          收缩
+                          折叠
                         </div>
                         <div
                           class="corOpen"
@@ -5912,7 +5912,7 @@
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
-                          收缩
+                          折叠
                         </div>
                         <div
                           class="corOpen"
@@ -6139,7 +6139,7 @@
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
-                          收缩
+                          折叠
                         </div>
                         <div
                           class="corOpen"
@@ -6739,7 +6739,7 @@
                     </div>
                   </div>
                   <div class="queTopClose" v-if="isClose == 1">
-                    收缩
+                    折叠
                     <div class="openImg">
                       <img src="../../assets/icon/newIcon/open.png" alt="" />
                     </div>
@@ -11280,7 +11280,7 @@
                 </div>
                 <div class="oldDetail">
                   <div>正文:</div>
-                  <div>{{ oldEnglishJson.engText }} </div>
+                  <div v-html="oldEnglishJson.engText"></div>
                 </div>
               </div>
             </div>
@@ -11303,11 +11303,12 @@
             </div>
           </div>
           <div class="oldBox" v-else-if="userMes[0].type == 1">
-            <div class="oldMes" style="background: rgb(224 236 255);display: flex;flex-direction: row;flex-wrap: nowrap;align-items: center;overflow-x: auto;overflow-y: hidden;">
+            <div class="oldMes" style="background: rgb(224 236 255);display: flex;flex-direction: row;flex-wrap: nowrap;align-items: center;overflow-x: auto;overflow-y: hidden;" v-if="newEnglishList.length > 0">
               <div v-if="isNoUserid" class="allName" :style="{minWidth: `calc(100% / ${engListLength})`,background: newEngIndex == -1 ? '#aacaff' : ''}" @click="setEngText(-1)" style="background: #aacaff;">{{ userMes[0].username }}</div>
               <div v-for="(item,index) in newEnglishList" :key="index" class="allName" :style="{minWidth: `calc(100% / ${engListLength})`,background: index == newEngIndex ? '#aacaff' : ''}" @click="setEngText(index)">{{ item.username }}</div>
             </div>
-            <div class="oldText" v-if="newEngIndex == -1">
+            <div class="oldMes" style="background: #aacaff;" v-else>{{ userMes[0].username }}</div>
+            <div class="oldText" v-if="newEngIndex == -1 && isNoUserid == true">
               <div class="detailBox">
                 <div class="oldDetail">
                   <div>标题:</div>
@@ -11321,16 +11322,32 @@
                 </div>
               </div>
             </div>
-            <div class="oldText" v-else-if="newEngIndex > -1 && newEnglishList.length > 0">
+            <div class="oldText" v-else-if="newEngIndex == -1 && !newEnglishList.length">
               <div class="detailBox">
                 <div class="oldDetail">
                   <div>标题:</div>
-                  <el-input v-model="JSON.parse(newEnglishList[newEngIndex].cWork).engTitle" />
+                  <el-input v-model="newEnglishList.engTitle" />
                 </div>
                 <div class="oldDetail">
                   <div>正文:</div>
                   <el-input type="textarea"
                   :rows="10"
+                  resize="none" v-model="newEnglishList.engText" />
+                </div>
+              </div>
+            </div>
+            <div class="oldText" v-else-if="newEngIndex > -1 && newEnglishList.length > 0">
+              <div class="detailBox">
+                <div class="oldDetail">
+                  <div>标题:</div>
+                  <div v-if="userMes[0].userid != newEnglishList[newEngIndex].correct" v-html="JSON.parse(newEnglishList[newEngIndex].cWork).engTitle"></div>
+                  <el-input v-else v-model="JSON.parse(newEnglishList[newEngIndex].cWork).engTitle" />
+                </div>
+                <div class="oldDetail">
+                  <div>正文:</div>
+                  <div v-if="userMes[0].userid != newEnglishList[newEngIndex].correct" v-html="JSON.parse(newEnglishList[newEngIndex].cWork).engText"></div>
+                  <el-input v-else type="textarea"
+                  :rows="10"
                   resize="none" v-model="JSON.parse(newEnglishList[newEngIndex].cWork).engText" />
                 </div>
               </div>
@@ -16920,6 +16937,7 @@ export default {
               .toolChoose[i].englishList;
         this.oldEnglishJson = z;
         this.engWid = id;
+        this.newEnglishList = { engTitle:"",engText:"" }
         this.selectEngC(z);
       }
       //  else if (t == 15) {
@@ -18659,7 +18677,7 @@ export default {
             tool: this.toolindex,
             wid: this.engWid,
             c: this.userid,
-            w: this.newEngIndex == -1 ? JSON.stringify(this.oldEnglishJson1) : JSON.stringify(this.newEnglishList),
+            w: (this.newEngIndex == -1 && this.isNoUserid == true) ? JSON.stringify(this.oldEnglishJson1) : JSON.stringify(this.newEnglishList),
           };
           this.ajax
             .get(this.$store.state.api + "addEngC", params)
@@ -18724,12 +18742,14 @@ export default {
           this.$forceUpdate();
           setTimeout(() => {
             this.topHeight = document.querySelectorAll(".engUpTop")[0].offsetHeight;
-            if(this.isNoUserid == true){
-              this.engListLength = this.newEnglishList.length + 1;
-              this.newEngIndex = -1;
-            }else{
-              this.engListLength = this.newEnglishList.length;
-              this.newEngIndex = 0;
+            if(this.newEnglishList.length > 0){
+              if(this.isNoUserid == true){
+                this.engListLength = this.newEnglishList.length + 1;
+                this.newEngIndex = -1;
+              }else{
+                this.engListLength = this.newEnglishList.length;
+                this.newEngIndex = 0;
+              }
             }
           }, 500);
           
@@ -19441,7 +19461,7 @@ export default {
 
 .courseTitle {
   width: 85%;
-  margin: 10px auto;
+  margin: 10px auto 20px auto;
   display: flex;
   flex-direction: row;
   align-items: center;
@@ -20441,7 +20461,6 @@ export default {
   margin: 15px 0 0 25px;
   display: flex;
   position: relative;
-  background: #f0f4fa;
   padding: 18px 20px;
   border-top-left-radius: 5px;
   border-top-right-radius: 5px;
@@ -20531,7 +20550,6 @@ export default {
 .worksBox {
   margin: 0 0 10px 25px;
   border-bottom: 1px solid #eeeeee;
-  background: #f0f4fa;
   padding: 18px 20px;
   border-radius: 4px;
   width: 90%;

+ 52 - 34
src/components/easy3/studyStudent.vue

@@ -2310,7 +2310,7 @@
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
-                          收缩
+                          折叠
                         </div>
                         <div
                           class="corOpen"
@@ -2868,7 +2868,7 @@
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
-                          收缩
+                          折叠
                         </div>
                         <div
                           class="corOpen"
@@ -3025,7 +3025,7 @@
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
-                          收缩
+                          折叠
                         </div>
                         <div
                           class="corOpen"
@@ -3181,7 +3181,7 @@
                           isCloseList[toolIndex].isClose == 0
                         "
                       >
-                        收缩
+                        折叠
                       </div>
                       <div
                         class="corOpen"
@@ -3491,7 +3491,7 @@
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
-                          收缩
+                          折叠
                         </div>
                         <div
                           class="corOpen"
@@ -3659,7 +3659,7 @@
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
-                          收缩
+                          折叠
                         </div>
                         <div
                           class="corOpen"
@@ -3754,7 +3754,7 @@
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
-                          收缩
+                          折叠
                         </div>
                         <div
                           class="corOpen"
@@ -3850,7 +3850,7 @@
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
-                          收缩
+                          折叠
                         </div>
                         <div
                           class="corOpen"
@@ -4144,7 +4144,7 @@
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
-                          收缩
+                          折叠
                         </div>
                         <div
                           class="corOpen"
@@ -4424,7 +4424,7 @@
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
-                          收缩
+                          折叠
                         </div>
                         <div
                           class="corOpen"
@@ -4704,7 +4704,7 @@
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
-                          收缩
+                          折叠
                         </div>
                         <div
                           class="corOpen"
@@ -4983,7 +4983,7 @@
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
-                          收缩
+                          折叠
                         </div>
                         <div
                           class="corOpen"
@@ -5263,7 +5263,7 @@
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
-                          收缩
+                          折叠
                         </div>
                         <div
                           class="corOpen"
@@ -5368,7 +5368,7 @@
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
-                          收缩
+                          折叠
                         </div>
                         <div
                           class="corOpen"
@@ -5568,7 +5568,7 @@
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
-                          收缩
+                          折叠
                         </div>
                         <div
                           class="corOpen"
@@ -5816,7 +5816,7 @@
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
-                          收缩
+                          折叠
                         </div>
                         <div
                           class="corOpen"
@@ -5899,7 +5899,7 @@
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
-                          收缩
+                          折叠
                         </div>
                         <div
                           class="corOpen"
@@ -6126,7 +6126,7 @@
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
-                          收缩
+                          折叠
                         </div>
                         <div
                           class="corOpen"
@@ -6726,7 +6726,7 @@
                     </div>
                   </div>
                   <div class="queTopClose" v-if="isClose == 1">
-                    收缩
+                    折叠
                     <div class="openImg">
                       <img src="../../assets/icon/newIcon/open.png" alt="" />
                     </div>
@@ -11267,7 +11267,7 @@
                 </div>
                 <div class="oldDetail">
                   <div>正文:</div>
-                  <div>{{ oldEnglishJson.engText }} </div>
+                  <div v-html="oldEnglishJson.engText"></div>
                 </div>
               </div>
             </div>
@@ -11290,11 +11290,12 @@
             </div>
           </div>
           <div class="oldBox" v-else-if="userMes[0].type == 1">
-            <div class="oldMes" style="background: rgb(224 236 255);display: flex;flex-direction: row;flex-wrap: nowrap;align-items: center;overflow-x: auto;overflow-y: hidden;">
+            <div class="oldMes" style="background: rgb(224 236 255);display: flex;flex-direction: row;flex-wrap: nowrap;align-items: center;overflow-x: auto;overflow-y: hidden;" v-if="newEnglishList.length > 0">
               <div v-if="isNoUserid" class="allName" :style="{minWidth: `calc(100% / ${engListLength})`,background: newEngIndex == -1 ? '#aacaff' : ''}" @click="setEngText(-1)" style="background: #aacaff;">{{ userMes[0].username }}</div>
               <div v-for="(item,index) in newEnglishList" :key="index" class="allName" :style="{minWidth: `calc(100% / ${engListLength})`,background: index == newEngIndex ? '#aacaff' : ''}" @click="setEngText(index)">{{ item.username }}</div>
             </div>
-            <div class="oldText" v-if="newEngIndex == -1">
+            <div class="oldMes" style="background: #aacaff;" v-else>{{ userMes[0].username }}</div>
+            <div class="oldText" v-if="newEngIndex == -1 && isNoUserid == true">
               <div class="detailBox">
                 <div class="oldDetail">
                   <div>标题:</div>
@@ -11308,16 +11309,32 @@
                 </div>
               </div>
             </div>
-            <div class="oldText" v-else-if="newEngIndex > -1 && newEnglishList.length > 0">
+            <div class="oldText" v-else-if="newEngIndex == -1 && !newEnglishList.length">
               <div class="detailBox">
                 <div class="oldDetail">
                   <div>标题:</div>
-                  <el-input v-model="JSON.parse(newEnglishList[newEngIndex].cWork).engTitle" />
+                  <el-input v-model="newEnglishList.engTitle" />
                 </div>
                 <div class="oldDetail">
                   <div>正文:</div>
                   <el-input type="textarea"
                   :rows="10"
+                  resize="none" v-model="newEnglishList.engText" />
+                </div>
+              </div>
+            </div>
+            <div class="oldText" v-else-if="newEngIndex > -1 && newEnglishList.length > 0">
+              <div class="detailBox">
+                <div class="oldDetail">
+                  <div>标题:</div>
+                  <div v-if="userMes[0].userid != newEnglishList[newEngIndex].correct" v-html="JSON.parse(newEnglishList[newEngIndex].cWork).engTitle"></div>
+                  <el-input v-else v-model="JSON.parse(newEnglishList[newEngIndex].cWork).engTitle" />
+                </div>
+                <div class="oldDetail">
+                  <div>正文:</div>
+                  <div v-if="userMes[0].userid != newEnglishList[newEngIndex].correct" v-html="JSON.parse(newEnglishList[newEngIndex].cWork).engText"></div>
+                  <el-input v-else type="textarea"
+                  :rows="10"
                   resize="none" v-model="JSON.parse(newEnglishList[newEngIndex].cWork).engText" />
                 </div>
               </div>
@@ -16913,6 +16930,7 @@ export default {
               .toolChoose[i].englishList;
         this.oldEnglishJson = z;
         this.engWid = id;
+        this.newEnglishList = { engTitle:"",engText:"" }
         this.selectEngC(z);
       }
       //  else if (t == 15) {
@@ -18648,7 +18666,7 @@ export default {
             tool: this.toolindex,
             wid: this.engWid,
             c: this.userid,
-            w: this.newEngIndex == -1 ? JSON.stringify(this.oldEnglishJson1) : JSON.stringify(this.newEnglishList),
+            w: (this.newEngIndex == -1 && this.isNoUserid == true) ? JSON.stringify(this.oldEnglishJson1) : JSON.stringify(this.newEnglishList),
           };
           this.ajax
             .get(this.$store.state.api + "addEngC", params)
@@ -18713,12 +18731,14 @@ export default {
           this.$forceUpdate();
           setTimeout(() => {
             this.topHeight = document.querySelectorAll(".engUpTop")[0].offsetHeight;
-            if(this.isNoUserid == true){
-              this.engListLength = this.newEnglishList.length + 1;
-              this.newEngIndex = -1;
-            }else{
-              this.engListLength = this.newEnglishList.length;
-              this.newEngIndex = 0;
+            if(this.newEnglishList.length > 0){
+              if(this.isNoUserid == true){
+                this.engListLength = this.newEnglishList.length + 1;
+                this.newEngIndex = -1;
+              }else{
+                this.engListLength = this.newEnglishList.length;
+                this.newEngIndex = 0;
+              }
             }
           }, 500);
           
@@ -19430,7 +19450,7 @@ export default {
 
 .courseTitle {
   width: 85%;
-  margin: 10px auto;
+  margin: 10px auto 20px auto;
   display: flex;
   flex-direction: row;
   align-items: center;
@@ -20430,7 +20450,6 @@ export default {
   margin: 15px 0 0 25px;
   display: flex;
   position: relative;
-  background: #f0f4fa;
   padding: 18px 20px;
   border-top-left-radius: 5px;
   border-top-right-radius: 5px;
@@ -20520,7 +20539,6 @@ export default {
 .worksBox {
   margin: 0 0 10px 25px;
   border-bottom: 1px solid #eeeeee;
-  background: #f0f4fa;
   padding: 18px 20px;
   border-radius: 4px;
   width: 90%;

+ 53 - 35
src/components/studyStudent.vue

@@ -2317,7 +2317,7 @@
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
-                          收缩
+                          折叠
                         </div>
                         <div
                           class="corOpen"
@@ -2875,7 +2875,7 @@
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
-                          收缩
+                          折叠
                         </div>
                         <div
                           class="corOpen"
@@ -3032,7 +3032,7 @@
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
-                          收缩
+                          折叠
                         </div>
                         <div
                           class="corOpen"
@@ -3188,7 +3188,7 @@
                           isCloseList[toolIndex].isClose == 0
                         "
                       >
-                        收缩
+                        折叠
                       </div>
                       <div
                         class="corOpen"
@@ -3498,7 +3498,7 @@
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
-                          收缩
+                          折叠
                         </div>
                         <div
                           class="corOpen"
@@ -3666,7 +3666,7 @@
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
-                          收缩
+                          折叠
                         </div>
                         <div
                           class="corOpen"
@@ -3761,7 +3761,7 @@
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
-                          收缩
+                          折叠
                         </div>
                         <div
                           class="corOpen"
@@ -3857,7 +3857,7 @@
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
-                          收缩
+                          折叠
                         </div>
                         <div
                           class="corOpen"
@@ -4151,7 +4151,7 @@
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
-                          收缩
+                          折叠
                         </div>
                         <div
                           class="corOpen"
@@ -4431,7 +4431,7 @@
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
-                          收缩
+                          折叠
                         </div>
                         <div
                           class="corOpen"
@@ -4711,7 +4711,7 @@
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
-                          收缩
+                          折叠
                         </div>
                         <div
                           class="corOpen"
@@ -4990,7 +4990,7 @@
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
-                          收缩
+                          折叠
                         </div>
                         <div
                           class="corOpen"
@@ -5270,7 +5270,7 @@
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
-                          收缩
+                          折叠
                         </div>
                         <div
                           class="corOpen"
@@ -5375,7 +5375,7 @@
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
-                          收缩
+                          折叠
                         </div>
                         <div
                           class="corOpen"
@@ -5575,7 +5575,7 @@
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
-                          收缩
+                          折叠
                         </div>
                         <div
                           class="corOpen"
@@ -5823,7 +5823,7 @@
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
-                          收缩
+                          折叠
                         </div>
                         <div
                           class="corOpen"
@@ -5906,7 +5906,7 @@
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
-                          收缩
+                          折叠
                         </div>
                         <div
                           class="corOpen"
@@ -6133,7 +6133,7 @@
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
-                          收缩
+                          折叠
                         </div>
                         <div
                           class="corOpen"
@@ -6733,7 +6733,7 @@
                     </div>
                   </div>
                   <div class="queTopClose" v-if="isClose == 1">
-                    收缩
+                    折叠
                     <div class="openImg">
                       <img src="../assets/icon/newIcon/open.png" alt="" />
                     </div>
@@ -11250,7 +11250,7 @@
                 </div>
                 <div class="oldDetail">
                   <div>正文:</div>
-                  <div>{{ oldEnglishJson.engText }} </div>
+                  <div v-html="oldEnglishJson.engText"></div>
                 </div>
               </div>
             </div>
@@ -11273,11 +11273,12 @@
             </div>
           </div>
           <div class="oldBox" v-else-if="userMes[0].type == 1">
-            <div class="oldMes" style="background: rgb(224 236 255);display: flex;flex-direction: row;flex-wrap: nowrap;align-items: center;overflow-x: auto;overflow-y: hidden;">
+            <div class="oldMes" style="background: rgb(224 236 255);display: flex;flex-direction: row;flex-wrap: nowrap;align-items: center;overflow-x: auto;overflow-y: hidden;" v-if="newEnglishList.length > 0">
               <div v-if="isNoUserid" class="allName" :style="{minWidth: `calc(100% / ${engListLength})`,background: newEngIndex == -1 ? '#aacaff' : ''}" @click="setEngText(-1)" style="background: #aacaff;">{{ userMes[0].username }}</div>
               <div v-for="(item,index) in newEnglishList" :key="index" class="allName" :style="{minWidth: `calc(100% / ${engListLength})`,background: index == newEngIndex ? '#aacaff' : ''}" @click="setEngText(index)">{{ item.username }}</div>
             </div>
-            <div class="oldText" v-if="newEngIndex == -1">
+            <div class="oldMes" style="background: #aacaff;" v-else>{{ userMes[0].username }}</div>
+            <div class="oldText" v-if="newEngIndex == -1 && isNoUserid == true">
               <div class="detailBox">
                 <div class="oldDetail">
                   <div>标题:</div>
@@ -11291,16 +11292,32 @@
                 </div>
               </div>
             </div>
-            <div class="oldText" v-else-if="newEngIndex > -1 && newEnglishList.length > 0">
+            <div class="oldText" v-else-if="newEngIndex == -1 && !newEnglishList.length">
               <div class="detailBox">
                 <div class="oldDetail">
                   <div>标题:</div>
-                  <el-input v-model="JSON.parse(newEnglishList[newEngIndex].cWork).engTitle" />
+                  <el-input v-model="newEnglishList.engTitle" />
                 </div>
                 <div class="oldDetail">
                   <div>正文:</div>
                   <el-input type="textarea"
                   :rows="10"
+                  resize="none" v-model="newEnglishList.engText" />
+                </div>
+              </div>
+            </div>
+            <div class="oldText" v-else-if="newEngIndex > -1 && newEnglishList.length > 0">
+              <div class="detailBox">
+                <div class="oldDetail">
+                  <div>标题:</div>
+                  <div v-if="userMes[0].userid != newEnglishList[newEngIndex].correct" v-html="JSON.parse(newEnglishList[newEngIndex].cWork).engTitle"></div>
+                  <el-input v-else v-model="JSON.parse(newEnglishList[newEngIndex].cWork).engTitle" />
+                </div>
+                <div class="oldDetail">
+                  <div>正文:</div>
+                  <div v-if="userMes[0].userid != newEnglishList[newEngIndex].correct" v-html="JSON.parse(newEnglishList[newEngIndex].cWork).engText"></div>
+                  <el-input v-else type="textarea"
+                  :rows="10"
                   resize="none" v-model="JSON.parse(newEnglishList[newEngIndex].cWork).engText" />
                 </div>
               </div>
@@ -11738,7 +11755,7 @@ export default {
       courseGroupStudentUid: [],
       courseGroup: {},
       isGroup: false,
-      toolIndex: null,
+      // toolIndex: null,
       tool: {},
       isWorkTool: [
         16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
@@ -16888,6 +16905,7 @@ export default {
               .toolChoose[i].englishList;
         this.oldEnglishJson = z;
         this.engWid = id;
+        this.newEnglishList = { engTitle:"",engText:"" }
         this.selectEngC(z);
       }
       //  else if (t == 15) {
@@ -18623,7 +18641,7 @@ export default {
             tool: this.toolindex,
             wid: this.engWid,
             c: this.userid,
-            w: this.newEngIndex == -1 ? JSON.stringify(this.oldEnglishJson1) : JSON.stringify(this.newEnglishList),
+            w: (this.newEngIndex == -1 && this.isNoUserid == true) ? JSON.stringify(this.oldEnglishJson1) : JSON.stringify(this.newEnglishList),
           };
           this.ajax
             .get(this.$store.state.api + "addEngC", params)
@@ -18688,12 +18706,14 @@ export default {
           this.$forceUpdate();
           setTimeout(() => {
             this.topHeight = document.querySelectorAll(".engUpTop")[0].offsetHeight;
-            if(this.isNoUserid == true){
-              this.engListLength = this.newEnglishList.length + 1;
-              this.newEngIndex = -1;
-            }else{
-              this.engListLength = this.newEnglishList.length;
-              this.newEngIndex = 0;
+            if(this.newEnglishList.length > 0){
+              if(this.isNoUserid == true){
+                this.engListLength = this.newEnglishList.length + 1;
+                this.newEngIndex = -1;
+              }else{
+                this.engListLength = this.newEnglishList.length;
+                this.newEngIndex = 0;
+              }
             }
           }, 500);
           
@@ -19402,7 +19422,7 @@ export default {
 
 .courseTitle {
   width: 85%;
-  margin: 10px auto;
+  margin: 10px auto 20px auto;
   display: flex;
   flex-direction: row;
   align-items: center;
@@ -20402,7 +20422,6 @@ export default {
   margin: 15px 0 0 25px;
   display: flex;
   position: relative;
-  background: #f0f4fa;
   padding: 18px 20px;
   border-top-left-radius: 5px;
   border-top-right-radius: 5px;
@@ -20492,7 +20511,6 @@ export default {
 .worksBox {
   margin: 0 0 10px 25px;
   border-bottom: 1px solid #eeeeee;
-  background: #f0f4fa;
   padding: 18px 20px;
   border-radius: 4px;
   width: 90%;