详情使用共享主表字典,稀疏修改所选字段并保留原始问答及旧复核审计。 月周统计提供文本和下拉双入口;每租户每周一份持久草稿,按技能六节双语模板真实预填。 加入幂等自动保存、冲突保留、未知响应重试、切周及离开保护和schema58非破坏降级保护。 验证:完整make verify、隔离PostgreSQL全mirror竞态回归、真实恢复库浏览器验收通过。 浏览器实测字段精确读回、月周双输入、模板预填、MD/CSV、自动保存、冲突、失败重试与API重启恢复。 未连接或改写DobotAI生产源库,未运行付费模型;提交时尚未部署。
This commit is contained in:
@@ -0,0 +1,176 @@
|
||||
.qa-weekly.qa-weekly-editor {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
min-height: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
.qa-weekly-editor-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 18px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.qa-weekly-editor-header h3 {
|
||||
margin: 0;
|
||||
font-size: 18px;
|
||||
color: #17324d;
|
||||
}
|
||||
.qa-weekly-editor-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.qa-weekly-reload {
|
||||
min-width: 168px;
|
||||
}
|
||||
.qa-weekly-prefill {
|
||||
min-width: 144px;
|
||||
}
|
||||
.qa-weekly-editor-toolbar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 16px;
|
||||
justify-content: space-between;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.qa-weekly-mode {
|
||||
display: flex;
|
||||
gap: 4px;
|
||||
}
|
||||
.qa-weekly-mode button[aria-pressed='true'] {
|
||||
background: #eaf3ff;
|
||||
color: #155cb5;
|
||||
border-color: #a3c7f3;
|
||||
}
|
||||
.qa-weekly-editor-status {
|
||||
font-size: 13px;
|
||||
color: #64748b;
|
||||
}
|
||||
.qa-weekly-editor-status[data-weekly-save-state='saved'] {
|
||||
color: #2d704d;
|
||||
}
|
||||
.qa-weekly-editor-status[data-weekly-save-state='error'] {
|
||||
color: #b42318;
|
||||
}
|
||||
.qa-weekly-editor-layout {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
|
||||
flex: 1;
|
||||
min-height: 320px;
|
||||
overflow: hidden;
|
||||
border: 1px solid #dce4ed;
|
||||
border-radius: 10px;
|
||||
background: #fff;
|
||||
}
|
||||
.qa-weekly-editor-layout[data-mode='edit'],
|
||||
.qa-weekly-editor-layout[data-mode='preview'] {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
}
|
||||
.qa-weekly-writing {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-width: 0;
|
||||
min-height: 0;
|
||||
}
|
||||
.qa-weekly-writing > label {
|
||||
padding: 10px 16px;
|
||||
background: #f5f8fc;
|
||||
border-bottom: 1px solid #e3e9f0;
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
color: #344b66;
|
||||
}
|
||||
.qa-weekly-writing > label small {
|
||||
font-weight: 400;
|
||||
color: #728298;
|
||||
margin-left: 8px;
|
||||
}
|
||||
.qa-weekly-writing textarea {
|
||||
flex: 1;
|
||||
min-height: 260px;
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
border: 0;
|
||||
outline-offset: -3px;
|
||||
border-radius: 0;
|
||||
resize: none;
|
||||
box-sizing: border-box;
|
||||
padding: 16px;
|
||||
font:
|
||||
13px/1.8 ui-monospace,
|
||||
SFMono-Regular,
|
||||
Consolas,
|
||||
monospace;
|
||||
color: #263c52;
|
||||
background: #fff;
|
||||
tab-size: 2;
|
||||
}
|
||||
.qa-weekly-writing textarea:disabled {
|
||||
background: #f6f8fb;
|
||||
color: #6c7a8a;
|
||||
}
|
||||
.qa-weekly-editor-layout .qa-weekly-preview {
|
||||
margin: 0;
|
||||
border: 0;
|
||||
border-left: 1px solid #e3e9f0;
|
||||
border-radius: 0;
|
||||
padding: 16px;
|
||||
overflow: auto;
|
||||
min-width: 0;
|
||||
min-height: 0;
|
||||
max-height: none;
|
||||
}
|
||||
.qa-weekly-editor-layout[data-mode='preview'] .qa-weekly-preview {
|
||||
border-left: 0;
|
||||
}
|
||||
.qa-weekly-source {
|
||||
font-size: 12px;
|
||||
color: #66778c;
|
||||
}
|
||||
.qa-weekly-source p {
|
||||
margin: 7px 0;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
.qa-weekly-source summary {
|
||||
cursor: pointer;
|
||||
}
|
||||
.qa-weekly-editor > .error-banner {
|
||||
margin: 0;
|
||||
}
|
||||
.qa-weekly-editor > .error-banner button {
|
||||
margin-left: 8px;
|
||||
}
|
||||
.qa-weekly-editor .qa-period-input {
|
||||
min-width: 210px;
|
||||
}
|
||||
@media (max-width: 900px) {
|
||||
.qa-weekly-editor-header {
|
||||
gap: 10px;
|
||||
}
|
||||
.qa-weekly-editor-actions {
|
||||
gap: 6px;
|
||||
}
|
||||
.qa-weekly-editor-layout[data-mode='both'] {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: auto;
|
||||
}
|
||||
.qa-weekly-editor-layout[data-mode='both'] .qa-weekly-writing {
|
||||
min-height: 360px;
|
||||
flex: none;
|
||||
}
|
||||
.qa-weekly-editor-layout[data-mode='both'] .qa-weekly-preview {
|
||||
min-height: 260px;
|
||||
overflow: visible;
|
||||
border-left: 0;
|
||||
border-top: 1px solid #e3e9f0;
|
||||
}
|
||||
.qa-weekly-editor-header .qa-period-input {
|
||||
width: 100%;
|
||||
}
|
||||
.qa-weekly-editor-actions {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user