SanHQin 4 days ago
parent
commit
fa2b39160a

+ 1 - 1
dist/index.html

@@ -32,7 +32,7 @@
       width: 100%;
       background: #e6eaf0;
       font-family: '黑体';
-    }</style><link href=./static/css/app.a266439dc2e6b650a711633aaae23d3c.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.dde2d87b73ef53e1ff6f.js></script></body></html><script>function stopSafari() {
+    }</style><link href=./static/css/app.f1fbb3eda4c3ca78c5ee81110735277e.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.d7ec4f2a9752401c4509.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.f1fbb3eda4c3ca78c5ee81110735277e.css


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


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


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


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


+ 53 - 0
src/components/pages/test/check/index.vue

@@ -108,6 +108,9 @@
                   </div>
                 </div>
               </div>
+              <div class="right" v-if="peopleId">
+                <div class="score_box">总分:<span>{{ scoList2.reduce((acc, curr) => acc + curr.sco, 0) }}</span></div>
+              </div>
             </div>
 
             <!-- pc端 查看切换 isDesktop-->
@@ -1591,6 +1594,17 @@
                   >
                 </template>
               </el-table-column>
+
+              <el-table-column
+                label="审核状态"
+                width="120px"
+                fixed="right"
+                v-if="peopleId"
+              >
+              <template slot-scope="scope">
+                <el-checkbox @change="reviewChange(scope.row)" true-label="1" false-label="0" v-model="scope.row.isReview">审核通过</el-checkbox>
+              </template>
+              </el-table-column>
             </el-table>
           </div>
           <!-- 按人员手机端 !isDesktop-->
@@ -2387,6 +2401,15 @@ export default {
           }
         return _result;
       }
+    },
+    scoList2(){
+      let result = [];
+      if(this.peopleId){
+        result = this.scoList.filter(i=>this.tableWorksArray.map(i=>i.id).indexOf(i.id) != -1)
+      }else{
+        result = this.scoList;
+      }
+      return result
     }
   },
   methods: {
@@ -3128,6 +3151,7 @@ ${JSON.stringify(forAllList)}
                 name: this.works[i].username ? this.works[i].username : "匿名",
                 time: this.works[i].time,
                 array: _json2,
+                isReview:this.works[i].isReview,
                 cut: 0,
                 uteaName: this.works[i].uteaName,
                 courseJson: JSON.parse(this.works[i].courseJson),
@@ -4569,6 +4593,24 @@ ${JSON.stringify(item.array)}
         console.log(e);
       })
     },
+    reviewChange(row){
+
+      console.log(row);
+
+      let params = [{
+        id:row.id,
+        isReview:row.isReview
+      }]
+
+      this.ajax.post(this.$store.state.api+"update_testCourseWorks_isReviewById",params).then(res=>{
+        console.log(res);
+      }).catch(e=>{
+        console.log(e);
+      })
+      // console.log(row);
+      // this.tableWorksArray.find(i=>i.id===row.id).isReview = "1";
+      // this.$forceUpdate()
+    }
   },
 
   beforeDestroy() {
@@ -5717,4 +5759,15 @@ ${JSON.stringify(item.array)}
   height:100%;
   cursor: pointer;
 }
+
+.el-checkbox{
+  display: flex;
+  align-items: center;
+}
+
+.score_box{
+  font-size: 22px;
+  margin-right: 20px;
+  font-weight:bold;
+}
 </style>

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

@@ -226,7 +226,7 @@
               </div>
             </template>
           </el-table-column>
-          <!-- <el-table-column
+          <el-table-column
             :show-overflow-tooltip="true"
             align="center"
             label="状态"
@@ -238,7 +238,7 @@
              </div>
              <span v-else>/</span>
             </template>
-          </el-table-column> -->
+          </el-table-column>
           <el-table-column
             :sortable="true"
             :sort-method="sortCogMethod"

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