SanHQin 2 周之前
父節點
當前提交
5027ba474d

+ 1 - 1
dist/index.html

@@ -32,7 +32,7 @@
       width: 100%;
       background: #e6eaf0;
       font-family: '黑体';
-    }</style><link href=./static/css/app.7fa0a9cf25182cd2e4925c2b6c421640.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.161e82026ac2ae03ab6f.js></script><script type=text/javascript src=./static/js/vendor.b7212920b6e58d14a873.js></script><script type=text/javascript src=./static/js/app.6dab276a60b449d68566.js></script></body></html><script>function stopSafari() {
+    }</style><link href=./static/css/app.e99a3e57ab2bda7d91a40b9b2b443fbf.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.161e82026ac2ae03ab6f.js></script><script type=text/javascript src=./static/js/vendor.b7212920b6e58d14a873.js></script><script type=text/javascript src=./static/js/app.07db2e1bdbb02f7ad96d.js></script></body></html><script>function stopSafari() {
     //阻止safari浏览器双击放大功能
     let lastTouchEnd = 0  //更新手指弹起的时间
     document.documentElement.addEventListener("touchstart", function (event) {

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


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


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


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


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


+ 34 - 2
src/components/pages/test/check/index.vue

@@ -3027,6 +3027,28 @@ ${JSON.stringify(forAllList)}
           //   });
           // }
 
+
+          // if(this.timeLimit){
+          //   if(_worksData[0]){
+          //     let _data = JSON.parse(_worksData[0].courseJson)
+          //     let _flag = false;
+          //     _data.forEach((item,index)=>{
+          //       if(item.type == 8 && item.json.title == "获奖时间"){
+          //         _flag = true
+          //         let time = this.timeLimit.split(",");
+          //         this.tableDatePicker[index] = [new Date(time[0]),new Date(time[1])]
+          //       }
+          //     })
+
+          //     if(!_flag){
+          //       let time = this.timeLimit.split(",");
+          //       this.submissionTimePicker =  [new Date(time[0]),new Date(time[1])];
+          //     }
+          //     this.tableDataPickerChange();
+          //     this.submissionTimePickerChange()
+          //   }
+          // }
+
           this.works = _worksData;
           this.iscount = res.data[2][0].count;
           this.pcount = res.data[3][0].count;
@@ -3405,18 +3427,28 @@ ${JSON.stringify(forAllList)}
           });
           console.log(this.teaType, "teaType");
 
+
           if(this.timeLimit){
             if(this.works[0]){
               let _data = JSON.parse(this.works[0].courseJson)
+              let _flag = false;
               _data.forEach((item,index)=>{
-                if(item.type==8){
+                if(item.type == 8 && item.json.title == "获奖时间"){
+                  _flag = true
                   let time = this.timeLimit.split(",");
                   this.tableDatePicker[index] = [new Date(time[0]),new Date(time[1])]
                 }
               })
-              this.tableDataPickerChange()
+
+              if(!_flag){
+                let time = this.timeLimit.split(",");
+                this.submissionTimePicker =  [new Date(time[0]),new Date(time[1])];
+              }
+              this.tableDataPickerChange();
+              this.submissionTimePickerChange()
             }
           }
+
         })
         .catch((err) => {
           console.error(err);

+ 66 - 14
src/components/pages/test/examine/conpoments/personPage.vue

@@ -20,7 +20,7 @@
         </div> -->
       </div>
       <el-table
-        :data="tableData"
+        :data="copyTableData"
         class="scoTab"
         v-loading="tabLoading"
         style="width: 100%"
@@ -372,6 +372,14 @@ export default {
     teacherName: {
       type: String,
       default: ""
+    },
+    timeA: {
+      type:String,
+      default:""
+    },
+    timeB: {
+      type: String,
+      default:""
     }
   },
   components: {
@@ -403,9 +411,11 @@ export default {
       oid: this.$route.query.oid, //学校id
       org: this.$route.query.org, //组织id
       tableData: [],
+      copyTableData:[],
       TeachingOptions: [],
       PageBaseDataTwo: [],
-      remDig: false
+      remDig: false,
+      timeSortList:[],
     };
   },
   watch: {
@@ -414,6 +424,16 @@ export default {
     },
     digType(newVal, oldVal) {
       this.getDataDig();
+    },
+    timeA(newVal){
+      if(newVal){
+        this.timeSortFn()
+      }
+    },
+    timeB(newVal){
+      if(newVal){
+        this.timeSortFn()
+      }
     }
   },
   computed: {
@@ -494,9 +514,10 @@ export default {
       };
       // console.log(params);
       this.ajax
-        .get(this.$store.state.api + "selectTestExaminePersonData", params)
+        .get(this.$store.state.api + "selectTestExaminePersonData_filterTime", params)
         .then(res => {
           let data = res.data[0];
+          console.log(data)
 
           data.forEach(e => {
             e.json = JSON.parse(e.json);
@@ -533,7 +554,9 @@ export default {
             e.cogSco = e.cogSco.toFixed(2);
           });
           this.tableData = data;
+          this.copyTableData = data;
           this.tabLoading = false;
+          this.timeSortFn()
         })
         .catch(error => {
           this.tabLoading = false;
@@ -554,6 +577,9 @@ export default {
       this.diaSco = true;
       this.digUserid = val.userid;
       this.disTeaClass = val.tea;
+      if(val.timeValue){
+        this.timeSortList = JSON.parse(val.timeValue)
+      }
       this.cutPerson();
       this.getPageBase();
     },
@@ -784,7 +810,13 @@ export default {
         return this.$message.error("暂无人员提交");
       // this.ifmUrl = `https://beta.pbl.cocorobo.cn/pbl-teacher-table/dist/#/checkToTest?cid=${val}&oid=${this.oid}&org=${this.org}&type=2&role=0&peopleId=${this.userid}`;
 
-      this.ifmUrl = `https://beta.pbl.cocorobo.cn/pbl-teacher-table/dist/#/checkToTest?cid=${cid}&oid=${this.oid}&org=${this.org}&type=2&role=0&peopleId=${this.digUserid}`;
+      if(this.timeSortList){
+        let timeValue = this.timeSortList.time
+        this.ifmUrl = `https://beta.pbl.cocorobo.cn/pbl-teacher-table/dist/#/checkToTest?cid=${cid}&oid=${this.oid}&org=${this.org}&type=2&role=0&peopleId=${this.digUserid}&timeLimit=${timeValue}&review=1`;
+      }else{
+      this.ifmUrl = `https://beta.pbl.cocorobo.cn/pbl-teacher-table/dist/#/checkToTest?cid=${cid}&oid=${this.oid}&org=${this.org}&type=2&role=0&peopleId=${this.digUserid}&review=1`;
+
+      }
       // this.ifmUrl = `https://beta.pbl.cocorobo.cn/pbl-teacher-table/dist/#/test?userid=${this.userid}&oid=45facc0a-1211-11ec-80ad-005056b86db5&org=&role=0`;
       this.diaIframe = true;
     },
@@ -838,25 +870,25 @@ export default {
       this.digLoading = true;
 
       this.cutTeaNum--;
-      this.digUsername = this.tableData[this.cutTeaNum].username;
-      this.disTeaClass = this.tableData[this.cutTeaNum].tea;
-      this.digUserid = this.tableData[this.cutTeaNum].userid;
-      this.digTid = this.tableData[this.cutTeaNum].id;
+      this.digUsername = this.copyTableData[this.cutTeaNum].username;
+      this.disTeaClass = this.copyTableData[this.cutTeaNum].tea;
+      this.digUserid = this.copyTableData[this.cutTeaNum].userid;
+      this.digTid = this.copyTableData[this.cutTeaNum].id;
 
       this.getPageBase();
     },
     // 弹框切换下一个教师
     nextTea() {
       // console.log("this.tableData", this.tableData);
-      if (this.cutTeaNum + 1 >= this.tableData.length)
+      if (this.cutTeaNum + 1 >= this.copyTableData.length)
         return this.$message.error("已经是最后一个了");
       this.digLoading = true;
 
       this.cutTeaNum++;
-      this.digUsername = this.tableData[this.cutTeaNum].username;
-      this.disTeaClass = this.tableData[this.cutTeaNum].tea;
-      this.digUserid = this.tableData[this.cutTeaNum].userid;
-      this.digTid = this.tableData[this.cutTeaNum].id;
+      this.digUsername = this.copyTableData[this.cutTeaNum].username;
+      this.disTeaClass = this.copyTableData[this.cutTeaNum].tea;
+      this.digUserid = this.copyTableData[this.cutTeaNum].userid;
+      this.digTid = this.copyTableData[this.cutTeaNum].id;
 
       this.getPageBase();
     },
@@ -980,6 +1012,7 @@ export default {
     },
     // 评分关闭弹框
     handleClose(done) {
+      this.timeSortList = [];
       this.getData();
       done();
     },
@@ -1010,9 +1043,19 @@ export default {
           testId: val.join(",")
         }
       ];
+
+
+      let _fnStr = `selectExamineTestName`
+      if(this.timeSortList){
+        const timeValue = this.timeSortList.time;
+        params[0].startTime = timeValue[0];
+        params[0].endTime = timeValue[1];
+        _fnStr = `selectExamineTestNameFilterTime`
+      }
+
       return new Promise(resolve => {
         this.ajax
-          .post(this.$store.state.api + "selectExamineTestName", params)
+          .post(this.$store.state.api + _fnStr, params)
           .then(res => {
             resolve(res.data[0]);
           })
@@ -1020,6 +1063,15 @@ export default {
             console.log(error);
           });
       });
+    },
+    //时间筛选
+    timeSortFn(){
+      console.log("timeSortFn",this.timeA,this.timeB)
+      if(this.pType == 1 && this.timeA){
+        this.copyTableData = this.tableData.filter(i=>i.time == this.timeA)
+      }else if(this.pType == 2 && this.timeB){
+        this.copyTableData = this.tableData.filter(i=>i.time == this.timeB)
+      }
     }
   }
 };

+ 1 - 1
src/components/pages/test/examine/conpoments/targetPage.vue

@@ -1714,7 +1714,7 @@ export default {
               let _scoreJson = [];
               if(i.scoreJson){
                 _scoreJson = JSON.parse(i.scoreJson)
-                _scoreJson = _scoreJson.filter(i2=>i.testId.indexOf(i2.id)!=-1);
+                _scoreJson = _scoreJson.filter(i2=>i.testId && i.testId.indexOf(i2.id)!=-1);
                 i.scoreJson = _scoreJson;
                 _num += _scoreJson.length;
                 _total += _scoreJson.reduce((sum, i2) => sum + i2.sco, 0);

+ 4 - 2
src/components/pages/test/examine/index.vue

@@ -26,7 +26,7 @@
           @change="selectTeaName"
           placeholder="请输入教师姓名"
         ></el-input>
-        <div style="margin: 0 20px;" v-if="timeListA.length>1 && pType == 1 && cutTable!=1">
+        <div style="margin: 0 20px;" v-if="timeListA.length>1 && pType == 1">
           <el-select v-model="timeA" placeholder="请选择">
             <el-option
               v-for="item in timeListA"
@@ -38,7 +38,7 @@
           </el-select>
         </div>
 
-        <div style="margin: 0 20px;" v-if="timeListB.length>0 && pType == 2 && cutTable!=1">
+        <div style="margin: 0 20px;" v-if="timeListB.length>0 && pType == 2">
           <el-select v-model="timeB" placeholder="请选择">
             <el-option
               v-for="item in timeListB"
@@ -79,6 +79,8 @@
         ref="child"
         :pType="pType"
         :teacherName="teacherName"
+        :timeA="timeA"
+        :timeB="timeB"
         v-if="cutTable == 1"
       ></personPage>
     </div>

+ 33 - 21
src/components/pages/workPage/index.vue

@@ -101,7 +101,15 @@
           </svg>
 
           <span
-            ><span v-html="renderedFormula(`<span style='color: #3681FC;''>${item.type == 1 ? '(单选题):' : '(多选题):'}</span>${item.teststitle}`)"></span>
+            ><span
+              v-html="
+                renderedFormula(
+                  `<span style='color: #3681FC;''>${
+                    item.type == 1 ? '(单选题):' : '(多选题):'
+                  }</span>${item.teststitle}`
+                )
+              "
+            ></span>
           </span>
         </div>
         <div
@@ -163,8 +171,8 @@ export default {
       cid: this.$route.query.cid,
       workData: {},
       loadingUploadFile: false,
-      studentWork:null,
-      loading:false,
+      studentWork: null,
+      loading: false
     };
   },
   watch: {
@@ -376,7 +384,11 @@ export default {
             type: "8"
           });
         }
-        if (["3", "8"].includes(params[0].type) && params[0].uid && params[0].cid) {
+        if (
+          ["3", "8"].includes(params[0].type) &&
+          params[0].uid &&
+          params[0].cid
+        ) {
           this.loading = true;
           this.ajax
             .post(this.$store.state.api + "addCourseWorks_workPage", params)
@@ -389,7 +401,6 @@ export default {
               } else {
                 resolve("");
               }
-
             })
             .catch(err => {
               console.log(err);
@@ -430,7 +441,7 @@ export default {
           task: this.task,
           tool: this.tool
         };
-				this.loading = true;
+        this.loading = true;
         this.ajax
           .get(
             this.$store.state.api + "select_courseWorks_workPageData",
@@ -441,11 +452,14 @@ export default {
             this.loading = false;
             if (_data.length) {
               _data = _data[0];
-              let _work = JSON.parse(decodeURIComponent(_data.content));
-              this.studentWork = _work;
-              this.studentWorkToWorkData();
+              if (["15", "45"].includes(_data.atool)) {
+                let _work = JSON.parse(decodeURIComponent(_data.content));
+                this.studentWork = _work;
+                this.studentWorkToWorkData();
+              }else{
+                console.log("工具不一致")
+              }
             }
-
           })
           .catch(err => {
             this.loading = false;
@@ -453,17 +467,16 @@ export default {
           });
       }
     },
-    studentWorkToWorkData(){
-      if(this.studentWork && this.workData){
-        console.log("studentWork",this.studentWork)
-        console.log("workData",this.workData)
-
+    studentWorkToWorkData() {
+      if (this.studentWork && this.workData) {
+        console.log("studentWork", this.studentWork);
+        console.log("workData", this.workData);
 
         let _work = JSON.parse(JSON.stringify(this.studentWork));
-        if ( this.workData.type == "15") {
+        if (this.workData.type == "15") {
           this.workData.json.answer = _work.answer;
           this.workData.json.fileList = _work.fileList;
-        } else if ( this.workData.type == "45") {
+        } else if (this.workData.type == "45") {
           this.workData.json.testJson.forEach((item, index) => {
             if (
               item.type == _work.testJson[index].type &&
@@ -471,13 +484,14 @@ export default {
               JSON.stringify(item.checkList) ==
                 JSON.stringify(_work.testJson[index].checkList)
             ) {
-              this.workData.json.testJson[index].userAnswer = _work.testJson[index].userAnswer;
+              this.workData.json.testJson[index].userAnswer =
+                _work.testJson[index].userAnswer;
             }
           });
         }
         this.$forceUpdate();
       }
-    },
+    }
   },
   mounted() {
     this.getWorkData();
@@ -752,8 +766,6 @@ export default {
   min-height: 30px;
   line-height: 30px;
   color: #1f1f1f;
-
-
 }
 
 .s_b_m_ti_title > div {

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