SanHQin 4 days ago
parent
commit
cfbc8005b1

+ 1 - 1
dist/index.html

@@ -32,7 +32,7 @@
       width: 100%;
       background: #e6eaf0;
       font-family: '黑体';
-    }</style><link href=./static/css/app.ae2b4212d70ff511768b04b34d118ef1.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.4ae9a0856ce4a810a07b.js></script></body></html><script>function stopSafari() {
+    }</style><link href=./static/css/app.01806796983a55c6dd70f5c3f6c926f8.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.8cb75f8cb71f97a588bb.js></script></body></html><script>function stopSafari() {
     //阻止safari浏览器双击放大功能
     let lastTouchEnd = 0  //更新手指弹起的时间
     document.documentElement.addEventListener("touchstart", function (event) {

File diff suppressed because it is too large
+ 0 - 0
dist/static/css/app.01806796983a55c6dd70f5c3f6c926f8.css


File diff suppressed because it is too large
+ 0 - 0
dist/static/css/app.01806796983a55c6dd70f5c3f6c926f8.css.map


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.8cb75f8cb71f97a588bb.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.8cb75f8cb71f97a588bb.js.map


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/manifest.161e82026ac2ae03ab6f.js.map


+ 49 - 31
src/components/pages/test/check/index.vue

@@ -108,7 +108,7 @@
                   </div>
                 </div>
               </div>
-              <div class="right" v-if="peopleId">
+              <div class="right" v-if="review==='1'">
                 <div class="score_box">总分:<span>{{ scoList2.reduce((acc, curr) => acc + curr.sco, 0) }}</span></div>
               </div>
             </div>
@@ -1401,7 +1401,7 @@
                     <div class="tableDatePicker">
                       <el-date-picker
                         v-model="tableDatePicker[index]"
-                        @change="tableDataPickerChange"
+                        @blur="tableDataPickerChange"
                         type="daterange"
                         range-separator="▼"
                         :picker-options="pickerOptions(item.json.timeSort)"
@@ -1599,7 +1599,7 @@
                 label="审核状态"
                 width="120px"
                 fixed="right"
-                v-if="peopleId"
+                v-if="review==='1'"
               >
               <template slot-scope="scope">
                 <el-checkbox @change="reviewChange(scope.row)" true-label="1" false-label="0" v-model="scope.row.isReview">审核通过</el-checkbox>
@@ -2208,6 +2208,8 @@ export default {
       disableBack: this.$route.query.disableBack === 'true',
       timeLimit:this.$route.query.timeLimit,
       sortTime:[],
+      review:this.$route.query.review,
+      defaultTimeLimit:[]
     };
   },
   watch: {},
@@ -2996,34 +2998,34 @@ ${JSON.stringify(forAllList)}
 
           let _worksData = res.data[1];
 
-          if(this.timeLimit){
-            console.log("timeLimit", this.timeLimit)
-            // 2024-12-31T16:00:00.000Z,2025-12-31T16:00:00.000Z
-            // 根据 timeLimit 筛选 _worksData
-            let [startStr, endStr] = this.timeLimit.split(',');
-            let startDate = startStr ? new Date(startStr) : null;
-            let endDate = endStr ? new Date(endStr) : null;
-            _worksData = _worksData.filter(i => {
-              if (!i.time) return false;
-              // i.time 例子:2025年02月25日 10:17:46
-              let match = i.time.match(/^(\d{4})年(\d{2})月(\d{2})日/);
-              if (!match) return false;
-              let year = parseInt(match[1]);
-              let month = parseInt(match[2]);
-              let day = parseInt(match[3]);
-              // 构造当前数据的日期对象
-              let curDate = new Date(year, month - 1, day, 0, 0, 0);
-              // 判断是否在区间内(包含等于)
-              if (startDate && endDate) {
-                return curDate >= startDate && curDate <= endDate;
-              } else if (startDate) {
-                return curDate >= startDate;
-              } else if (endDate) {
-                return curDate <= endDate;
-              }
-              return true;
-            });
-          }
+          // if(this.timeLimit){
+          //   console.log("timeLimit", this.timeLimit)
+          //   // 2024-12-31T16:00:00.000Z,2025-12-31T16:00:00.000Z
+          //   // 根据 timeLimit 筛选 _worksData
+          //   let [startStr, endStr] = this.timeLimit.split(',');
+          //   let startDate = startStr ? new Date(startStr) : null;
+          //   let endDate = endStr ? new Date(endStr) : null;
+          //   _worksData = _worksData.filter(i => {
+          //     if (!i.time) return false;
+          //     // i.time 例子:2025年02月25日 10:17:46
+          //     let match = i.time.match(/^(\d{4})年(\d{2})月(\d{2})日/);
+          //     if (!match) return false;
+          //     let year = parseInt(match[1]);
+          //     let month = parseInt(match[2]);
+          //     let day = parseInt(match[3]);
+          //     // 构造当前数据的日期对象
+          //     let curDate = new Date(year, month - 1, day, 0, 0, 0);
+          //     // 判断是否在区间内(包含等于)
+          //     if (startDate && endDate) {
+          //       return curDate >= startDate && curDate <= endDate;
+          //     } else if (startDate) {
+          //       return curDate >= startDate;
+          //     } else if (endDate) {
+          //       return curDate <= endDate;
+          //     }
+          //     return true;
+          //   });
+          // }
 
           this.works = _worksData;
           this.iscount = res.data[2][0].count;
@@ -3402,6 +3404,19 @@ ${JSON.stringify(forAllList)}
             });
           });
           console.log(this.teaType, "teaType");
