Ver Fonte

权限及打包

zengyicheng há 2 anos atrás
pai
commit
62ce448d3c

+ 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.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>
+<!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.c2a8c584f319615749a087cf134d96d8.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.51d8eb40c1dfbad4f4f6.js></script></body></html><script>document.domain = "cocorobo.cn"</script>

Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/static/css/app.bab7ea4ac30bab2143b78dbf2d281e46.css.map


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/static/css/app.c2a8c584f319615749a087cf134d96d8.css


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/static/css/app.c2a8c584f319615749a087cf134d96d8.css.map


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/static/js/app.51d8eb40c1dfbad4f4f6.js


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/static/js/app.51d8eb40c1dfbad4f4f6.js.map


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/static/js/app.e6ee95a73280ecf7f3c6.js


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/static/js/app.e6ee95a73280ecf7f3c6.js.map


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/static/js/manifest.3ad1d5771e9b13dbdad2.js.map


+ 289 - 53
src/components/study.vue

@@ -697,6 +697,7 @@
                       class="worksBTitle"
                       v-if="worksStudent[toolIndex].length > 0"
                     >
+                      <div class="greenBox"></div>
                       作业提交情况
                     </div>
                     <div
@@ -754,6 +755,7 @@
                       class="worksBTitle"
                       v-if="worksStudent[toolIndex].length > 0"
                     >
+                      <div class="greenBox"></div>
                       作业提交情况
                     </div>
                     <div
@@ -812,6 +814,7 @@
                       class="worksBTitle"
                       v-if="worksStudent[toolIndex].length > 0"
                     >
+                      <div class="greenBox"></div>
                       作业提交情况
                     </div>
                     <div
@@ -864,6 +867,242 @@
                       </div>
                     </div>
                   </div>
