feat: 项目层级树+合作方绑定KOC资源+客户群全量可选+精简编辑表单,移除复盘报表
- 项目支持父子层级:树形折叠展示、详情面板内联管理总群成员、推送聚合子项目任务、环检测与子项目删除守卫 - 外部KOC合作方绑定 KOC 资源账号(唯一占用、换绑/解绑、资源页一键设为合作方),列表直显联系方式 - 绑定客户群改为全量外部群缓存(含各群主),同步按钮强刷;member_count 缺失以 member_list 兜底 - 任务/项目编辑模式隐藏不可变字段(平台/内容类型/品牌/总群成员),详情面板维护成员时保留 parent_id - 删除复盘报表整栏(导航/页面/task_report_list/导出路由/CSV lib 及测试)
This commit is contained in:
170
app/globals.css
170
app/globals.css
@@ -1486,7 +1486,7 @@ a {
|
||||
|
||||
.partner-row {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr 0.6fr 1.4fr auto;
|
||||
grid-template-columns: 1fr 1fr 1.2fr 0.6fr 1.4fr auto;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
padding: 10px 12px;
|
||||
@@ -1519,6 +1519,59 @@ a {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.partner-resource-cell {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: 3px;
|
||||
}
|
||||
|
||||
.partner-resource-cell strong {
|
||||
max-width: 100%;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.partner-resource-contact {
|
||||
max-width: 100%;
|
||||
padding: 1px 7px;
|
||||
border-radius: 5px;
|
||||
background: #eef6f1;
|
||||
color: #3f7d63;
|
||||
font-size: 10px;
|
||||
font-style: normal;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.partner-resource-contact.empty {
|
||||
background: #f4f4f2;
|
||||
color: #a8afa8;
|
||||
}
|
||||
|
||||
.partner-resource-actions {
|
||||
display: flex;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.partner-resource-actions .ghost-button {
|
||||
min-height: 22px;
|
||||
padding: 0 8px;
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
.partner-resource-actions .ghost-button.danger {
|
||||
border-color: rgb(180 84 63 / 0.35);
|
||||
color: #b4543f;
|
||||
}
|
||||
|
||||
.partner-resource-actions .ghost-button.danger:hover:not(:disabled) {
|
||||
border-color: rgb(180 84 63 / 0.65);
|
||||
}
|
||||
|
||||
.partner-external-cell input,
|
||||
.partner-external-cell code {
|
||||
width: 100%;
|
||||
@@ -3176,6 +3229,46 @@ a {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.resource-foot-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.resource-partner-button {
|
||||
padding: 3px 10px;
|
||||
border: 1px solid var(--green);
|
||||
border-radius: 999px;
|
||||
background: transparent;
|
||||
color: var(--green);
|
||||
font-size: 10px;
|
||||
font-weight: 650;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.resource-partner-button:hover:not(:disabled) {
|
||||
background: #eaf6f0;
|
||||
}
|
||||
|
||||
.resource-partner-button:disabled {
|
||||
opacity: 0.6;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.resource-partner-bound {
|
||||
padding: 3px 10px;
|
||||
border-radius: 999px;
|
||||
background: #eef2ef;
|
||||
color: #687773;
|
||||
font-size: 10px;
|
||||
font-weight: 620;
|
||||
max-width: 140px;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.resource-empty {
|
||||
display: flex;
|
||||
min-height: 240px;
|
||||
@@ -5351,6 +5444,36 @@ label small {
|
||||
padding: 18px 20px;
|
||||
}
|
||||
|
||||
.project-tree-node.project-panel + .project-tree-node.project-panel {
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.project-tree-toggle {
|
||||
flex: none;
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
border: 1px solid #dfe6e1;
|
||||
border-radius: 6px;
|
||||
background: #f7faf8;
|
||||
color: #5b6b62;
|
||||
font-size: 11px;
|
||||
line-height: 1;
|
||||
cursor: pointer;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.project-tree-toggle:hover:not(:disabled) {
|
||||
border-color: #b8c8be;
|
||||
color: #2f3e36;
|
||||
}
|
||||
|
||||
.project-tree-toggle.leaf {
|
||||
opacity: 0.35;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.ungrouped-panel {
|
||||
padding: 18px 20px;
|
||||
}
|
||||
@@ -5438,20 +5561,59 @@ label small {
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
.project-detail-block-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.project-member-list {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.project-member-list code {
|
||||
padding: 3px 8px;
|
||||
border-radius: 6px;
|
||||
.project-member-list li {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
padding: 3px 6px 3px 4px;
|
||||
border-radius: 7px;
|
||||
background: #eef2ef;
|
||||
}
|
||||
|
||||
.project-member-list code {
|
||||
padding: 0 4px;
|
||||
color: #556861;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.project-member-remove {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
border-radius: 50%;
|
||||
color: #8a958f;
|
||||
background: #dfe6e2;
|
||||
font-size: 12px;
|
||||
line-height: 1;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.project-member-remove:hover {
|
||||
color: white;
|
||||
background: #c9503f;
|
||||
}
|
||||
|
||||
.project-member-remove:disabled {
|
||||
opacity: 0.5;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.project-empty-line {
|
||||
color: #9aa39f;
|
||||
font-size: 11px;
|
||||
|
||||
Reference in New Issue
Block a user