dispatch_center.css 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759
  1. *{
  2. margin:0;
  3. padding:0;
  4. box-sizing:border-box;
  5. }
  6. html,
  7. body{
  8. width:100%;
  9. height:100%;
  10. font-family:"Microsoft YaHei";
  11. }
  12. body{
  13. background:#fff;
  14. }
  15. /* 页面背景 */
  16. .page-box{
  17. width:100%;
  18. min-height:100vh;
  19. height: auto;
  20. padding:20px 60px;
  21. background:
  22. linear-gradient(
  23. 180deg,
  24. #fafcff 0%,
  25. #edf5ff 45%,
  26. #dbeafc 100%
  27. );
  28. }
  29. /* 顶部导航 */
  30. .top-nav{
  31. height:48px;
  32. display:flex;
  33. align-items:center;
  34. padding-left:15px;
  35. border-bottom:1px solid #d9e7ff;
  36. }
  37. .top-item{
  38. position:relative;
  39. margin-right:60px;
  40. font-size:15px;
  41. font-weight:600;
  42. color:#333;
  43. cursor:pointer;
  44. transition:.25s;
  45. }
  46. .top-item.active{
  47. color:#4E6EFF;
  48. }
  49. .top-item.active:after{
  50. content:"";
  51. position:absolute;
  52. left:50%;
  53. bottom:-15px;
  54. transform:translateX(-50%);
  55. width:80px;
  56. height:2px;
  57. background:#4E6EFF;
  58. }
  59. /* 主区域 */
  60. .main{
  61. display:flex;
  62. margin-top:16px;
  63. height:calc(100vh - 90px);
  64. }
  65. /* 左侧菜单 */
  66. .sidebar{
  67. width:130px;
  68. background:#fff;
  69. border-radius:14px;
  70. box-shadow:
  71. 0 0 15px rgba(112,166,255,.08);
  72. padding-top:15px;
  73. }
  74. .menu-item{
  75. height:42px;
  76. display:flex;
  77. align-items:center;
  78. justify-content:center;
  79. font-size:14px;
  80. font-weight:700;
  81. color:#333;
  82. cursor:pointer;
  83. transition:.25s;
  84. }
  85. .menu-item:hover{
  86. color:#4E6EFF;
  87. }
  88. .menu-item.active{
  89. color:#4E6EFF;
  90. }
  91. /* 内容区 */
  92. .content{
  93. flex:1;
  94. margin-left:12px;
  95. background:#fff;
  96. border-radius:14px;
  97. box-shadow:
  98. 0 0 15px rgba(112,166,255,.08);
  99. overflow:hidden;
  100. }
  101. /* iframe */
  102. #contentFrame{
  103. width:100%;
  104. height:100%;
  105. border:none;
  106. }
  107. /* AI调度中心 */
  108. #aiContainer{
  109. position: relative;
  110. margin-top:16px;
  111. border-radius:14px;
  112. box-shadow:
  113. 0 0 15px rgba(112,166,255,.08);
  114. flex:1;
  115. height: auto;
  116. padding:10px;
  117. width:100%;
  118. }
  119. /* Loading遮罩 */
  120. #pageLoading{
  121. position:absolute;
  122. left:0;
  123. top:0;
  124. right:0;
  125. bottom:0;
  126. z-index:99;
  127. display:none;
  128. background:
  129. rgba(255,255,255,.92);
  130. backdrop-filter: blur(2px);
  131. }
  132. /* content相对定位 */
  133. .content{
  134. position:relative;
  135. }
  136. .loading-box{
  137. position:absolute;
  138. top:50%;
  139. left:50%;
  140. transform:
  141. translate(-50%,-50%);
  142. text-align:center;
  143. }
  144. .loading-spinner{
  145. width:42px;
  146. height:42px;
  147. margin:0 auto;
  148. border-radius:50%;
  149. border:3px solid #d8e7ff;
  150. border-top-color:#4E6EFF;
  151. animation:
  152. loadingRotate 0.8s linear infinite;
  153. }
  154. .loading-text{
  155. margin-top:12px;
  156. color:#666;
  157. font-size:14px;
  158. }
  159. @keyframes loadingRotate{
  160. from{
  161. transform:rotate(0deg);
  162. }
  163. to{
  164. transform:rotate(360deg);
  165. }
  166. }
  167. .main-card{
  168. border-radius:14px !important;
  169. border:none !important;
  170. overflow:hidden;
  171. box-shadow:0 2px 12px rgba(0,0,0,.04);
  172. }
  173. .main-card .el-card__body{
  174. padding:12px;
  175. }
  176. .top-area{
  177. margin-bottom:10px;
  178. }
  179. .stat-wrap{
  180. display:flex;
  181. flex-direction:column;
  182. gap:8px;
  183. height:100%;
  184. }
  185. .big-card{
  186. height:70px;
  187. border-radius:14px !important;
  188. position:relative;
  189. overflow:hidden;
  190. background-repeat: no-repeat;
  191. background-size: cover;
  192. background-position: center;
  193. display:flex;
  194. align-items:center;
  195. justify-content:space-between;
  196. padding:0 18px;
  197. cursor: pointer;
  198. }
  199. .big-card.orange{
  200. background:linear-gradient(135deg,#fff,#fff0eb);
  201. }
  202. .big-card::after{
  203. content:"";
  204. position:absolute;
  205. right:-25px;
  206. top:-25px;
  207. width:90px;
  208. height:90px;
  209. border-radius:50%;
  210. background:rgba(137,67,221,.06);
  211. }
  212. .big-left {
  213. position: relative;
  214. z-index: 2;
  215. height: 100%;
  216. margin-left: auto;
  217. margin-right: 1.5vw;
  218. white-space: nowrap;
  219. }
  220. .big-title {
  221. font-size: 16px;
  222. font-weight: bold;
  223. color: #333333;
  224. white-space: nowrap;
  225. position: absolute;
  226. right: 100px; /* 根据value宽度调整 */
  227. top: 50%;
  228. transform: translateY(-50%);
  229. }
  230. .big-value {
  231. font-size: 24px;
  232. font-weight: 600;
  233. color: #333333;
  234. z-index: 2;
  235. white-space: nowrap;
  236. position: absolute;
  237. right: 0;
  238. top: 50%;
  239. transform: translateY(-50%);
  240. min-width: 60px;
  241. text-align: right;
  242. margin-right: -1vw;
  243. }
  244. .small-grid{
  245. flex:1;
  246. }
  247. .stat-card {
  248. flex:1 1 100px;
  249. padding:12px;
  250. border-radius: 14px;
  251. color:#333333FF;
  252. background-repeat: no-repeat;
  253. background-size: cover;
  254. background-position: center;
  255. width: 100%;
  256. height:100px;
  257. margin-top: 7px;
  258. }
  259. .stat-card h3 { margin-top:5px;font-size:16px;color: #333333FF}
  260. .stat-card p { margin:5px 0 0;font-size:22px; font-weight: bold}
  261. .small{
  262. height:142px;
  263. }
  264. .icon{
  265. margin-top: 7px;
  266. }
  267. .arrow{
  268. margin-left: 7px;
  269. }
  270. .center-banner {
  271. width: 100%;
  272. height: 100%;
  273. background: #fff;
  274. border-radius: 8px;
  275. display: flex;
  276. justify-content: center;
  277. align-items: center;
  278. margin-top: -2vh;
  279. overflow: hidden;
  280. position: relative;
  281. }
  282. .center-banner video {
  283. width: 100%;
  284. height: 100%;
  285. object-fit: cover;
  286. display: block;
  287. background: #fff;
  288. backface-visibility: hidden;
  289. -webkit-backface-visibility: hidden;
  290. transform: translateZ(0);
  291. position: relative;
  292. left: 0.5px; /* 微调偏移 */
  293. }
  294. .loading-ico{
  295. margin-top: 4px;
  296. position: absolute;
  297. margin-left: -25px;
  298. animation: rotate 3s linear infinite;
  299. }
  300. .table-card{
  301. border:none !important;
  302. border-radius:14px;
  303. overflow:hidden;
  304. margin-top: 20px;
  305. box-shadow:0 2px 12px rgba(0,0,0,.04);
  306. padding:12px;
  307. }
  308. .table-card .el-card__body{
  309. padding:0;
  310. }
  311. .table-header{
  312. height:46px;
  313. display:flex;
  314. align-items:center;
  315. justify-content:center;
  316. font-size:16px;
  317. font-weight:600;
  318. color:#444;
  319. margin-top: -3vh;
  320. margin-left: 27vw;
  321. position: absolute;
  322. }
  323. .tab-item{
  324. width:12vw;
  325. max-width:260px;
  326. min-width:200px;
  327. height:3.4vw;
  328. max-height:72px;
  329. min-height:58px;
  330. display:flex;
  331. align-items:center;
  332. justify-content:center;
  333. margin-right:-1vw;
  334. position:relative;
  335. z-index:1;
  336. color:#333;
  337. cursor:pointer;
  338. font-weight:700;
  339. background:url("/static/ai/img/hill.png") no-repeat center;
  340. background-size:100% auto;
  341. transition:.2s;
  342. }
  343. .tab-item.active{
  344. color:#2d7df7;
  345. background-image:url("/static/ai/img/hill-active.png");
  346. z-index:10;
  347. }
  348. .tab-item:last-child{
  349. margin-right:0;
  350. }
  351. .el-table th, .el-table td { text-align:center;color: #333333FF; }
  352. .el-table__row:hover td{
  353. background:#f8fbff !important;
  354. }
  355. .status-dispatch { color:#7000FBFF; font-weight:600; } /* 紫色 */
  356. .status-pending { color:#fa8c16; font-weight:600; } /* 橙色 */
  357. .status-inprogress { color:#7000FBFF; font-weight:600; } /* 蓝色 */
  358. .status-fail { color: #da0727; font-weight:600; } /* 蓝色 */
  359. .page{
  360. margin: 15px 0;
  361. text-align: center;
  362. }
  363. @media(max-width:1200px){
  364. .big-value{
  365. font-size:28px;
  366. }
  367. .stat-card p{
  368. font-size:28px;
  369. }
  370. .center-banner{
  371. margin-top:10px;
  372. }
  373. }
  374. .dashboard-card{
  375. border:none !important;
  376. box-shadow:none !important;
  377. background:transparent !important;
  378. margin-top: 20px;
  379. }
  380. .dashboard-card>.el-card__body{
  381. padding:0 !important;
  382. }
  383. .panel{
  384. background:#fff;
  385. border-radius:14px;
  386. padding:12px;
  387. box-shadow:0 2px 12px rgba(15,23,42,.05);
  388. }
  389. .mt20{
  390. margin-top:20px;
  391. }
  392. .panel-header{
  393. display: flex;
  394. justify-content: space-between;
  395. }
  396. .panel-title{
  397. font-size:17px;
  398. font-weight:700;
  399. color:#1f2937;
  400. margin-left: 1vw;
  401. }
  402. .staff-card:hover{
  403. transform:translateY(-2px);
  404. box-shadow:
  405. 0 8px 20px rgba(59,130,246,.08);
  406. }
  407. .dashboard-row{
  408. display:flex;
  409. align-items:stretch;
  410. }
  411. .left-col{
  412. display:block;
  413. }
  414. .order-chart{
  415. width:100%;
  416. height:220px;
  417. }
  418. /* 在岗区域 */
  419. .staff-wrap{
  420. height:100%;
  421. display:flex;
  422. align-items:center;
  423. gap:16px;
  424. margin-top: 10px;
  425. }
  426. .staff-chart{
  427. width:38%;
  428. aspect-ratio:1/1;
  429. min-width:100px;
  430. max-width:180px;
  431. flex-shrink:0;
  432. }
  433. /* 卡片 */
  434. .staff-cards{
  435. flex:1;
  436. display:grid;
  437. grid-template-columns:repeat(2,1fr);
  438. gap:12px;
  439. margin-left: -10px;
  440. }
  441. .staff-card{
  442. display:flex;
  443. align-items:center;
  444. justify-content:space-between;
  445. height:70px;
  446. padding:0 4px;
  447. border: 1px solid #E5F1FF;
  448. border-radius:4px;
  449. }
  450. .card-label{
  451. font-size:14px;
  452. color:#606266;
  453. font-weight: bold;
  454. flex:1;
  455. min-width:0;
  456. overflow:hidden;
  457. text-overflow:ellipsis;
  458. white-space:nowrap;
  459. display: flex;
  460. gap: 5px;
  461. }
  462. .staff-icon{
  463. margin-top: 1px;
  464. height: 16px;
  465. width: 16px;
  466. }
  467. .card-num{
  468. display:flex;
  469. align-items:flex-end;
  470. flex-shrink:0;
  471. white-space:nowrap;
  472. font-size:16px;
  473. font-weight:700;
  474. }
  475. .card-num span{
  476. font-size:14px;
  477. color:#909399;
  478. }
  479. /* 图表 */
  480. .order-chart{
  481. flex:1;
  482. max-height:200px;
  483. }
  484. /* 小屏 */
  485. @media (max-width:1200px){
  486. .dashboard-row{
  487. display:block;
  488. }
  489. .staff-wrap{
  490. flex-direction:column;
  491. }
  492. .staff-chart{
  493. width:180px;
  494. max-width:none;
  495. }
  496. .staff-cards{
  497. width:100%;
  498. }
  499. }
  500. .date-tabs{
  501. display:flex;
  502. gap:10px;
  503. }
  504. .date-tab{
  505. width:48px;
  506. height:28px;
  507. border:1.5px solid #dbe4f0;
  508. border-radius:4px;
  509. display:flex;
  510. align-items:center;
  511. justify-content:center;
  512. cursor:pointer;
  513. font-size:14px;
  514. font-weight: 500;
  515. color: #333333;
  516. }
  517. .date-tab.active{
  518. color:#4d7cff;
  519. border-color:#4d7cff;
  520. background:#f5f8ff;
  521. }
  522. .table-panel{
  523. height:100%;
  524. width: 100%;
  525. }
  526. .table-header2{
  527. display:flex;
  528. justify-content:space-between;
  529. align-items:center;
  530. margin-bottom:16px;
  531. }
  532. .role-tabs{
  533. display:flex;
  534. gap:8px;
  535. }
  536. .role-tab{
  537. min-width:48px;
  538. height:28px;
  539. border-radius:4px;
  540. border:1.5px solid #dbe4f0;
  541. display:flex;
  542. align-items:center;
  543. justify-content:center;
  544. cursor:pointer;
  545. font-size:14px;
  546. font-weight: 500;
  547. color: #333333;
  548. }
  549. .role-tab.active{
  550. color:#4d7cff;
  551. border-color:#4d7cff;
  552. background:#f5f8ff;
  553. }
  554. .staff-table::before{
  555. display:none;
  556. }
  557. .staff-table{
  558. border:none;
  559. }
  560. .staff-table th{
  561. background:#fff !important;
  562. color:#4b5563;
  563. font-size:14px;
  564. font-weight:600;
  565. }
  566. .staff-table td{
  567. height:34px;
  568. }
  569. .staff-table th .cell,
  570. .staff-table td .cell{
  571. white-space:nowrap !important;
  572. word-break:keep-all !important;
  573. }
  574. .user-cell{
  575. display:flex;
  576. align-items:center;
  577. }
  578. .avatar{
  579. width:23px;
  580. height:23px;
  581. border-radius:50%;
  582. margin-right:10px;
  583. }
  584. .pagination-wrap{
  585. margin-top: 10px;
  586. text-align: left;
  587. }
  588. @media (max-width:1400px){
  589. .panel-title{
  590. font-size:13px;
  591. }
  592. .staff-chart{
  593. width:200px;
  594. height:200px;
  595. }
  596. .card-num{
  597. font-size:38px;
  598. }
  599. }
  600. @media (max-width:1200px){
  601. .staff-wrap{
  602. flex-direction:column;
  603. }
  604. .staff-cards{
  605. width:100%;
  606. }
  607. .table-header2{
  608. flex-direction:column;
  609. align-items:flex-start;
  610. gap:15px;
  611. }
  612. }
  613. @media (max-width:768px){
  614. .staff-cards{
  615. grid-template-columns:1fr;
  616. }
  617. .staff-chart{
  618. width:180px;
  619. height:180px;
  620. }
  621. .panel-title{
  622. font-size:10px;
  623. }
  624. .card-num{
  625. font-size:32px;
  626. }
  627. }
  628. .chart-card{
  629. margin-top:20px;
  630. border-radius:14px;
  631. border:none !important;
  632. }
  633. .chart-header{
  634. display: flex;
  635. justify-content: space-between;
  636. }
  637. .chart-tabs{
  638. display: flex;
  639. gap:10px;
  640. }
  641. .chart-tab{
  642. width:48px;
  643. height:28px;
  644. border:1.5px solid #dbe4f0;
  645. border-radius:4px;
  646. display:flex;
  647. align-items:center;
  648. justify-content:center;
  649. cursor:pointer;
  650. font-size:14px;
  651. font-weight: 500;
  652. color: #333333;
  653. }
  654. .chart-tab.active{
  655. color:#4d7cff;
  656. border-color:#4d7cff;
  657. background:#f5f8ff;
  658. }
  659. .chart-card .el-card__body{
  660. height:25vh;
  661. padding:10px;
  662. display:flex;
  663. flex-direction:column;
  664. }
  665. #chart{
  666. flex:1;
  667. width:100%;
  668. min-height:160px;
  669. }
  670. .chart-title{
  671. font-size:16px;
  672. font-weight:700;
  673. color:#444;
  674. margin-left: 1vw;
  675. }