Selaa lähdekoodia

局域网——更新

XW 3 kuukautta sitten
vanhempi
commit
0937e03886

+ 21 - 5
TEAMModelOS.Extension/IES.Exam/IES.ExamViews/src/view/admin/ActivityManage.vue

@@ -58,9 +58,9 @@
                             <span class="paper-extType" style="border-color: #88a1d8; color: #9fa91d;" v-if="evaluationClient.type === 'Art'">
                             <span class="paper-extType" style="border-color: #88a1d8; color: #9fa91d;" v-if="evaluationClient.type === 'Art'">
                                 艺术评测
                                 艺术评测
                             </span>
                             </span>
-                            <div class="short-code">
+                            <!-- <div class="short-code">
                                 <el-button size="mini">暂时隐藏页面</el-button>
                                 <el-button size="mini">暂时隐藏页面</el-button>
-                            </div>
+                            </div> -->
                         </div>
                         </div>
                         <span>{{ evaluationClient.name }}
                         <span>{{ evaluationClient.name }}
                             <span v-show="needUpdate.status" style="font-size: 16px; font-weight: normal; margin-left: 60px;">
                             <span v-show="needUpdate.status" style="font-size: 16px; font-weight: normal; margin-left: 60px;">
@@ -195,7 +195,7 @@
                         </el-tab-pane>
                         </el-tab-pane>
                     </el-tabs>
                     </el-tabs>
                 </template>
                 </template>
-                <div v-else>暂无活动</div>
+                <div v-else style="text-align: center; margin-top: 18%; font-size: 36px; width: 100%;">暂无活动</div>
             </el-main>
             </el-main>
         </el-container>
         </el-container>
         <el-dialog title="请输入开卷码" width="30%" :visible.sync="isInputOpen" :close-on-click-modal="false" :close-on-press-escape="false" :show-close="false">
         <el-dialog title="请输入开卷码" width="30%" :visible.sync="isInputOpen" :close-on-click-modal="false" :close-on-press-escape="false" :show-close="false">
@@ -231,7 +231,9 @@
                     <span style="margin-right: 30px;">时间类型:{{ !item.countdownType ? '无' : item.countdownType === 1 ? '统一作答时长' : '学生个人作答时长' }}</span>
                     <span style="margin-right: 30px;">时间类型:{{ !item.countdownType ? '无' : item.countdownType === 1 ? '统一作答时长' : '学生个人作答时长' }}</span>
                     <span v-show="item.countdownType">作答时长:{{ item.duration }}</span>
                     <span v-show="item.countdownType">作答时长:{{ item.duration }}</span>
                 </p>
                 </p>
-                <el-button @click="getExamRoundInfo(item.id, true)" style="float: right;">查看详情</el-button>
+                <div style="text-align: right;">
+                    <el-button @click="getExamRoundInfo(item.id, true)" size="mini">查看详情</el-button>
+                </div>
             </div>
             </div>
         </el-dialog>
         </el-dialog>
         <div class="open-evaluation" v-if="showErrorMsgs">
         <div class="open-evaluation" v-if="showErrorMsgs">
@@ -903,8 +905,15 @@ export default {
                     this.studentListShow = res.results.map(item => {
                     this.studentListShow = res.results.map(item => {
                         // 后续要重新处理状态
                         // 后续要重新处理状态
                         item.isAnswer = item.finished ? 2 : item.pushed ? 1 : 0 //0未开始  1正在作答  2已完成
                         item.isAnswer = item.finished ? 2 : item.pushed ? 1 : 0 //0未开始  1正在作答  2已完成
+                        item.subjectResults = item.subjectResults.map(sub => {
+                            sub.paperProgress = sub.finished ? 100 : 0
+                            return sub
+                        })
                         return item
                         return item
                     })
                     })
+                    this.studentListShow = this.studentListShow.sort((a, b) => {
+                        return a.studentId - b.studentId
+                    })
                     this.$forceUpdate()
                     this.$forceUpdate()
                 } else {
                 } else {
                     this.$message({
                     this.$message({
@@ -944,6 +953,7 @@ export default {
                             type: 'success'
                             type: 'success'
                         });
                         });
                         this.onSelectAct(this.curIndex)
                         this.onSelectAct(this.curIndex)
+                        sessionStorage.removeItem(this.evaluationClient.id)
                     }
                     }
                 } else {
                 } else {
                     this.$message({
                     this.$message({
@@ -1017,9 +1027,15 @@ export default {
                     this.studentListShow = res.results.map(item => {
                     this.studentListShow = res.results.map(item => {
                         // 后续要重新处理状态
                         // 后续要重新处理状态
                         item.isAnswer = item.finished ? 2 : item.pushed ? 1 : 0 //0未开始  1正在作答  2已完成
                         item.isAnswer = item.finished ? 2 : item.pushed ? 1 : 0 //0未开始  1正在作答  2已完成
-                        // item.subject = item.subjectResults
+                        item.subjectResults = item.subjectResults.map(sub => {
+                            sub.paperProgress = sub.finished ? 100 : 0
+                            return sub
+                        })
                         return item
                         return item
                     })
                     })
+                    this.studentListShow = this.studentListShow.sort((a, b) => {
+                        return a.studentId - b.studentId
+                    })
                 }
                 }
             }).finally(() => {
             }).finally(() => {
                 if(isDialog) this.isLoading.close()
                 if(isDialog) this.isLoading.close()

+ 5 - 0
TEAMModelOS.Extension/IES.Exam/IES.ExamViews/src/view/student/ActivityInfo.vue

@@ -194,6 +194,11 @@ export default {
                         message: '当前无评测可以作答',
                         message: '当前无评测可以作答',
                         type: 'warning'
                         type: 'warning'
                     });
                     });
+                    setTimeout(() => {
+                        this.$router.push({
+                            path: "/login/student"
+                        });
+                    }, 1000)
                 }
                 }
             })
             })
         },
         },