- Fix empty status/department selects in the detail panel (printf leak) - Replace dead 代客提交 button with a working collapsible create form - Error-aware notices; redirect keeps filters and the open ticket - Status views with counts, incl. 未关闭 default and 已关闭 view - Two-column detail: conversation + attachments + prereplies | info, status/department/assignee select, internal notes; closed = read-only - Split detail panel into UsersMenusTicketsDetail trait; page-scoped tickets.css / admin-tickets.js replace inline styles - AdminListPagination accepts parent file so users.php keeps menu highlight - Drop native loading="lazy" per lazyload contract Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
226 lines
8.2 KiB
CSS
226 lines
8.2 KiB
CSS
/* 工单管理(users.php?page=aksrt_tickets)——仅在本页入队 */
|
|
|
|
.aksrt-tickets-admin {
|
|
--aksrt-tk-border: #dcdcde;
|
|
--aksrt-tk-muted: #646970;
|
|
--aksrt-tk-soft: #f6f7f7;
|
|
--aksrt-tk-accent: #2271b1;
|
|
}
|
|
|
|
.aksrt-tickets-admin__muted { color: var(--aksrt-tk-muted); font-weight: 400; }
|
|
|
|
/* ---- 代客提交 ---- */
|
|
.aksrt-tickets-admin__create {
|
|
margin: 16px 0 8px;
|
|
background: #fff;
|
|
border: 1px solid var(--aksrt-tk-border);
|
|
border-radius: 4px;
|
|
}
|
|
.aksrt-tickets-admin__create > summary {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 10px 14px;
|
|
cursor: pointer;
|
|
font-weight: 600;
|
|
color: var(--aksrt-tk-accent);
|
|
list-style: none;
|
|
}
|
|
.aksrt-tickets-admin__create > summary::-webkit-details-marker { display: none; }
|
|
.aksrt-tickets-admin__create[open] > summary { border-bottom: 1px solid var(--aksrt-tk-border); }
|
|
.aksrt-tickets-admin__create-form,
|
|
.aksrt-tickets-admin__create-empty { padding: 14px; margin: 0; }
|
|
.aksrt-tickets-admin__create-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: 12px 16px;
|
|
}
|
|
.aksrt-tickets-admin__create-grid label { display: flex; flex-direction: column; gap: 4px; }
|
|
.aksrt-tickets-admin__create-grid label > span { font-weight: 600; }
|
|
.aksrt-tickets-admin__create-grid .is-wide { grid-column: 1 / -1; }
|
|
.aksrt-tickets-admin__create-grid input,
|
|
.aksrt-tickets-admin__create-grid select,
|
|
.aksrt-tickets-admin__create-grid textarea { width: 100%; max-width: none; }
|
|
.aksrt-tickets-admin__create-foot {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
margin: 12px 0 0;
|
|
}
|
|
|
|
/* ---- 视图与筛选 ---- */
|
|
.aksrt-tickets-admin__views { margin-bottom: 4px; }
|
|
.aksrt-ticket-dot {
|
|
display: inline-block;
|
|
width: 8px;
|
|
height: 8px;
|
|
margin-right: 4px;
|
|
border-radius: 50%;
|
|
background: var(--aksrt-ticket-color, #8c8f94);
|
|
vertical-align: 1px;
|
|
}
|
|
.aksrt-tickets-admin__filters {
|
|
clear: both;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 8px 0;
|
|
}
|
|
.aksrt-tickets-admin__filters input[type="search"] { min-width: 220px; }
|
|
|
|
/* ---- 列表 ---- */
|
|
.aksrt-tickets-admin__table-wrap { overflow-x: auto; }
|
|
.aksrt-tickets-admin__table { min-width: 860px; table-layout: fixed; }
|
|
.aksrt-tickets-admin__table .column-title { width: 34%; }
|
|
.aksrt-tickets-admin__table .column-status { width: 10%; }
|
|
.aksrt-tickets-admin__table .column-type,
|
|
.aksrt-tickets-admin__table .column-admin { width: 11%; }
|
|
.aksrt-tickets-admin__table .column-user { width: 15%; }
|
|
.aksrt-tickets-admin__table .column-time { width: 19%; }
|
|
.aksrt-tickets-admin__table td { vertical-align: middle; }
|
|
.aksrt-tickets-admin__table .row-title { word-break: break-word; }
|
|
.aksrt-tickets-admin__sub { margin-top: 3px; color: var(--aksrt-tk-muted); font-size: 12px; }
|
|
.aksrt-tickets-admin__sub code { padding: 0 4px; font-size: 12px; background: var(--aksrt-tk-soft); }
|
|
.aksrt-tickets-admin__row.is-awaiting td:first-child { box-shadow: inset 3px 0 0 #d63638; }
|
|
.aksrt-tickets-admin__row.is-open td { background: #f0f6fc; }
|
|
.aksrt-tickets-admin__detail-row > td { padding: 0 !important; background: var(--aksrt-tk-soft) !important; }
|
|
.aksrt-tickets-admin__empty {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 4px;
|
|
padding: 32px 0;
|
|
color: var(--aksrt-tk-muted);
|
|
}
|
|
|
|
.aksrt-ticket-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
padding: 2px 8px;
|
|
border-radius: 999px;
|
|
font-size: 12px;
|
|
line-height: 18px;
|
|
white-space: nowrap;
|
|
color: var(--aksrt-ticket-color, #646970);
|
|
background: color-mix(in srgb, var(--aksrt-ticket-color, #646970) 12%, #fff);
|
|
border: 1px solid color-mix(in srgb, var(--aksrt-ticket-color, #646970) 30%, #fff);
|
|
}
|
|
.aksrt-ticket-badge::before {
|
|
content: "";
|
|
width: 6px;
|
|
height: 6px;
|
|
border-radius: 50%;
|
|
background: currentColor;
|
|
}
|
|
|
|
.aksrt-ticket-user { display: inline-flex; align-items: center; gap: 6px; min-width: 0; text-decoration: none; }
|
|
.aksrt-ticket-user img { flex: none; border-radius: 50%; }
|
|
.aksrt-ticket-user span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
|
|
/* ---- 详情 ---- */
|
|
.aksrt-ticket-detail {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) 300px;
|
|
gap: 16px;
|
|
padding: 16px;
|
|
border-top: 1px solid var(--aksrt-tk-border);
|
|
border-bottom: 1px solid var(--aksrt-tk-border);
|
|
}
|
|
.aksrt-ticket-detail__main,
|
|
.aksrt-ticket-detail__side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
|
|
.aksrt-ticket-detail__heading { display: block; margin: 0 0 8px; font-size: 13px; font-weight: 600; }
|
|
.aksrt-ticket-detail__empty { margin: 0; color: var(--aksrt-tk-muted); }
|
|
|
|
.aksrt-ticket-detail__origin,
|
|
.aksrt-ticket-detail__reply,
|
|
.aksrt-ticket-detail__card,
|
|
.aksrt-ticket-detail__reply-form {
|
|
padding: 12px 14px;
|
|
background: #fff;
|
|
border: 1px solid var(--aksrt-tk-border);
|
|
border-radius: 4px;
|
|
}
|
|
.aksrt-ticket-detail__origin { border-left: 3px solid var(--aksrt-tk-accent); }
|
|
|
|
.aksrt-ticket-detail__msg-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
|
|
.aksrt-ticket-detail__msg-head img { border-radius: 50%; }
|
|
.aksrt-ticket-detail__msg-head time { margin-left: auto; color: var(--aksrt-tk-muted); font-size: 12px; }
|
|
.aksrt-ticket-detail__body { word-break: break-word; }
|
|
.aksrt-ticket-detail__body > p:first-child { margin-top: 0; }
|
|
.aksrt-ticket-detail__body > p:last-child { margin-bottom: 0; }
|
|
|
|
.aksrt-ticket-detail__replies { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
|
|
.aksrt-ticket-detail__reply { margin: 0; }
|
|
.aksrt-ticket-detail__reply.is-admin { margin-left: 32px; background: #f0f6fc; border-color: #c5d9ed; }
|
|
.aksrt-ticket-detail__reply.is-user { margin-right: 32px; }
|
|
.aksrt-ticket-detail__quote {
|
|
margin: 0 0 8px;
|
|
padding: 6px 10px;
|
|
color: var(--aksrt-tk-muted);
|
|
background: var(--aksrt-tk-soft);
|
|
border-left: 3px solid var(--aksrt-tk-border);
|
|
white-space: pre-line;
|
|
}
|
|
|
|
.aksrt-ticket-detail__attachments { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
|
|
.aksrt-ticket-detail__attachments li { margin: 0; }
|
|
.aksrt-ticket-detail__attachments img {
|
|
display: block;
|
|
width: 72px;
|
|
height: 72px;
|
|
object-fit: cover;
|
|
border: 1px solid var(--aksrt-tk-border);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.aksrt-ticket-detail__reply-form textarea { width: 100%; }
|
|
.aksrt-ticket-detail__reply-foot { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
|
|
.aksrt-ticket-detail__reply-foot select { max-width: 240px; }
|
|
.aksrt-ticket-detail__counter { margin-left: auto; color: var(--aksrt-tk-muted); font-size: 12px; }
|
|
.aksrt-ticket-detail__counter.is-over { color: #d63638; }
|
|
.aksrt-ticket-detail__closed {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
margin: 0;
|
|
padding: 10px 14px;
|
|
color: var(--aksrt-tk-muted);
|
|
background: #fff;
|
|
border: 1px dashed var(--aksrt-tk-border);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.aksrt-ticket-detail__info {
|
|
display: grid;
|
|
grid-template-columns: auto minmax(0, 1fr);
|
|
gap: 8px 12px;
|
|
margin: 0;
|
|
}
|
|
.aksrt-ticket-detail__info dt { color: var(--aksrt-tk-muted); }
|
|
.aksrt-ticket-detail__info dd { margin: 0; word-break: break-all; }
|
|
|
|
.aksrt-ticket-detail__status-form { display: flex; flex-direction: column; gap: 8px; }
|
|
.aksrt-ticket-detail__status-form label { display: flex; flex-direction: column; gap: 3px; }
|
|
.aksrt-ticket-detail__status-form select { width: 100%; max-width: none; }
|
|
.aksrt-ticket-detail__status-form .button { align-self: flex-start; }
|
|
|
|
.aksrt-ticket-detail__notes { display: flex; flex-direction: column; gap: 8px; margin: 0 0 10px; padding: 0; list-style: none; }
|
|
.aksrt-ticket-detail__notes li { margin: 0; padding: 8px 10px; background: #fcf9e8; border-left: 3px solid #dba617; word-break: break-word; }
|
|
.aksrt-ticket-detail__note-head { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 4px; font-size: 12px; }
|
|
.aksrt-ticket-detail__note-head time { color: var(--aksrt-tk-muted); }
|
|
.aksrt-ticket-detail__note-form { display: flex; flex-direction: column; gap: 6px; }
|
|
.aksrt-ticket-detail__note-form textarea { width: 100%; }
|
|
.aksrt-ticket-detail__note-form .button { align-self: flex-start; }
|
|
|
|
@media (max-width: 1100px) {
|
|
.aksrt-ticket-detail { grid-template-columns: minmax(0, 1fr); }
|
|
}
|
|
@media (max-width: 782px) {
|
|
.aksrt-tickets-admin__create-grid { grid-template-columns: minmax(0, 1fr); }
|
|
.aksrt-ticket-detail__reply.is-admin,
|
|
.aksrt-ticket-detail__reply.is-user { margin-left: 0; margin-right: 0; }
|
|
}
|