+
+          if(this.timeLimit){
+            if(this.works[0]){
+              let _data = JSON.parse(this.works[0].courseJson)
+              _data.forEach((item,index)=>{
+                if(item.type==8){
+                  let time = this.timeLimit.split(",");
+                  this.tableDatePicker[index] = [new Date(time[0]),new Date(time[1])]
+                }
+              })
+              this.tableDataPickerChange()
+            }
+          }
         })
         .catch((err) => {
           console.error(err);
@@ -4419,6 +4434,7 @@ ${JSON.stringify(forAllList)}
       this.selectWorkList = value;
     },
     tableDataPickerChange() {
+      console.log(this.tableDatePicker)
       let _copyData = JSON.parse(JSON.stringify(this.worksArray));
       this.tableDatePicker.forEach((i, index) => {
         /*[null,["2024-12-05T00:00:00.000","2025-01-12T00:00:00.000"],["2024-12-04T00:00:00.000","2025-01-24T00:00:00.000"]] */
@@ -4435,6 +4451,7 @@ ${JSON.stringify(forAllList)}
         }
       });
       this.tableWorksArray = _copyData;
+      this.$forceUpdate()
     },
     submissionTimePickerChange(){
       let _copyData = JSON.parse(JSON.stringify(this.worksArray));
@@ -4450,6 +4467,7 @@ ${JSON.stringify(forAllList)}
       })
 
       this.tableWorksArray = _copyData;
+      this.$forceUpdate();
       // this.submissionTimePicker.forEach((i, index) => {
       //   /*[null,["2024-12-05T00:00:00.000","2025-01-12T00:00:00.000"],["2024-12-04T00:00:00.000","2025-01-24T00:00:00.000"]] */
       //   if (i && i.length > 0) {

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

@@ -1723,7 +1723,8 @@ export default {
             })
 
             if(_total>0&&_num>0){
-              _data[0].average = (_total / _num).toFixed(0);
+              _data[0].average = _total.toFixed(0)
+              // _data[0].average = (_total / _num).toFixed(0);
             }
 
 
@@ -1743,9 +1744,9 @@ export default {
 
       if(this.testExamineBaseList[0].value){
         const timeValue = JSON.parse(this.testExamineBaseList[0].value).time;
-        this.ifmUrl = `https://beta.pbl.cocorobo.cn/pbl-teacher-table/dist/#/checkToTest?cid=${cid}&oid=${val.organizeid}&userid=${this.userid}&org=${val.org}&type=2&role=0&peopleId=${val.userid}&disableBack=true&timeLimit=${timeValue}`;
+        this.ifmUrl = `https://beta.pbl.cocorobo.cn/pbl-teacher-table/dist/#/checkToTest?cid=${cid}&oid=${val.organizeid}&userid=${this.userid}&org=${val.org}&type=2&role=0&peopleId=${val.userid}&disableBack=true&timeLimit=${timeValue}&review=1`;
       }else{
-        this.ifmUrl = `https://beta.pbl.cocorobo.cn/pbl-teacher-table/dist/#/checkToTest?cid=${cid}&oid=${val.organizeid}&userid=${this.userid}&org=${val.org}&type=2&role=0&peopleId=${val.userid}&disableBack=true`;
+        this.ifmUrl = `https://beta.pbl.cocorobo.cn/pbl-teacher-table/dist/#/checkToTest?cid=${cid}&oid=${val.organizeid}&userid=${this.userid}&org=${val.org}&type=2&role=0&peopleId=${val.userid}&disableBack=true&review=1`;
       }
       // this.ifmUrl = `https://beta.pbl.cocorobo.cn/pbl-teacher-table/dist/#/checkToTest?cid=${cid}&oid=${val.organizeid}&userid=${this.userid}&org=${val.org}&type=2&role=0&peopleId=${val.userid}&disableBack=true`;
       // this.ifmUrl = `https://beta.pbl.cocorobo.cn/pbl-teacher-table/dist/#/test?userid=${this.userid}&oid=45facc0a-1211-11ec-80ad-005056b86db5&org=&role=0`;

+ 1 - 1
src/components/pages/test/examine/index.vue

@@ -105,7 +105,7 @@ export default {
       oid: this.$route.query.oid,
       org: this.$route.query.org,
       pType: 2,
-      cutTable: 0,
+      cutTable: 1,
       teacherName: "",
       cutTabOpts: [
         {

Some files were not shown because too many files changed in this diff