评阅页不显示项目资源类;编译、往返时间只给老师看
- 评阅页的代码标签不再列出平台生成的 Properties/Resources.Designer.cs(和实验页一致) - 自由练习里编译、启动、往返时间只给老师显示,学生看不到这些开发用的数字 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
c217eb5ca0
commit
e8058376dd
2 files changed
+5
-3
No files matched your search
@@ -9,6 +9,7 @@ import { NButton, NEmpty, NInput, NInputNumber, NSpin, NTab, NTabs, NTag, useDia
|
||||
import type { AiReview, Assignment, Review, Screenshot, SourceFile, Submission } from '@iot/shared'
|
||||
import { api } from '../api'
|
||||
import { currentUser, logout } from '../auth'
|
||||
import { RESOURCES_FILE } from '../designer/resources'
|
||||
import CodeEditor from '../editor/CodeEditor.vue'
|
||||
import RunArea from '../run/RunArea.vue'
|
||||
import { createRunSession } from '../run/session'
|
||||
@@ -84,7 +85,8 @@ const saving = ref(false)
|
||||
|
||||
const autoTotal = computed(() => assignment.value?.scoring.auto.reduce((a, b) => a + b, 0) ?? 0)
|
||||
const manualTotal = computed(() => assignment.value?.scoring.manual.reduce((a, m) => a + m.points, 0) ?? 0)
|
||||
const codeFiles = computed(() => detail.value?.files?.filter((f) => f.path.endsWith('.cs')) ?? [])
|
||||
// 项目资源类是平台生成的,和实验页一样不显示
|
||||
const codeFiles = computed(() => detail.value?.files?.filter((f) => f.path.endsWith('.cs') && f.path !== RESOURCES_FILE) ?? [])
|
||||
const hints = computed(() => (detail.value?.files ? conventionHints(detail.value.files) : []))
|
||||
/** 正在打的老师评分之和(未保存) */
|
||||
const draftManual = computed(() => scores.value.reduce<number>((a, s) => a + (s ?? 0), 0))
|
||||
|
||||
@@ -507,7 +507,7 @@ function run() {
|
||||
</NPopconfirm>
|
||||
<span v-if="!viewing" class="save-state" :class="saveState">{{ SAVE_TEXT[saveState] }}</span>
|
||||
<NTag :type="statusType">{{ STATUS_TEXT[state.status] }}</NTag>
|
||||
<span v-if="!assignmentId && !viewing" class="metrics">
|
||||
<span v-if="!assignmentId && !viewing && currentUser?.role === 'teacher'" class="metrics">
|
||||
编译 {{ state.metrics.compileMs }} ms · 启动 {{ state.metrics.startMs }} ms · 最近一次操作往返
|
||||
{{ state.metrics.lastRoundTripMs }} ms
|
||||
</span>
|
||||
@@ -649,7 +649,7 @@ function run() {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
/* 编译、往返时间是给开发看的,屏幕窄时(机房常见 1366 宽)不显示,免得工具栏挤成两行 */
|
||||
/* 编译、往返时间只给老师看,屏幕窄时(机房常见 1366 宽)也不显示,免得工具栏挤成两行 */
|
||||
@media (max-width: 1599px) {
|
||||
.metrics {
|
||||
display: none;
|
||||
|
||||
Reference in new issue
Block a user