123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755 |
- .designer-assignment-container {
- padding: 24px;
- background: white;
- border-radius: 8px;
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
- // 移动端优化
- @media (max-width: 768px) {
- padding: 16px;
- border-radius: 0;
- box-shadow: none;
- }
- }
- .section-header {
- display: flex;
- align-items: center;
- justify-content: space-between;
- margin-bottom: 24px;
- padding-bottom: 16px;
- border-bottom: 1px solid #f0f0f0;
- h3 {
- margin: 0;
- font-size: 18px;
- font-weight: 600;
- color: #262626;
- }
- .assignment-summary {
- display: flex;
- gap: 16px;
- font-size: 14px;
- .team-info {
- color: #1890ff;
- font-weight: 500;
- }
- .cross-team-info {
- color: #722ed1;
- font-weight: 500;
- }
- }
- }
- // 精美的设计师分配选择框样式
- .designer-selection-dropdown {
- margin-bottom: 24px;
- .dropdown-header {
- border: 2px solid #d9d9d9;
- border-radius: 8px;
- padding: 16px 20px;
- cursor: pointer;
- transition: all 0.3s ease;
- background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
- display: flex;
- align-items: center;
- justify-content: space-between;
- min-height: 60px;
- position: relative;
- overflow: hidden;
- &::before {
- content: '';
- position: absolute;
- top: 0;
- left: 0;
- right: 0;
- height: 3px;
- background: linear-gradient(90deg, #1890ff 0%, #722ed1 100%);
- opacity: 0;
- transition: opacity 0.3s ease;
- }
- &:hover {
- border-color: #1890ff;
- box-shadow: 0 4px 12px rgba(24, 144, 255, 0.15);
- transform: translateY(-1px);
- &::before {
- opacity: 1;
- }
- }
- &:active {
- transform: translateY(0);
- }
- .dropdown-content {
- flex: 1;
- .selected-team-info {
- .team-name {
- font-size: 16px;
- font-weight: 600;
- color: #262626;
- margin-bottom: 4px;
- }
- .team-summary {
- font-size: 14px;
- color: #8c8c8c;
- line-height: 1.4;
- }
- }
- .placeholder-text {
- display: flex;
- align-items: center;
- gap: 12px;
- color: #8c8c8c;
- font-size: 15px;
- .placeholder-icon {
- font-size: 20px;
- opacity: 0.8;
- }
- }
- }
- .dropdown-arrow {
- color: #8c8c8c;
- transition: all 0.3s ease;
- margin-left: 16px;
- svg {
- transition: transform 0.3s ease;
- }
- }
- &:hover .dropdown-arrow {
- color: #1890ff;
- svg {
- transform: translateY(-1px);
- }
- }
- }
- }
- // 日历弹窗样式
- .calendar-modal-overlay {
- position: fixed;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- background: rgba(0, 0, 0, 0.5);
- display: flex;
- align-items: center;
- justify-content: center;
- z-index: 1100;
- }
- .calendar-modal-container {
- background: white;
- border-radius: 12px;
- width: 80vw;
- max-width: 800px;
- max-height: 80vh;
- display: flex;
- flex-direction: column;
- box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
- }
- .calendar-modal-header {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 20px 24px;
- border-bottom: 1px solid #f0f0f0;
- h3 {
- margin: 0;
- font-size: 18px;
- font-weight: 600;
- color: #262626;
- }
- .close-btn {
- background: none;
- border: none;
- padding: 6px;
- cursor: pointer;
- border-radius: 4px;
- color: #8c8c8c;
- transition: all 0.2s ease;
- &:hover {
- background: #f5f5f5;
- color: #262626;
- }
- }
- }
- .calendar-modal-body {
- flex: 1;
- overflow-y: auto;
- padding: 24px;
- .designer-calendar-placeholder {
- text-align: center;
- padding: 40px 20px;
- p {
- font-size: 16px;
- color: #8c8c8c;
- margin-bottom: 24px;
- }
- .designer-info-summary {
- background: #f9f9f9;
- border-radius: 8px;
- padding: 20px;
- text-align: left;
- max-width: 400px;
- margin: 0 auto;
- h4 {
- margin: 0 0 12px 0;
- font-size: 16px;
- font-weight: 600;
- color: #262626;
- }
- p {
- margin: 8px 0;
- font-size: 14px;
- color: #595959;
- }
- }
- }
- }
- // 自动分配建议样式
- .auto-suggestion {
- background: linear-gradient(135deg, #fff7e6 0%, #fff2e8 100%);
- border: 1px solid #ffd591;
- border-radius: 8px;
- padding: 16px 20px;
- margin-bottom: 24px;
- .suggestion-header {
- display: flex;
- align-items: center;
- gap: 8px;
- margin-bottom: 8px;
- font-weight: 600;
- color: #d46b08;
- .suggestion-icon {
- font-size: 16px;
- }
- }
- p {
- margin: 0;
- font-size: 14px;
- color: #8c4a00;
- line-height: 1.5;
- }
- }
- // 报价项目分配样式
- .quotation-assignment-section {
- margin-bottom: 32px;
- h4 {
- margin: 0 0 16px 0;
- font-size: 16px;
- font-weight: 600;
- color: #262626;
- }
- }
- .assignment-grid {
- display: grid;
- gap: 16px;
- }
- .assignment-card {
- border: 1px solid #f0f0f0;
- border-radius: 8px;
- padding: 20px;
- background: white;
- .assignment-header {
- display: flex;
- align-items: center;
- justify-content: space-between;
- margin-bottom: 16px;
- padding-bottom: 12px;
- border-bottom: 1px solid #f5f5f5;
- h5 {
- margin: 0;
- font-size: 15px;
- font-weight: 600;
- color: #262626;
- }
- .assigned-count {
- font-size: 13px;
- color: #1890ff;
- font-weight: 500;
- }
- }
- }
- .designer-selection {
- .available-designers {
- h6 {
- margin: 0 0 12px 0;
- font-size: 14px;
- font-weight: 600;
- color: #595959;
- }
- }
- }
- .designer-list {
- display: grid;
- gap: 12px;
- }
- .designer-item {
- display: flex;
- align-items: center;
- gap: 12px;
- padding: 12px;
- border: 1px solid #f0f0f0;
- border-radius: 6px;
- cursor: pointer;
- transition: all 0.2s ease;
- &:hover {
- border-color: #d9d9d9;
- background: #fafafa;
- }
- &.assigned {
- border-color: #1890ff;
- background: #f6ffed;
- }
- .designer-avatar {
- position: relative;
- flex-shrink: 0;
- img, .avatar-placeholder {
- width: 40px;
- height: 40px;
- border-radius: 50%;
- }
- .avatar-placeholder {
- background: #f0f0f0;
- display: flex;
- align-items: center;
- justify-content: center;
- font-weight: 600;
- color: #8c8c8c;
- font-size: 16px;
- }
- }
- .designer-info {
- flex: 1;
- min-width: 0;
- .designer-name {
- font-size: 14px;
- font-weight: 600;
- color: #262626;
- margin-bottom: 4px;
- display: flex;
- align-items: center;
- gap: 6px;
- .leader-badge {
- background: #1890ff;
- color: white;
- font-size: 10px;
- padding: 2px 4px;
- border-radius: 3px;
- font-weight: 500;
- }
- }
- .designer-status {
- display: flex;
- align-items: center;
- gap: 8px;
- margin-bottom: 6px;
- .status-dot {
- width: 8px;
- height: 8px;
- border-radius: 50%;
- }
- .status-text {
- font-size: 12px;
- color: #8c8c8c;
- }
- .idle-days {
- font-size: 11px;
- color: #faad14;
- font-weight: 500;
- }
- }
- .workload-bar {
- position: relative;
- height: 4px;
- background: #f0f0f0;
- border-radius: 2px;
- overflow: hidden;
- .workload-fill {
- height: 100%;
- background: linear-gradient(90deg, #52c41a 0%, #faad14 50%, #ff4d4f 100%);
- transition: width 0.3s ease;
- }
- .workload-text {
- position: absolute;
- right: 0;
- top: -18px;
- font-size: 11px;
- color: #8c8c8c;
- }
- }
- }
- .assignment-actions {
- flex-shrink: 0;
- .assign-btn, .remove-btn {
- padding: 4px 8px;
- border: none;
- border-radius: 4px;
- font-size: 12px;
- cursor: pointer;
- transition: all 0.2s ease;
- }
- .assign-btn {
- background: #1890ff;
- color: white;
- &:hover {
- background: #40a9ff;
- }
- }
- .remove-btn {
- background: #ff4d4f;
- color: white;
- &:hover {
- background: #ff7875;
- }
- }
- }
- }
- // 跨组合作样式
- .cross-team-section {
- margin-bottom: 32px;
- padding-top: 24px;
- border-top: 1px solid #f0f0f0;
- .section-title {
- display: flex;
- align-items: center;
- justify-content: space-between;
- margin-bottom: 16px;
- h4 {
- margin: 0;
- font-size: 16px;
- font-weight: 600;
- color: #262626;
- }
- .toggle-btn {
- background: #1890ff;
- color: white;
- border: none;
- padding: 6px 12px;
- border-radius: 4px;
- font-size: 13px;
- cursor: pointer;
- transition: background 0.2s ease;
- &:hover {
- background: #40a9ff;
- }
- }
- }
- }
- .selected-collaborators {
- margin-bottom: 20px;
- h5 {
- margin: 0 0 12px 0;
- font-size: 14px;
- font-weight: 600;
- color: #595959;
- }
- }
- .collaborator-list {
- display: flex;
- flex-wrap: wrap;
- gap: 8px;
- }
- .collaborator-item {
- display: flex;
- align-items: center;
- gap: 8px;
- background: #f0f8ff;
- border: 1px solid #91d5ff;
- border-radius: 16px;
- padding: 6px 12px;
- .designer-info {
- .designer-name {
- font-size: 13px;
- font-weight: 500;
- color: #1890ff;
- }
- .team-name {
- font-size: 11px;
- color: #8c8c8c;
- }
- }
- .remove-collaborator-btn {
- background: none;
- border: none;
- color: #8c8c8c;
- cursor: pointer;
- font-size: 14px;
- padding: 2px;
- border-radius: 50%;
- width: 16px;
- height: 16px;
- display: flex;
- align-items: center;
- justify-content: center;
- &:hover {
- background: #ff4d4f;
- color: white;
- }
- }
- }
- .cross-team-selection {
- h5 {
- margin: 0 0 16px 0;
- font-size: 14px;
- font-weight: 600;
- color: #595959;
- }
- }
- .cross-team-grid {
- display: grid;
- gap: 20px;
- }
- .cross-team-group {
- h6 {
- margin: 0 0 12px 0;
- font-size: 13px;
- font-weight: 600;
- color: #722ed1;
- }
- .designer-item {
- .selection-actions {
- .add-btn, .remove-btn {
- padding: 4px 8px;
- border: none;
- border-radius: 4px;
- font-size: 12px;
- cursor: pointer;
- transition: all 0.2s ease;
- }
- .add-btn {
- background: #722ed1;
- color: white;
- &:hover {
- background: #9254de;
- }
- }
- .remove-btn {
- background: #ff4d4f;
- color: white;
- &:hover {
- background: #ff7875;
- }
- }
- }
- }
- }
- // 备注样式
- .notes-section {
- margin-bottom: 24px;
- label {
- display: block;
- margin-bottom: 8px;
- font-size: 14px;
- font-weight: 600;
- color: #262626;
- }
- .notes-textarea {
- width: 100%;
- padding: 12px;
- border: 1px solid #d9d9d9;
- border-radius: 6px;
- font-size: 14px;
- resize: vertical;
- transition: border-color 0.2s ease;
- &:focus {
- outline: none;
- border-color: #1890ff;
- box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
- }
- &::placeholder {
- color: #bfbfbf;
- }
- }
- }
- // 分配总结样式
- .assignment-summary-section {
- background: #fafafa;
- border-radius: 8px;
- padding: 20px;
- h4 {
- margin: 0 0 16px 0;
- font-size: 16px;
- font-weight: 600;
- color: #262626;
- }
- }
- .summary-content {
- .summary-item {
- margin-bottom: 12px;
- .label {
- font-weight: 600;
- color: #595959;
- margin-right: 8px;
- }
- .value {
- color: #262626;
- }
- }
- .assignment-list {
- margin-top: 8px;
- }
- .assignment-summary-item {
- margin-bottom: 8px;
- padding: 8px 12px;
- background: white;
- border-radius: 4px;
- border-left: 3px solid #1890ff;
- .project-name {
- font-weight: 500;
- color: #262626;
- margin-right: 12px;
- }
- .assigned-designers {
- display: flex;
- flex-wrap: wrap;
- gap: 4px;
- }
- .designer-tag {
- background: #e6f7ff;
- color: #1890ff;
- font-size: 12px;
- padding: 2px 6px;
- border-radius: 3px;
- }
- }
- .collaborator-tags {
- display: flex;
- flex-wrap: wrap;
- gap: 4px;
- margin-top: 8px;
- .collaborator-tag {
- background: #f9f0ff;
- color: #722ed1;
- font-size: 12px;
- padding: 2px 6px;
- border-radius: 3px;
- }
- }
- }
- // 响应式设计
- @media (max-width: 768px) {
- .designer-assignment-container {
- padding: 16px;
- }
- .section-header {
- flex-direction: column;
- align-items: flex-start;
- gap: 12px;
- }
- .designer-selection-dropdown .dropdown-header {
- padding: 12px 16px;
- min-height: 50px;
- }
- .assignment-grid {
- grid-template-columns: 1fr;
- }
- .cross-team-grid {
- grid-template-columns: 1fr;
- }
- }
|