|
195 | 195 | /> |
196 | 196 | </template> |
197 | 197 | <template #ticket_content> |
198 | | - <div |
199 | | - class="box-border min-h-30 bg-(--el-bg-color) border border-(--el-border-color-lighter) rounded-[calc(var(--custom-radius)/3+2px)] p-3" |
| 198 | + <ElScrollbar |
| 199 | + max-height="min(180px, 24vh)" |
| 200 | + class="box-border min-h-30 bg-(--el-bg-color) border border-(--el-border-color-lighter) rounded-[calc(var(--custom-radius)/3+2px)]" |
| 201 | + view-class="p-3" |
200 | 202 | > |
201 | 203 | <template v-if="detailHasRenderableContent"> |
202 | 204 | <div v-html="detailContentHtml" /> |
203 | 205 | </template> |
204 | 206 | <p v-else class="m-0 text-sm text-(--el-text-color-placeholder)">暂无内容</p> |
205 | | - </div> |
| 207 | + </ElScrollbar> |
206 | 208 | </template> |
207 | 209 | <template #reply_content> |
208 | | - <div |
| 210 | + <ElScrollbar |
209 | 211 | v-if="detailFormData.reply" |
210 | | - class="box-border min-h-30 bg-(--el-bg-color) border border-(--el-border-color-lighter) rounded-[calc(var(--custom-radius)/3+2px)] p-3" |
| 212 | + max-height="min(180px, 24vh)" |
| 213 | + class="box-border min-h-30 bg-(--el-bg-color) border border-(--el-border-color-lighter) rounded-[calc(var(--custom-radius)/3+2px)]" |
| 214 | + view-class="p-3" |
211 | 215 | > |
212 | 216 | <div v-html="sanitizedReply" /> |
213 | | - </div> |
| 217 | + </ElScrollbar> |
214 | 218 | <p v-else class="m-0 text-sm text-(--el-text-color-placeholder)">暂无回复</p> |
215 | 219 | </template> |
216 | 220 | </FaDescriptions> |
|
225 | 229 | </span> |
226 | 230 | </ElDivider> |
227 | 231 | <div class="flex flex-col gap-3"> |
228 | | - <div class="px-1"> |
| 232 | + <ElScrollbar max-height="min(220px, 28vh)" class="px-1"> |
229 | 233 | <div v-if="commentsLoading" class="py-3"> |
230 | 234 | <ElSkeleton :rows="2" animated /> |
231 | 235 | </div> |
|
257 | 261 | </div> |
258 | 262 | </template> |
259 | 263 | <FaEmptyState v-else icon="ri:chat-3-line" title="暂无评论" compact /> |
260 | | - </div> |
| 264 | + </ElScrollbar> |
261 | 265 |
|
262 | 266 | <!-- 提交评论 --> |
263 | 267 | <div |
@@ -413,6 +417,7 @@ import { |
413 | 417 | ElDivider, |
414 | 418 | ElInput, |
415 | 419 | ElMessageBox, |
| 420 | + ElScrollbar, |
416 | 421 | } from "element-plus"; |
417 | 422 | import DOMPurify from "dompurify"; |
418 | 423 | import FaForm from "@/components/forms/fa-form/index.vue"; |
@@ -649,8 +654,8 @@ const ticketDetailItems: import("@/components/display/fa-descriptions/index.vue" |
649 | 654 | { label: "状态", prop: "status", slot: "status" }, |
650 | 655 | { label: "处理人", prop: "assigned_by.name" }, |
651 | 656 | { label: "描述", prop: "description", span: 4 }, |
652 | | - { label: "详细内容", prop: "ticket_content", slot: "ticket_content", span: 4 }, |
653 | | - { label: "回复内容", prop: "reply", slot: "reply_content", span: 4 }, |
| 657 | + { label: "详细内容", prop: "ticket_content", slot: "ticket_content", span: 2 }, |
| 658 | + { label: "回复内容", prop: "reply", slot: "reply_content", span: 2 }, |
654 | 659 | { label: "创建人", prop: "created_by.name" }, |
655 | 660 | { label: "更新人", prop: "updated_by.name" }, |
656 | 661 | { label: "创建时间", prop: "created_time" }, |
|
0 commit comments