Showing
1 changed file
with
7 additions
and
7 deletions
| ... | @@ -2,7 +2,7 @@ | ... | @@ -2,7 +2,7 @@ |
| 2 | * @Author: hookehuyr hookehuyr@gmail.com | 2 | * @Author: hookehuyr hookehuyr@gmail.com |
| 3 | * @Date: 2025-06-19 17:12:19 | 3 | * @Date: 2025-06-19 17:12:19 |
| 4 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 4 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 5 | - * @LastEditTime: 2025-10-28 11:10:00 | 5 | + * @LastEditTime: 2025-10-28 11:13:52 |
| 6 | * @FilePath: /mlaj/src/views/teacher/studentPage.vue | 6 | * @FilePath: /mlaj/src/views/teacher/studentPage.vue |
| 7 | * @Description: 学生详情页面 | 7 | * @Description: 学生详情页面 |
| 8 | --> | 8 | --> |
| ... | @@ -259,13 +259,13 @@ | ... | @@ -259,13 +259,13 @@ |
| 259 | <div class="flex items-center cursor-pointer" @click="openCommentPopup(post)"> | 259 | <div class="flex items-center cursor-pointer" @click="openCommentPopup(post)"> |
| 260 | <van-icon | 260 | <van-icon |
| 261 | name="comment-o" | 261 | name="comment-o" |
| 262 | - :color="post.is_feedback ? '#10b981' : '#999'" | 262 | + :color="post?.is_feedback ? '#10b981' : '#999'" |
| 263 | size="19" | 263 | size="19" |
| 264 | class="mr-1" | 264 | class="mr-1" |
| 265 | style="margin-top: 0.2rem;" | 265 | style="margin-top: 0.2rem;" |
| 266 | /> | 266 | /> |
| 267 | - <span class="text-sm" :class="post.is_feedback ? 'text-green-600' : 'text-gray-500'"> | 267 | + <span class="text-sm" :class="post?.is_feedback ? 'text-green-600' : 'text-gray-500'"> |
| 268 | - {{ post.is_feedback ? '已点评' : '待点评' }} | 268 | + {{ post?.is_feedback ? '已点评' : '待点评' }} |
| 269 | </span> | 269 | </span> |
| 270 | </div> | 270 | </div> |
| 271 | </div> | 271 | </div> |
| ... | @@ -301,7 +301,7 @@ | ... | @@ -301,7 +301,7 @@ |
| 301 | <!-- 评分 --> | 301 | <!-- 评分 --> |
| 302 | <div class="mb-4"> | 302 | <div class="mb-4"> |
| 303 | <div class="text-sm text-gray-600 mb-2">评分</div> | 303 | <div class="text-sm text-gray-600 mb-2">评分</div> |
| 304 | - <van-rate v-model="commentForm.score" :size="24" color="#ffd21e" void-color="#eee" :readonly="currentCommentPost.is_feedback" /> | 304 | + <van-rate v-model="commentForm.score" :size="24" color="#ffd21e" void-color="#eee" :readonly="currentCommentPost?.is_feedback" /> |
| 305 | </div> | 305 | </div> |
| 306 | 306 | ||
| 307 | <!-- 点评内容 --> | 307 | <!-- 点评内容 --> |
| ... | @@ -316,12 +316,12 @@ | ... | @@ -316,12 +316,12 @@ |
| 316 | show-word-limit | 316 | show-word-limit |
| 317 | :border="false" | 317 | :border="false" |
| 318 | class="bg-gray-50 rounded-lg" | 318 | class="bg-gray-50 rounded-lg" |
| 319 | - :readonly="currentCommentPost.is_feedback" | 319 | + :readonly="currentCommentPost?.is_feedback" |
| 320 | /> | 320 | /> |
| 321 | </div> | 321 | </div> |
| 322 | 322 | ||
| 323 | <!-- 操作按钮 --> | 323 | <!-- 操作按钮 --> |
| 324 | - <div v-if="!currentCommentPost.is_feedback" class="flex gap-3"> | 324 | + <div v-if="!currentCommentPost?.is_feedback" class="flex gap-3"> |
| 325 | <van-button | 325 | <van-button |
| 326 | block | 326 | block |
| 327 | type="default" | 327 | type="default" | ... | ... |
-
Please register or login to post a comment