+                  <div
+                    v-if="tType && tType == 1 && tool.tool.indexOf(1) != -1"
+                    class="worksBox"
+                  >
+                    <div
+                      class="worksBTitle"
+                      v-if="worksStudent[toolIndex].length > 0"
+                    >
+                      <div class="greenBox"></div>
+                      作业提交情况
+                    </div>
+                    <div
+                      style="padding-top: 15px; font-size: 18px"
+                      v-if="worksStudent[toolIndex].length > 0"
+                    >
+                      作业预览
+                    </div>
+                    <div
+                      class="worksDetailBox"
+                      v-if="worksStudent[toolIndex].length > 0"
+                    >
+                      <div
+                        class="works"
+                        v-for="(w, wIndex) in worksStudent[toolIndex]"
+                        :key="wIndex"
+                      >
+                        <!-- @click="previewImg(w.works)" -->
+                        <div class="workImg">
+                          <img
+                            :src="w.works"
+                            @click="previewImg(w.works)"
+                            alt=""
+                          />
+                        </div>
+                        <div class="worksName">
+                          姓名:<span>{{ w.sName }}</span>
+                        </div>
+                      </div>
+                    </div>
+                    <div
+                      style="
+                        padding-top: 15px;
+                        padding-bottom: 15px;
+                        border-bottom: 1px solid #eeeeee;
+                        font-size: 18px;
+                      "
+                    >
+                      未提交
+                    </div>
+                    <div class="noWorksS">
+                      <div
+                        v-for="(s, sIndex) in noWorksS[toolIndex]"
+                        :key="sIndex"
+                        class="noWorksName"
+                      >
+                        {{ s.student }}
+                      </div>
+                    </div>
+                  </div>
+                  <div
+                    v-if="tType && tType == 1 && tool.tool.indexOf(3) != -1"
+                    class="worksBox"
+                  >
+                    <div
+                      class="worksBTitle"
+                      v-if="worksStudent[toolIndex].length > 0"
+                    >
+                      <div class="greenBox"></div>
+                      作业提交情况
+                    </div>
+                    <div
+                      style="padding-top: 15px; font-size: 18px"
+                      v-if="worksStudent[toolIndex].length > 0"
+                    >
+                      作业预览
+                    </div>
+                    <div
+                      class="worksDetailBox"
+                      v-if="worksStudent[toolIndex].length > 0"
+                    >
+                      <div
+                        class="works"
+                        v-for="(w, wIndex) in worksStudent[toolIndex]"
+                        :key="wIndex"
+                      >
+                        <!-- @click="previewImg(w.works)" -->
+                        <div class="workImg">
+                          <img
+                            :src="w.works"
+                            @click="previewImg(w.works)"
+                            alt=""
+                          />
+                        </div>
+                        <div class="worksName">
+                          姓名:<span>{{ w.sName }}</span>
+                        </div>
+                      </div>
+                    </div>
+                    <div
+                      style="
+                        padding-top: 15px;
+                        padding-bottom: 15px;
+                        border-bottom: 1px solid #eeeeee;
+                        font-size: 18px;
+                      "
+                    >
+                      未提交
+                    </div>
+                    <div class="noWorksS">
+                      <div
+                        v-for="(s, sIndex) in noWorksS[toolIndex]"
+                        :key="sIndex"
+                        class="noWorksName"
+                      >
+                        {{ s.student }}
+                      </div>
+                    </div>
+                  </div>
+                  <div
+                    v-if="tType && tType == 1 && tool.tool.indexOf(6) != -1"
+                    class="worksBox"
+                  >
+                    <div
+                      class="worksBTitle"
+                      v-if="worksStudent[toolIndex].length > 0"
+                    >
+                      <div class="greenBox"></div>
+                      作业提交情况
+                    </div>
+                    <div
+                      style="padding-top: 15px; font-size: 18px"
+                      v-if="worksStudent[toolIndex].length > 0"
+                    >
+                      作业预览
+                    </div>
+                    <div
+                      class="worksDetailBox"
+                      v-if="worksStudent[toolIndex].length > 0"
+                    >
+                      <div
+                        class="works"
+                        v-for="(w, wIndex) in worksStudent[toolIndex]"
+                        :key="wIndex"
+                      >
+                        <!-- @click="previewImg(w.works)" -->
+                        <div class="workImg">
+                          <img
+                            :src="w.works"
+                            @click="previewImg(w.works)"
+                            alt=""
+                          />
+                        </div>
+                        <div class="worksName">
+                          姓名:<span>{{ w.sName }}</span>
+                        </div>
+                      </div>
+                    </div>
+                    <div
+                      style="
+                        padding-top: 15px;
+                        padding-bottom: 15px;
+                        border-bottom: 1px solid #eeeeee;
+                        font-size: 18px;
+                      "
+                    >
+                      未提交
+                    </div>
+                    <div class="noWorksS">
+                      <div
+                        v-for="(s, sIndex) in noWorksS[toolIndex]"
+                        :key="sIndex"
+                        class="noWorksName"
+                      >
+                        {{ s.student }}
+                      </div>
+                    </div>
+                  </div>
+                  <div
+                    v-if="tType && tType == 1 && tool.tool.indexOf(7) != -1"
+                    class="worksBox"
+                  >
+                    <div
+                      class="worksBTitle"
+                      v-if="worksStudent[toolIndex].length > 0"
+                    >
+                      <div class="greenBox"></div>
+                      作业提交情况
+                    </div>
+                    <div
+                      style="padding-top: 15px; font-size: 18px"
+                      v-if="worksStudent[toolIndex].length > 0"
+                    >
+                      作业预览
+                    </div>
+                    <div
+                      class="worksDetailBox"
+                      v-if="worksStudent[toolIndex].length > 0"
+                    >
+                      <div
+                        class="works"
+                        v-for="(w, wIndex) in worksStudent[toolIndex]"
+                        :key="wIndex"
+                      >
+                        <!-- @click="previewImg(w.works)" -->
+                        <div class="workImg">
+                          <img
+                            :src="w.works"
+                            @click="previewImg(w.works)"
+                            alt=""
+                          />
+                        </div>
+                        <div class="worksName">
+                          姓名:<span>{{ w.sName }}</span>
+                        </div>
+                      </div>
+                    </div>
+                    <div
+                      style="
+                        padding-top: 15px;
+                        padding-bottom: 15px;
+                        border-bottom: 1px solid #eeeeee;
+                        font-size: 18px;
+                      "
+                    >
+                      未提交
+                    </div>
+                    <div class="noWorksS">
+                      <div
+                        v-for="(s, sIndex) in noWorksS[toolIndex]"
+                        :key="sIndex"
+                        class="noWorksName"
+                      >
+                        {{ s.student }}
+                      </div>
+                    </div>
+                  </div>
                 </div>
                 <!-- <div class="upload_toolBtn" @click="addImg($event)">
                   上传文件
@@ -2241,36 +2480,28 @@ export default {
           "*"
         );
       } else if (t == 4) {
-        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.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;
 
         // window.parent.postMessage({ tools: "4" }, "*");
       } else if (t == 5) {
@@ -2320,16 +2551,14 @@ export default {
           "*"
         );
       } else if (t == 16) {
-        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;
+        if (this.workCount > 0) {
+          this.updateCount(this.workCount, t);
+        } else {
+          this.workCount++;
+          a = this.workCount;
+          this.toolsCount(a, t);
         }
+        this.dialogVisible = true;
       } else if (t == 8) {
         if (this.libraryCount > 0) {
           this.updateCount(this.libraryCount, t);
@@ -2367,22 +2596,21 @@ export default {
         }
         this.timeDialogVisible = true;
       } else if (t == 15) {
-        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.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;
       }
     },
     toolsCount(a, t) {
@@ -3431,6 +3659,14 @@ export default {
   font-size: 20px;
   padding-bottom: 15px;
   border-bottom: 1px solid #eeeeee;
+  display: flex;
+  align-items: center;
+}
+.greenBox {
+  width: 5px;
+  height: 30px;
+  background: #41c4a4;
+  margin-right: 5px;
 }
 .worksDetailBox {
   display: flex;

Alguns ficheiros não foram mostrados porque muitos ficheiros mudaram neste diff