lsc hace 2 años
padre
commit
5533f34281
Se han modificado 2 ficheros con 78 adiciones y 44 borrados
  1. 1 1
      src/components/study.vue
  2. 77 43
      src/components/studyStudent.vue

+ 1 - 1
src/components/study.vue

@@ -6380,7 +6380,7 @@ export default {
   color: red;
 }
 
-.redioStyle>>>.el-radio__input.is-disabled+span.el-radio__label {
+.redioStyle>>>.el-radio__input.is-checked+.el-radio__label {
   color: rgb(0 123 255) !important;
 }
 </style>

+ 77 - 43
src/components/studyStudent.vue

@@ -623,8 +623,9 @@
                     </div>
                   </div>
                   <div v-if="tType && tType == 2 && tool.tool.indexOf(16) != -1" class="worksBox">
-                    <div style="padding-top: 15px; font-size: 18px" v-if="workStudent[toolIndex].length > 0">
-                      作业预览
+                    <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
+                      <span>作业预览</span>
+                      <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
                     </div>
                     <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
                       <div class="works" style="
@@ -650,8 +651,9 @@
                     </div>
                   </div>
                   <div v-if="tType && tType == 2 && tool.tool.indexOf(4) != -1" class="worksBox">
-                    <div style="padding-top: 15px; font-size: 18px" v-if="workStudent[toolIndex].length > 0">
-                      作业预览
+                    <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
+                      <span>作业预览</span>
+                      <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
                     </div>
                     <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
                       <div class="works" style="
@@ -680,8 +682,9 @@
                     </div>
                   </div>
                   <div v-if="tType && tType == 2 && tool.tool.indexOf(15) != -1" class="worksBox">
-                    <div style="padding-top: 15px; font-size: 18px" v-if="workStudent[toolIndex].length > 0">
-                      作业预览
+                    <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
+                      <span>作业预览</span>
+                      <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
                     </div>
                     <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
                       <div class="works" v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
@@ -705,8 +708,9 @@
                     </div>
                   </div>
                   <div v-if="tType && tType == 2 && tool.tool.indexOf(1) != -1" class="worksBox">
-                    <div style="padding-top: 15px; font-size: 18px" v-if="workStudent[toolIndex].length > 0">
-                      作业预览
+                    <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
+                      <span>作业预览</span>
+                      <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
                     </div>
                     <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
                       <div class="works" style="
@@ -725,8 +729,9 @@
                     </div>
                   </div>
                   <div v-if="tType && tType == 2 && tool.tool.indexOf(3) != -1" class="worksBox">
-                    <div style="padding-top: 15px; font-size: 18px" v-if="workStudent[toolIndex].length > 0">
-                      作业预览
+                    <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
+                      <span>作业预览</span>
+                      <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
                     </div>
                     <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
                       <div class="works" style="
@@ -745,8 +750,9 @@
                     </div>
                   </div>
                   <div v-if="tType && tType == 2 && tool.tool.indexOf(6) != -1" class="worksBox">
-                    <div style="padding-top: 15px; font-size: 18px" v-if="workStudent[toolIndex].length > 0">
-                      作业预览
+                    <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
+                      <span>作业预览</span>
+                      <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
                     </div>
                     <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
                       <div class="works" style="
@@ -765,8 +771,9 @@
                     </div>
                   </div>
                   <div v-if="tType && tType == 2 && tool.tool.indexOf(7) != -1" class="worksBox">
-                    <div style="padding-top: 15px; font-size: 18px" v-if="workStudent[toolIndex].length > 0">
-                      作业预览
+                    <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
+                      <span>作业预览</span>
+                      <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
                     </div>
                     <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
                       <div class="works" style="
@@ -785,8 +792,9 @@
                     </div>
                   </div>
                   <div v-if="tType && tType == 2 && tool.tool.indexOf(26) != -1" class="worksBox">
-                    <div style="padding-top: 15px; font-size: 18px" v-if="workStudent[toolIndex].length > 0">
-                      作业预览
+                    <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
+                      <span>作业预览</span>
+                      <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
                     </div>
                     <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
                       <div class="works" style="
@@ -809,11 +817,12 @@
                     ((tType == 2 && sIsOpen == true) || tType == 1) &&
                     tool.tool.indexOf(16) != -1
                   " class="worksBox">
-                    <div style="padding-top: 15px; font-size: 18px" v-if="
+                    <div class="zuoyeYulan" v-if="
                       worksStudent.length &&
                       worksStudent[toolIndex].length > 0
                     ">
-                      作业预览
+                      <span>作业预览</span>
+                      <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
                     </div>
                     <div class="worksDetailBox" v-if="
                       worksStudent.length &&
@@ -873,11 +882,12 @@
                     ((tType == 2 && sIsOpen == true) || tType == 1) &&
                     tool.tool.indexOf(4) != -1
                   " class="worksBox">
-                    <div style="padding-top: 15px; font-size: 18px" v-if="
+                    <div class="zuoyeYulan" v-if="
                       worksStudent.length &&
                       worksStudent[toolIndex].length > 0
                     ">
-                      作业预览
+                      <span>作业预览</span>
+                      <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
                     </div>
                     <div>
                       <div class="worksDetailBox" v-if="
@@ -927,11 +937,12 @@
                     ((tType == 2 && sIsOpen == true) || tType == 1) &&
                     tool.tool.indexOf(15) != -1
                   " class="worksBox">
-                    <div style="padding-top: 15px; font-size: 18px" v-if="
+                    <div class="zuoyeYulan" v-if="
                       worksStudent.length &&
                       worksStudent[toolIndex].length > 0
                     ">
-                      作业预览
+                      <span>作业预览</span>
+                      <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
                     </div>
                     <div class="worksDetailBox" v-if="
                       worksStudent.length &&
@@ -987,11 +998,12 @@
                     ((tType == 2 && sIsOpen == true) || tType == 1) &&
                     tool.tool.indexOf(1) != -1
                   " class="worksBox">
-                    <div style="padding-top: 15px; font-size: 18px" v-if="
+                    <div class="zuoyeYulan" v-if="
                       worksStudent.length &&
                       worksStudent[toolIndex].length > 0
                     ">
-                      作业预览
+                      <span>作业预览</span>
+                      <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
                     </div>
                     <div class="worksDetailBox" v-if="
                       worksStudent.length &&
@@ -1043,11 +1055,12 @@
                     ((tType == 2 && sIsOpen == true) || tType == 1) &&
                     tool.tool.indexOf(3) != -1
                   " class="worksBox">
-                    <div style="padding-top: 15px; font-size: 18px" v-if="
+                    <div class="zuoyeYulan" v-if="
                       worksStudent.length &&
                       worksStudent[toolIndex].length > 0
                     ">
-                      作业预览
+                      <span>作业预览</span>
+                      <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
                     </div>
                     <div class="worksDetailBox" v-if="
                       worksStudent.length &&
@@ -1099,11 +1112,12 @@
                     ((tType == 2 && sIsOpen == true) || tType == 1) &&
                     tool.tool.indexOf(6) != -1
                   " class="worksBox">
-                    <div style="padding-top: 15px; font-size: 18px" v-if="
+                    <div class="zuoyeYulan" v-if="
                       worksStudent.length &&
                       worksStudent[toolIndex].length > 0
                     ">
-                      作业预览
+                      <span>作业预览</span>
+                      <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
                     </div>
                     <div class="worksDetailBox" v-if="
                       worksStudent.length &&
@@ -1155,11 +1169,12 @@
                     ((tType == 2 && sIsOpen == true) || tType == 1) &&
                     tool.tool.indexOf(7) != -1
                   " class="worksBox">
-                    <div style="padding-top: 15px; font-size: 18px" v-if="
+                    <div class="zuoyeYulan" v-if="
                       worksStudent.length &&
                       worksStudent[toolIndex].length > 0
                     ">
-                      作业预览
+                      <span>作业预览</span>
+                      <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
                     </div>
                     <div class="worksDetailBox" v-if="
                       worksStudent.length &&
@@ -1211,11 +1226,12 @@
                     ((tType == 2 && sIsOpen == true) || tType == 1) &&
                     tool.tool.indexOf(26) != -1
                   " class="worksBox">
-                    <div style="padding-top: 15px; font-size: 18px" v-if="
+                    <div class="zuoyeYulan" v-if="
                       worksStudent.length &&
                       worksStudent[toolIndex].length > 0
                     ">
-                      作业预览
+                      <span>作业预览</span>
+                      <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
                     </div>
                     <div class="worksDetailBox" v-if="
                       worksStudent.length &&
@@ -1247,11 +1263,12 @@
                     ((tType == 2 && sIsOpen == true) || tType == 1) &&
                     tool.tool.indexOf(40) != -1
                   " class="worksBox">
-                    <div style="padding-top: 15px; font-size: 18px" v-if="
+                    <div class="zuoyeYulan" v-if="
                       worksStudent.length &&
                       worksStudent[toolIndex].length > 0
                     ">
-                      作业预览
+                      <span>作业预览</span>
+                      <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
                     </div>
                     <div class="worksDetailBox" v-if="
                       worksStudent.length &&
@@ -1299,8 +1316,9 @@
                     </div>
                   </div>
                   <div v-if="tType && tType == 2 && tool.tool.indexOf(40) != -1" class="worksBox">
-                    <div style="padding-top: 15px; font-size: 18px" v-if="workStudent[toolIndex].length > 0">
-                      作业预览
+                    <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
+                      <span>作业预览</span>
+                      <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
                     </div>
                     <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
                       <div class="works" style="
@@ -1322,11 +1340,12 @@
                     ((tType == 2 && sIsOpen == true) || tType == 1) &&
                     tool.tool.indexOf(41) != -1
                   " class="worksBox">
-                    <div style="padding-top: 15px; font-size: 18px" v-if="
+                    <div class="zuoyeYulan" v-if="
                       worksStudent.length &&
                       worksStudent[toolIndex].length > 0
                     ">
-                      作业预览
+                      <span>作业预览</span>
+                      <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
                     </div>
                     <div class="worksDetailBox" v-if="
                       worksStudent.length &&
@@ -1390,12 +1409,12 @@
                     <AnswerData2 v-if="
                       worksStudent.length &&
                       worksStudent[toolIndex].length > 0
-                    " :problemJson="tool.selectJson.answer"
-                      :people="worksStudent[toolIndex]"></AnswerData2>
+                    " :problemJson="tool.selectJson.answer" :people="worksStudent[toolIndex]"></AnswerData2>
                   </div>
                   <div v-if="tType && tType == 2 && tool.tool.indexOf(41) != -1" class="worksBox">
-                    <div style="padding-top: 15px; font-size: 18px" v-if="workStudent[toolIndex].length > 0">
-                      作业预览
+                    <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
+                      <span>作业预览</span>
+                      <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
                     </div>
                     <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
                       <div class="works" style="
@@ -2305,6 +2324,9 @@ export default {
     };
   },
   methods: {
+    jump() {
+      window.parent.postMessage({ tools: "43" }, "*");
+    },
     previewImg(url) {
       this.$hevueImgPreview(url);
     },
@@ -6519,7 +6541,19 @@ export default {
   color: red;
 }
 
-.redioStyle>>>.el-radio__input.is-disabled+span.el-radio__label {
+.redioStyle>>>.el-radio__input.is-checked+.el-radio__label {
   color: rgb(0 123 255) !important;
 }
+
+.zuoyeYulan {
+  padding-top: 15px;
+  font-size: 18px;
+  display: flex;
+  align-items: flex-end;
+}
+
+.buttonA{
+  margin-left: 10px;
+  padding: 0;
+}
 </style>