瀏覽代碼

修改样式打包

zengyicheng 2 年之前
父節點
當前提交
b38e113928

+ 1 - 1
dist/index.html

@@ -1 +1 @@
-<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><title>pbl-student</title><link href=./static/css/app.4afe4b11f7870960f1582f0ad9c96a45.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.3ad1d5771e9b13dbdad2.js></script><script type=text/javascript src=./static/js/vendor.58e4d5b3fd0c569e76aa.js></script><script type=text/javascript src=./static/js/app.518f98aeb90a436906f9.js></script></body></html><script>document.domain = "cocorobo.cn"</script>
+<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><title>pbl-student</title><link href=./static/css/app.bab7ea4ac30bab2143b78dbf2d281e46.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.3ad1d5771e9b13dbdad2.js></script><script type=text/javascript src=./static/js/vendor.58e4d5b3fd0c569e76aa.js></script><script type=text/javascript src=./static/js/app.e6ee95a73280ecf7f3c6.js></script></body></html><script>document.domain = "cocorobo.cn"</script>

文件差異過大導致無法顯示
+ 0 - 0
dist/static/css/app.4afe4b11f7870960f1582f0ad9c96a45.css.map


文件差異過大導致無法顯示
+ 0 - 0
dist/static/css/app.bab7ea4ac30bab2143b78dbf2d281e46.css


文件差異過大導致無法顯示
+ 0 - 0
dist/static/css/app.bab7ea4ac30bab2143b78dbf2d281e46.css.map


二進制
dist/static/img/noImg.ea53fbc.png → dist/static/img/noImg.6fc4bfe.png


文件差異過大導致無法顯示
+ 0 - 0
dist/static/js/app.518f98aeb90a436906f9.js


文件差異過大導致無法顯示
+ 0 - 0
dist/static/js/app.518f98aeb90a436906f9.js.map


文件差異過大導致無法顯示
+ 0 - 0
dist/static/js/app.e6ee95a73280ecf7f3c6.js


文件差異過大導致無法顯示
+ 0 - 0
dist/static/js/app.e6ee95a73280ecf7f3c6.js.map


文件差異過大導致無法顯示
+ 0 - 0
dist/static/js/manifest.3ad1d5771e9b13dbdad2.js.map


二進制
src/assets/icon/works/noImg.png


+ 109 - 58
src/components/study.vue

@@ -116,8 +116,8 @@
                     <div
                       style="
                         padding: 20px;
-                        line-height: 35px;
-                        max-height: 80px;
+                        line-height: 30px;
+                        max-height: 105px;
                         overflow: auto;
                       "
                       v-if="
@@ -315,8 +315,8 @@
                   <div
                     style="
                       padding: 20px;
-                      line-height: 35px;
-                      max-height: 90px;
+                      line-height: 30px;
+                      max-height: 105px;
                       overflow: auto;
                     "
                     v-if="
@@ -693,11 +693,22 @@
                     v-if="tType && tType == 1 && tool.tool.indexOf(16) != -1"
                     class="worksBox"
                   >
-                    <div class="worksBTitle">作业提交情况</div>
-                    <div style="padding-top: 15px; font-size: 18px">
+                    <div
+                      class="worksBTitle"
+                      v-if="worksStudent[toolIndex].length > 0"
+                    >
+                      作业提交情况
+                    </div>
+                    <div
+                      style="padding-top: 15px; font-size: 18px"
+                      v-if="worksStudent[toolIndex].length > 0"
+                    >
                       作业预览
                     </div>
-                    <div class="worksDetailBox">
+                    <div
+                      class="worksDetailBox"
+                      v-if="worksStudent[toolIndex].length > 0"
+                    >
                       <div
                         class="works"
                         v-for="(w, wIndex) in worksStudent[toolIndex]"
@@ -739,11 +750,22 @@
                     v-if="tType && tType == 1 && tool.tool.indexOf(4) != -1"
                     class="worksBox"
                   >
-                    <div class="worksBTitle">作业提交情况</div>
-                    <div style="padding-top: 15px; font-size: 18px">
+                    <div
+                      class="worksBTitle"
+                      v-if="worksStudent[toolIndex].length > 0"
+                    >
+                      作业提交情况
+                    </div>
+                    <div
+                      style="padding-top: 15px; font-size: 18px"
+                      v-if="worksStudent[toolIndex].length > 0"
+                    >
                       作业预览
                     </div>
-                    <div class="worksDetailBox">
+                    <div
+                      class="worksDetailBox"
+                      v-if="worksStudent[toolIndex].length > 0"
+                    >
                       <div
                         class="works"
                         v-for="(w, wIndex) in worksStudent[toolIndex]"
@@ -786,11 +808,22 @@
                     v-if="tType && tType == 1 && tool.tool.indexOf(15) != -1"
                     class="worksBox"
                   >
-                    <div class="worksBTitle">作业提交情况</div>
-                    <div style="padding-top: 15px; font-size: 18px">
+                    <div
+                      class="worksBTitle"
+                      v-if="worksStudent[toolIndex].length > 0"
+                    >
+                      作业提交情况
+                    </div>
+                    <div
+                      style="padding-top: 15px; font-size: 18px"
+                      v-if="worksStudent[toolIndex].length > 0"
+                    >
                       作业预览
                     </div>
