添加后端评论的管理页面

This commit is contained in:
2024-07-02 22:18:16 +08:00
parent 60c1a495f2
commit 73eb288d3c
18 changed files with 198 additions and 22 deletions

View File

@@ -20,7 +20,8 @@
v-if="hasCommented"
icon="noto:star"
:width="24"
v-for="i in description_rating"
v-for="(_, i) in description_rating"
:key="i"
/>
<n-rate v-else size="large" v-model:value="description_rating" />
</n-form-item>
@@ -36,7 +37,8 @@
v-if="hasCommented"
icon="noto:star"
:width="24"
v-for="i in difficulty_rating"
v-for="(_, i) in difficulty_rating"
:key="i"
/>
<n-rate v-else size="large" v-model:value="difficulty_rating" />
</n-form-item>
@@ -50,7 +52,8 @@
v-if="hasCommented"
icon="noto:star"
:width="24"
v-for="i in difficulty_rating"
v-for="(_, i) in difficulty_rating"
:key="i"
/>
<n-rate v-else size="large" v-model:value="comprehensive_rating" />
</n-form-item>

View File

@@ -212,7 +212,9 @@ watch(
origin: { x: 0.5, y: 0.4 },
})
// 题目在第一次完成之后,弹出点评框
showCommentPanel()
if (!contestID) {
showCommentPanel()
}
}
},
)