Browse Source

修改样式及功能问题

zengyicheng 2 years ago
parent
commit
df49b9823e
2 changed files with 15 additions and 7 deletions
  1. 1 1
      src/components/study.vue
  2. 14 6
      src/components/studyStudent.vue

+ 1 - 1
src/components/study.vue

@@ -5717,7 +5717,7 @@ export default {
 </script>
 
 <style scoped>
-@media screen and (max-width: 1024px) {
+@media screen and (max-width: 1280px) {
   /* .navText {
     width: 120px !important;
   } */

+ 14 - 6
src/components/studyStudent.vue

@@ -3377,8 +3377,14 @@
         >
       </div>
     </el-dialog>
-    <el-dialog title="选择填空" :visible.sync="dialogVisibleSelect" :append-to-body="true"
-      width="90%" :before-close="handleClose" class="dialog_diy dialog_diy3">
+    <el-dialog
+      title="选择填空"
+      :visible.sync="dialogVisibleSelect"
+      :append-to-body="true"
+      width="90%"
+      :before-close="handleClose"
+      class="dialog_diy dialog_diy3"
+    >
       <div v-if="selectJson">
         <div class="select_box2">
           <div class="select_box2_title">
@@ -5134,7 +5140,7 @@ export default {
         });
     },
     addPz() {
-      if(this.pzConText == ""){
+      if (this.pzConText == "") {
         this.$message.error("批注不能为空!");
         return;
       }
@@ -5964,8 +5970,10 @@ export default {
     this.selectCount();
     this.getHomeWork();
     this.selectSLook();
-    this.pzDialog = true;
-    this.selectPz();
+    if (this.tType == 4) {
+      this.pzDialog = true;
+      this.selectPz();
+    }
     document.scrollingElement.scrollTop = 0;
     window.addEventListener("resize", () => {
       var a = document.getElementsByClassName("box_course")[0].offsetHeight;
@@ -5986,7 +5994,7 @@ export default {
 </script>
 
 <style scoped>
-@media screen and (max-width: 1024px) {
+@media screen and (max-width: 1280px) {
   /* .courseIndex > div:first-child(2) {
     width: 15% !important;
   } */