team-assign.component.scss 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533
  1. /* 设计师分配组件样式(复用 StageOrder 风格) */
  2. .card{
  3. background: var(--white);
  4. border-radius: 12px;
  5. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  6. padding: 15px;
  7. }
  8. .designer-card {
  9. .section-title {
  10. font-size: 15px;
  11. font-weight: 600;
  12. color: var(--dark-color);
  13. margin: 0 0 12px;
  14. &:not(:first-child) {
  15. margin-top: 24px;
  16. }
  17. }
  18. .loading-spinner {
  19. display: flex;
  20. align-items: center;
  21. justify-content: center;
  22. gap: 12px;
  23. padding: 40px 20px;
  24. .spinner-sm {
  25. width: 24px;
  26. height: 24px;
  27. border: 3px solid var(--light-shade);
  28. border-top-color: var(--primary-color);
  29. border-radius: 50%;
  30. animation: spin 0.8s linear infinite;
  31. }
  32. p {
  33. margin: 0;
  34. font-size: 14px;
  35. color: var(--medium-color);
  36. }
  37. }
  38. /* 已分配组员列表(基础样式) */
  39. .assigned-teams-section {
  40. margin-bottom: 24px;
  41. .team-list {
  42. display: grid;
  43. grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  44. gap: 12px;
  45. }
  46. .team-item {
  47. display: flex;
  48. align-items: center;
  49. justify-content: space-between;
  50. padding: 12px;
  51. border: 2px solid var(--light-shade);
  52. border-radius: 8px;
  53. background: var(--white);
  54. transition: all 0.2s;
  55. &.clickable {
  56. cursor: pointer;
  57. &:hover {
  58. border-color: rgba(var(--primary-rgb), 0.3);
  59. background: rgba(var(--primary-rgb), 0.03);
  60. }
  61. }
  62. .team-member {
  63. display: flex;
  64. align-items: center;
  65. gap: 12px;
  66. .member-avatar {
  67. width: 32px;
  68. height: 32px;
  69. border-radius: 50%;
  70. overflow: hidden;
  71. background: var(--light-shade);
  72. display: flex;
  73. align-items: center;
  74. justify-content: center;
  75. img {
  76. width: 100%;
  77. height: 100%;
  78. object-fit: cover;
  79. }
  80. .avatar-icon {
  81. width: 32px;
  82. height: 32px;
  83. color: var(--primary-color);
  84. }
  85. }
  86. .member-info {
  87. flex: 1;
  88. min-width: 0;
  89. h5 {
  90. margin: 0 0 6px;
  91. font-size: 16px;
  92. font-weight: 700;
  93. color: var(--dark-color);
  94. white-space: nowrap;
  95. overflow: hidden;
  96. text-overflow: ellipsis;
  97. }
  98. .member-spaces {
  99. margin: 0;
  100. font-size: 13px;
  101. color: var(--primary-color);
  102. font-weight: 500;
  103. display: flex;
  104. align-items: center;
  105. gap: 4px;
  106. &::before {
  107. content: '📦';
  108. font-size: 14px;
  109. }
  110. }
  111. }
  112. }
  113. .edit-icon {
  114. width: 20px;
  115. height: 20px;
  116. color: var(--medium-color);
  117. }
  118. }
  119. }
  120. /* 项目组选择 */
  121. .department-section {
  122. margin-bottom: 24px;
  123. .department-grid {
  124. display: grid;
  125. grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  126. gap: 12px;
  127. }
  128. .department-item {
  129. position: relative;
  130. padding: 14px;
  131. border: 2px solid var(--light-shade);
  132. border-radius: 8px;
  133. background: var(--white);
  134. cursor: pointer;
  135. transition: all 0.3s;
  136. &:hover {
  137. border-color: rgba(var(--primary-rgb), 0.3);
  138. background: rgba(var(--primary-rgb), 0.03);
  139. }
  140. &.selected {
  141. border-color: var(--primary-color);
  142. background: rgba(var(--primary-rgb), 0.08);
  143. box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.2);
  144. .selected-icon {
  145. color: var(--primary-color);
  146. }
  147. }
  148. h5 {
  149. margin: 0 0 6px;
  150. font-size: 16px;
  151. font-weight: 700;
  152. color: var(--dark-color);
  153. }
  154. p {
  155. margin: 0;
  156. font-size: 12px;
  157. color: var(--medium-color);
  158. }
  159. .selected-icon {
  160. position: absolute;
  161. top: 8px;
  162. right: 8px;
  163. width: 20px;
  164. height: 20px;
  165. color: var(--primary-color);
  166. }
  167. }
  168. }
  169. /* 组员选择 */
  170. .designer-section {
  171. .designer-grid {
  172. display: grid;
  173. grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  174. gap: 12px;
  175. }
  176. .designer-item {
  177. position: relative;
  178. display: flex;
  179. align-items: center;
  180. gap: 12px;
  181. padding: 12px;
  182. border: 2px solid var(--light-shade);
  183. border-radius: 8px;
  184. background: var(--white);
  185. cursor: pointer;
  186. transition: all 0.3s;
  187. &:hover {
  188. background-color: var(--light-shade);
  189. transform: translateX(2px);
  190. }
  191. &.selected {
  192. border-color: var(--primary-color);
  193. background: rgba(var(--primary-rgb), 0.08);
  194. box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.2);
  195. .designer-info h4 {
  196. color: var(--primary-color);
  197. }
  198. }
  199. .designer-avatar {
  200. width: 48px;
  201. height: 48px;
  202. border-radius: 50%;
  203. overflow: hidden;
  204. background: var(--light-shade);
  205. display: flex;
  206. align-items: center;
  207. justify-content: center;
  208. img {
  209. width: 100%;
  210. height: 100%;
  211. object-fit: cover;
  212. }
  213. .avatar-icon {
  214. width: 48px;
  215. height: 48px;
  216. color: var(--medium-color);
  217. }
  218. }
  219. .designer-info {
  220. flex: 1;
  221. min-width: 0;
  222. h4 {
  223. margin: 0 0 4px;
  224. font-size: 15px;
  225. font-weight: 600;
  226. color: var(--dark-color);
  227. white-space: nowrap;
  228. overflow: hidden;
  229. text-overflow: ellipsis;
  230. transition: color 0.3s;
  231. }
  232. p {
  233. margin: 0;
  234. font-size: 12px;
  235. color: var(--medium-color);
  236. }
  237. }
  238. .selected-icon {
  239. position: absolute;
  240. top: 8px;
  241. right: 8px;
  242. width: 20px;
  243. height: 20px;
  244. color: var(--primary-color);
  245. }
  246. }
  247. }
  248. }
  249. /* 模态框样式 */
  250. .modal-overlay {
  251. position: fixed;
  252. top: 0;
  253. left: 0;
  254. right: 0;
  255. bottom: 0;
  256. background: rgba(0, 0, 0, 0.5);
  257. display: flex;
  258. align-items: center;
  259. justify-content: center;
  260. z-index: 10000;
  261. animation: fadeIn 0.2s ease-out;
  262. }
  263. @keyframes fadeIn {
  264. from { opacity: 0; }
  265. to { opacity: 1; }
  266. }
  267. .modal-dialog {
  268. background: var(--white);
  269. border-radius: 12px;
  270. box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  271. width: 90%;
  272. max-width: 500px;
  273. max-height: 90vh;
  274. overflow: hidden;
  275. display: flex;
  276. flex-direction: column;
  277. animation: slideUp 0.3s ease-out;
  278. }
  279. @keyframes slideUp {
  280. from { opacity: 0; transform: translateY(20px); }
  281. to { opacity: 1; transform: translateY(0); }
  282. }
  283. .modal-header {
  284. display: flex;
  285. align-items: center;
  286. justify-content: space-between;
  287. padding: 20px 24px;
  288. .modal-title {
  289. margin: 0;
  290. font-size: 20px;
  291. font-weight: 600;
  292. color: var(--dark-color);
  293. }
  294. .modal-close {
  295. background: none;
  296. border: none;
  297. cursor: pointer;
  298. padding: 4px;
  299. width: 32px;
  300. height: 32px;
  301. display: flex;
  302. align-items: center;
  303. justify-content: center;
  304. border-radius: 4px;
  305. transition: all 0.2s;
  306. .icon {
  307. width: 20px;
  308. height: 20px;
  309. color: var(--medium-color);
  310. }
  311. &:hover {
  312. background: var(--light-color);
  313. .icon { color: var(--dark-color); }
  314. }
  315. }
  316. }
  317. .modal-content {
  318. flex: 1;
  319. overflow-y: auto;
  320. padding: 24px;
  321. .designer-preview {
  322. display: flex;
  323. flex-direction: column;
  324. align-items: center;
  325. gap: 12px;
  326. padding: 20px;
  327. background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05) 0%, rgba(var(--primary-rgb), 0.02) 100%);
  328. border-radius: 10px;
  329. margin-bottom: 24px;
  330. .designer-avatar {
  331. width: 64px;
  332. height: 64px;
  333. border-radius: 50%;
  334. overflow: hidden;
  335. background: var(--white);
  336. border: 3px solid var(--primary-color);
  337. display: flex;
  338. align-items: center;
  339. justify-content: center;
  340. box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.2);
  341. img { width: 100%; height: 100%; object-fit: cover; }
  342. .avatar-icon { width: 36px; height: 36px; }
  343. }
  344. .designer-name {
  345. font-size: 18px;
  346. font-weight: 600;
  347. color: var(--dark-color);
  348. }
  349. }
  350. .space-selection-section {
  351. .form-label {
  352. display: block;
  353. font-weight: 500;
  354. color: var(--dark-color);
  355. margin-bottom: 8px;
  356. font-size: 14px;
  357. .required { color: var(--danger-color); margin-left: 4px; }
  358. }
  359. .form-help {
  360. margin: 0 0 12px;
  361. font-size: 13px;
  362. color: var(--medium-color);
  363. }
  364. .space-checkbox-list {
  365. display: flex;
  366. flex-direction: column;
  367. gap: 10px;
  368. .space-checkbox-item {
  369. display: flex;
  370. align-items: center;
  371. gap: 12px;
  372. padding: 12px 16px;
  373. background: var(--light-color);
  374. border: 2px solid transparent;
  375. border-radius: 8px;
  376. cursor: pointer;
  377. transition: all 0.3s;
  378. user-select: none;
  379. &:hover {
  380. background: var(--light-shade);
  381. border-color: rgba(var(--primary-rgb), 0.3);
  382. }
  383. input[type="checkbox"] {
  384. position: absolute;
  385. opacity: 0;
  386. cursor: pointer;
  387. width: 0;
  388. height: 0;
  389. &:checked + .checkbox-custom {
  390. background-color: var(--primary-color);
  391. border-color: var(--primary-color);
  392. &::after { display: block; }
  393. }
  394. &:checked ~ .space-name { font-weight: 600; }
  395. }
  396. .checkbox-custom {
  397. position: relative;
  398. height: 20px;
  399. width: 20px;
  400. background-color: var(--white);
  401. border: 2px solid var(--medium-color);
  402. border-radius: 4px;
  403. transition: all 0.3s;
  404. display: flex;
  405. align-items: center;
  406. justify-content: center;
  407. flex-shrink: 0;
  408. &::after {
  409. content: '';
  410. display: none;
  411. width: 5px;
  412. height: 10px;
  413. border: solid white;
  414. border-width: 0 2px 2px 0;
  415. transform: rotate(45deg);
  416. }
  417. }
  418. .space-name {
  419. flex: 1;
  420. font-size: 14px;
  421. color: var(--dark-color);
  422. transition: all 0.3s;
  423. }
  424. }
  425. }
  426. }
  427. }
  428. .modal-footer {
  429. display: flex;
  430. align-items: center;
  431. justify-content: flex-end;
  432. gap: 12px;
  433. padding: 16px 24px;
  434. border-top: 1px solid var(--light-shade);
  435. .btn {
  436. padding: 10px 20px;
  437. border-radius: 8px;
  438. font-size: 14px;
  439. font-weight: 600;
  440. cursor: pointer;
  441. transition: all 0.3s;
  442. border: none;
  443. outline: none;
  444. display: flex;
  445. align-items: center;
  446. justify-content: center;
  447. gap: 8px;
  448. &.btn-outline {
  449. background: white;
  450. color: var(--dark-color);
  451. border: 2px solid var(--light-shade);
  452. }
  453. &.btn-primary {
  454. background: var(--primary-color);
  455. color: white;
  456. }
  457. &:disabled { opacity: 0.5; cursor: not-allowed; }
  458. }
  459. }