| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759 |
- *{
- margin:0;
- padding:0;
- box-sizing:border-box;
- }
- html,
- body{
- width:100%;
- height:100%;
- font-family:"Microsoft YaHei";
- }
- body{
- background:#fff;
- }
- /* 页面背景 */
- .page-box{
- width:100%;
- min-height:100vh;
- height: auto;
- padding:20px 60px;
- background:
- linear-gradient(
- 180deg,
- #fafcff 0%,
- #edf5ff 45%,
- #dbeafc 100%
- );
- }
- /* 顶部导航 */
- .top-nav{
- height:48px;
- display:flex;
- align-items:center;
- padding-left:15px;
- border-bottom:1px solid #d9e7ff;
- }
- .top-item{
- position:relative;
- margin-right:60px;
- font-size:15px;
- font-weight:600;
- color:#333;
- cursor:pointer;
- transition:.25s;
- }
- .top-item.active{
- color:#4E6EFF;
- }
- .top-item.active:after{
- content:"";
- position:absolute;
- left:50%;
- bottom:-15px;
- transform:translateX(-50%);
- width:80px;
- height:2px;
- background:#4E6EFF;
- }
- /* 主区域 */
- .main{
- display:flex;
- margin-top:16px;
- height:calc(100vh - 90px);
- }
- /* 左侧菜单 */
- .sidebar{
- width:130px;
- background:#fff;
- border-radius:14px;
- box-shadow:
- 0 0 15px rgba(112,166,255,.08);
- padding-top:15px;
- }
- .menu-item{
- height:42px;
- display:flex;
- align-items:center;
- justify-content:center;
- font-size:14px;
- font-weight:700;
- color:#333;
- cursor:pointer;
- transition:.25s;
- }
- .menu-item:hover{
- color:#4E6EFF;
- }
- .menu-item.active{
- color:#4E6EFF;
- }
- /* 内容区 */
- .content{
- flex:1;
- margin-left:12px;
- background:#fff;
- border-radius:14px;
- box-shadow:
- 0 0 15px rgba(112,166,255,.08);
- overflow:hidden;
- }
- /* iframe */
- #contentFrame{
- width:100%;
- height:100%;
- border:none;
- }
- /* AI调度中心 */
- #aiContainer{
- position: relative;
- margin-top:16px;
- border-radius:14px;
- box-shadow:
- 0 0 15px rgba(112,166,255,.08);
- flex:1;
- height: auto;
- padding:10px;
- width:100%;
- }
- /* Loading遮罩 */
- #pageLoading{
- position:absolute;
- left:0;
- top:0;
- right:0;
- bottom:0;
- z-index:99;
- display:none;
- background:
- rgba(255,255,255,.92);
- backdrop-filter: blur(2px);
- }
- /* content相对定位 */
- .content{
- position:relative;
- }
- .loading-box{
- position:absolute;
- top:50%;
- left:50%;
- transform:
- translate(-50%,-50%);
- text-align:center;
- }
- .loading-spinner{
- width:42px;
- height:42px;
- margin:0 auto;
- border-radius:50%;
- border:3px solid #d8e7ff;
- border-top-color:#4E6EFF;
- animation:
- loadingRotate 0.8s linear infinite;
- }
- .loading-text{
- margin-top:12px;
- color:#666;
- font-size:14px;
- }
- @keyframes loadingRotate{
- from{
- transform:rotate(0deg);
- }
- to{
- transform:rotate(360deg);
- }
- }
- .main-card{
- border-radius:14px !important;
- border:none !important;
- overflow:hidden;
- box-shadow:0 2px 12px rgba(0,0,0,.04);
- }
- .main-card .el-card__body{
- padding:12px;
- }
- .top-area{
- margin-bottom:10px;
- }
- .stat-wrap{
- display:flex;
- flex-direction:column;
- gap:8px;
- height:100%;
- }
- .big-card{
- height:70px;
- border-radius:14px !important;
- position:relative;
- overflow:hidden;
- background-repeat: no-repeat;
- background-size: cover;
- background-position: center;
- display:flex;
- align-items:center;
- justify-content:space-between;
- padding:0 18px;
- cursor: pointer;
- }
- .big-card.orange{
- background:linear-gradient(135deg,#fff,#fff0eb);
- }
- .big-card::after{
- content:"";
- position:absolute;
- right:-25px;
- top:-25px;
- width:90px;
- height:90px;
- border-radius:50%;
- background:rgba(137,67,221,.06);
- }
- .big-left {
- position: relative;
- z-index: 2;
- height: 100%;
- margin-left: auto;
- margin-right: 1.5vw;
- white-space: nowrap;
- }
- .big-title {
- font-size: 16px;
- font-weight: bold;
- color: #333333;
- white-space: nowrap;
- position: absolute;
- right: 100px; /* 根据value宽度调整 */
- top: 50%;
- transform: translateY(-50%);
- }
- .big-value {
- font-size: 24px;
- font-weight: 600;
- color: #333333;
- z-index: 2;
- white-space: nowrap;
- position: absolute;
- right: 0;
- top: 50%;
- transform: translateY(-50%);
- min-width: 60px;
- text-align: right;
- margin-right: -1vw;
- }
- .small-grid{
- flex:1;
- }
- .stat-card {
- flex:1 1 100px;
- padding:12px;
- border-radius: 14px;
- color:#333333FF;
- background-repeat: no-repeat;
- background-size: cover;
- background-position: center;
- width: 100%;
- height:100px;
- margin-top: 7px;
- }
- .stat-card h3 { margin-top:5px;font-size:16px;color: #333333FF}
- .stat-card p { margin:5px 0 0;font-size:22px; font-weight: bold}
- .small{
- height:142px;
- }
- .icon{
- margin-top: 7px;
- }
- .arrow{
- margin-left: 7px;
- }
- .center-banner {
- width: 100%;
- height: 100%;
- background: #fff;
- border-radius: 8px;
- display: flex;
- justify-content: center;
- align-items: center;
- margin-top: -2vh;
- overflow: hidden;
- position: relative;
- }
- .center-banner video {
- width: 100%;
- height: 100%;
- object-fit: cover;
- display: block;
- background: #fff;
- backface-visibility: hidden;
- -webkit-backface-visibility: hidden;
- transform: translateZ(0);
- position: relative;
- left: 0.5px; /* 微调偏移 */
- }
- .loading-ico{
- margin-top: 4px;
- position: absolute;
- margin-left: -25px;
- animation: rotate 3s linear infinite;
- }
- .table-card{
- border:none !important;
- border-radius:14px;
- overflow:hidden;
- margin-top: 20px;
- box-shadow:0 2px 12px rgba(0,0,0,.04);
- padding:12px;
- }
- .table-card .el-card__body{
- padding:0;
- }
- .table-header{
- height:46px;
- display:flex;
- align-items:center;
- justify-content:center;
- font-size:16px;
- font-weight:600;
- color:#444;
- margin-top: -3vh;
- margin-left: 27vw;
- position: absolute;
- }
- .tab-item{
- width:12vw;
- max-width:260px;
- min-width:200px;
- height:3.4vw;
- max-height:72px;
- min-height:58px;
- display:flex;
- align-items:center;
- justify-content:center;
- margin-right:-1vw;
- position:relative;
- z-index:1;
- color:#333;
- cursor:pointer;
- font-weight:700;
- background:url("/static/ai/img/hill.png") no-repeat center;
- background-size:100% auto;
- transition:.2s;
- }
- .tab-item.active{
- color:#2d7df7;
- background-image:url("/static/ai/img/hill-active.png");
- z-index:10;
- }
- .tab-item:last-child{
- margin-right:0;
- }
- .el-table th, .el-table td { text-align:center;color: #333333FF; }
- .el-table__row:hover td{
- background:#f8fbff !important;
- }
- .status-dispatch { color:#7000FBFF; font-weight:600; } /* 紫色 */
- .status-pending { color:#fa8c16; font-weight:600; } /* 橙色 */
- .status-inprogress { color:#7000FBFF; font-weight:600; } /* 蓝色 */
- .status-fail { color: #da0727; font-weight:600; } /* 蓝色 */
- .page{
- margin: 15px 0;
- text-align: center;
- }
- @media(max-width:1200px){
- .big-value{
- font-size:28px;
- }
- .stat-card p{
- font-size:28px;
- }
- .center-banner{
- margin-top:10px;
- }
- }
- .dashboard-card{
- border:none !important;
- box-shadow:none !important;
- background:transparent !important;
- margin-top: 20px;
- }
- .dashboard-card>.el-card__body{
- padding:0 !important;
- }
- .panel{
- background:#fff;
- border-radius:14px;
- padding:12px;
- box-shadow:0 2px 12px rgba(15,23,42,.05);
- }
- .mt20{
- margin-top:20px;
- }
- .panel-header{
- display: flex;
- justify-content: space-between;
- }
- .panel-title{
- font-size:17px;
- font-weight:700;
- color:#1f2937;
- margin-left: 1vw;
- }
- .staff-card:hover{
- transform:translateY(-2px);
- box-shadow:
- 0 8px 20px rgba(59,130,246,.08);
- }
- .dashboard-row{
- display:flex;
- align-items:stretch;
- }
- .left-col{
- display:block;
- }
- .order-chart{
- width:100%;
- height:220px;
- }
- /* 在岗区域 */
- .staff-wrap{
- height:100%;
- display:flex;
- align-items:center;
- gap:16px;
- margin-top: 10px;
- }
- .staff-chart{
- width:38%;
- aspect-ratio:1/1;
- min-width:100px;
- max-width:180px;
- flex-shrink:0;
- }
- /* 卡片 */
- .staff-cards{
- flex:1;
- display:grid;
- grid-template-columns:repeat(2,1fr);
- gap:12px;
- margin-left: -10px;
- }
- .staff-card{
- display:flex;
- align-items:center;
- justify-content:space-between;
- height:70px;
- padding:0 4px;
- border: 1px solid #E5F1FF;
- border-radius:4px;
- }
- .card-label{
- font-size:14px;
- color:#606266;
- font-weight: bold;
- flex:1;
- min-width:0;
- overflow:hidden;
- text-overflow:ellipsis;
- white-space:nowrap;
- display: flex;
- gap: 5px;
- }
- .staff-icon{
- margin-top: 1px;
- height: 16px;
- width: 16px;
- }
- .card-num{
- display:flex;
- align-items:flex-end;
- flex-shrink:0;
- white-space:nowrap;
- font-size:16px;
- font-weight:700;
- }
- .card-num span{
- font-size:14px;
- color:#909399;
- }
- /* 图表 */
- .order-chart{
- flex:1;
- max-height:200px;
- }
- /* 小屏 */
- @media (max-width:1200px){
- .dashboard-row{
- display:block;
- }
- .staff-wrap{
- flex-direction:column;
- }
- .staff-chart{
- width:180px;
- max-width:none;
- }
- .staff-cards{
- width:100%;
- }
- }
- .date-tabs{
- display:flex;
- gap:10px;
- }
- .date-tab{
- width:48px;
- height:28px;
- border:1.5px solid #dbe4f0;
- border-radius:4px;
- display:flex;
- align-items:center;
- justify-content:center;
- cursor:pointer;
- font-size:14px;
- font-weight: 500;
- color: #333333;
- }
- .date-tab.active{
- color:#4d7cff;
- border-color:#4d7cff;
- background:#f5f8ff;
- }
- .table-panel{
- height:100%;
- width: 100%;
- }
- .table-header2{
- display:flex;
- justify-content:space-between;
- align-items:center;
- margin-bottom:16px;
- }
- .role-tabs{
- display:flex;
- gap:8px;
- }
- .role-tab{
- min-width:48px;
- height:28px;
- border-radius:4px;
- border:1.5px solid #dbe4f0;
- display:flex;
- align-items:center;
- justify-content:center;
- cursor:pointer;
- font-size:14px;
- font-weight: 500;
- color: #333333;
- }
- .role-tab.active{
- color:#4d7cff;
- border-color:#4d7cff;
- background:#f5f8ff;
- }
- .staff-table::before{
- display:none;
- }
- .staff-table{
- border:none;
- }
- .staff-table th{
- background:#fff !important;
- color:#4b5563;
- font-size:14px;
- font-weight:600;
- }
- .staff-table td{
- height:34px;
- }
- .staff-table th .cell,
- .staff-table td .cell{
- white-space:nowrap !important;
- word-break:keep-all !important;
- }
- .user-cell{
- display:flex;
- align-items:center;
- }
- .avatar{
- width:23px;
- height:23px;
- border-radius:50%;
- margin-right:10px;
- }
- .pagination-wrap{
- margin-top: 10px;
- text-align: left;
- }
- @media (max-width:1400px){
- .panel-title{
- font-size:13px;
- }
- .staff-chart{
- width:200px;
- height:200px;
- }
- .card-num{
- font-size:38px;
- }
- }
- @media (max-width:1200px){
- .staff-wrap{
- flex-direction:column;
- }
- .staff-cards{
- width:100%;
- }
- .table-header2{
- flex-direction:column;
- align-items:flex-start;
- gap:15px;
- }
- }
- @media (max-width:768px){
- .staff-cards{
- grid-template-columns:1fr;
- }
- .staff-chart{
- width:180px;
- height:180px;
- }
- .panel-title{
- font-size:10px;
- }
- .card-num{
- font-size:32px;
- }
- }
- .chart-card{
- margin-top:20px;
- border-radius:14px;
- border:none !important;
- }
- .chart-header{
- display: flex;
- justify-content: space-between;
- }
- .chart-tabs{
- display: flex;
- gap:10px;
- }
- .chart-tab{
- width:48px;
- height:28px;
- border:1.5px solid #dbe4f0;
- border-radius:4px;
- display:flex;
- align-items:center;
- justify-content:center;
- cursor:pointer;
- font-size:14px;
- font-weight: 500;
- color: #333333;
- }
- .chart-tab.active{
- color:#4d7cff;
- border-color:#4d7cff;
- background:#f5f8ff;
- }
- .chart-card .el-card__body{
- height:25vh;
- padding:10px;
- display:flex;
- flex-direction:column;
- }
- #chart{
- flex:1;
- width:100%;
- min-height:160px;
- }
- .chart-title{
- font-size:16px;
- font-weight:700;
- color:#444;
- margin-left: 1vw;
- }
|