-                    <div class="worksDetailBox">
+                    <div
+                      class="worksDetailBox"
+                      v-if="worksStudent[toolIndex].length > 0"
+                    >
                       <div
                         class="works"
                         v-for="(w, wIndex) in worksStudent[toolIndex]"
@@ -1194,7 +1227,7 @@
             position: relative;
           "
         >
-          <div class="queTop">
+          <div class="queTop" style="padding: 20px 0 20px 0">
             <div class="question">
               <img src="../assets/icon/question.png" alt />
             </div>
@@ -2208,28 +2241,37 @@ export default {
           "*"
         );
       } else if (t == 4) {
-        this.radio = [];
-        this.isAnswer = false;
-        if (this.askCount > 0) {
-          this.updateCount(this.askCount, t);
-        } else {
-          this.askCount++;
-          a = this.askCount;
-          this.toolsCount(a, t);
-        }
-        if (!this.dialogVisible2) {
-          this.askJson.askJson =
-            this.chapInfo.chapterInfo[0].taskJson[index].toolChoose[i].askJson;
-          this.askJson.askTitle =
-            this.chapInfo.chapterInfo[0].taskJson[index].toolChoose[i].askTitle;
-          this.askJson.askCount =
-            this.chapInfo.chapterInfo[0].taskJson[index].toolChoose[i].askCount;
-        } else {
-          this.askJson.askJson = this.chapTools.askJson.askJson;
-          this.askJson.askTitle = this.chapTools.askJson.askTitle;
-          this.askJson.askCount = this.chapTools.askJson.askCount;
+        if (this.tType == 2) {
+          this.radio = [];
+          this.isAnswer = false;
+          if (this.askCount > 0) {
+            this.updateCount(this.askCount, t);
+          } else {
+            this.askCount++;
+            a = this.askCount;
+            this.toolsCount(a, t);
+          }
+          if (!this.dialogVisible2) {
+            this.askJson.askJson =
+              this.chapInfo.chapterInfo[0].taskJson[index].toolChoose[
+                i
+              ].askJson;
+            this.askJson.askTitle =
+              this.chapInfo.chapterInfo[0].taskJson[index].toolChoose[
+                i
+              ].askTitle;
+            this.askJson.askCount =
+              this.chapInfo.chapterInfo[0].taskJson[index].toolChoose[
+                i
+              ].askCount;
+          } else {
+            this.askJson.askJson = this.chapTools.askJson.askJson;
+            this.askJson.askTitle = this.chapTools.askJson.askTitle;
+            this.askJson.askCount = this.chapTools.askJson.askCount;
+          }
+          this.dialogVisible5 = true;
         }
-        this.dialogVisible5 = true;
+
         // window.parent.postMessage({ tools: "4" }, "*");
       } else if (t == 5) {
         if (this.scoreCount > 0) {
@@ -2278,14 +2320,16 @@ export default {
           "*"
         );
       } else if (t == 16) {
-        if (this.workCount > 0) {
-          this.updateCount(this.workCount, t);
-        } else {
-          this.workCount++;
-          a = this.workCount;
-          this.toolsCount(a, t);
+        if (this.tType == 2) {
+          if (this.workCount > 0) {
+            this.updateCount(this.workCount, t);
+          } else {
+            this.workCount++;
+            a = this.workCount;
+            this.toolsCount(a, t);
+          }
+          this.dialogVisible = true;
         }
-        this.dialogVisible = true;
       } else if (t == 8) {
         if (this.libraryCount > 0) {
           this.updateCount(this.libraryCount, t);
@@ -2323,21 +2367,22 @@ export default {
         }
         this.timeDialogVisible = true;
       } else if (t == 15) {
-        this.answerQ = "";
-        this.questionAnswer = "";
-        if (this.answerCount > 0) {
-          this.updateCount(this.answerCount, t);
-        } else {
-          this.answerCount++;
-          a = this.answerCount;
-          this.toolsCount(a, t);
+        if (this.tType == 2) {
+          this.answerQ = "";
+          this.questionAnswer = "";
+          if (this.answerCount > 0) {
+            this.updateCount(this.answerCount, t);
+          } else {
+            this.answerCount++;
+            a = this.answerCount;
+            this.toolsCount(a, t);
+          }
+          this.answerQ = this.chapInfo.chapterInfo[0].taskJson[index]
+            .toolChoose[i].answerQ
+            ? this.chapInfo.chapterInfo[0].taskJson[index].toolChoose[i].answerQ
+            : "";
+          this.answerDialogVisible = true;
         }
-        this.answerQ = this.chapInfo.chapterInfo[0].taskJson[index].toolChoose[
-          i
-        ].answerQ
-          ? this.chapInfo.chapterInfo[0].taskJson[index].toolChoose[i].answerQ
-          : "";
-        this.answerDialogVisible = true;
       }
     },
     toolsCount(a, t) {
@@ -2570,9 +2615,11 @@ export default {
   width: 100%;
   margin: 0px 12px;
   background: rgb(247, 247, 247);
-  padding: 15px 0px 0px 20px;
-  height: 80px;
+  padding: 20px;
+  line-height: 30px;
+  max-height: 105px;
   overflow: auto;
+  height: 70px;
 }
 
 .file {
@@ -3436,4 +3483,8 @@ export default {
   padding: 5px;
   text-overflow: ellipsis;
 }
+
+.noWorksName:hover {
+  background: #e7e7e7 !important;
+}
 </style>

部分文件因文件數量過多而無法顯示