首页 <script lang="ts" setup name="Dashboard"> // </script> <template> <!-- 布局 --> <app-container> 首页 </app-container> </template> <style lang="scss" scoped> .top-container { width: 100%; display: flex; justify-content: space-around; .top-left-container { width: 100%; display: flex; justify-content: space-around; .base { width: 49.5%; height: 130px; .base-container { display: flex; justify-content: space-around; margin-top: 15px; .base-item { width: 25%; display: flex; .img { width: 30%; img { width: 80%; } } .content { width: 70%; .value { .value { font-weight: 700; font-size: 20px; } } } } } } } .bench { width: 22%; height: 250px; .bench-container { display: flex; justify-content: space-around; flex-wrap: wrap; align-items: center; .bench-item { width: 40%; display: flex; height: 40px; margin-top: 15px; &:hover { // border: 1px solid #ccc; background-color: rgba($color: #000, $alpha: 5%); cursor: pointer; box-shadow: 0 0 12px rgb(0 0 0 / 12%); border-radius: 4px; } .img { width: 50%; // display: flex; // justify-content: center; // flex-direction: column; img { width: 35px; height: 35px; } } .value { display: flex; justify-content: center; flex-direction: column; text-align: center; width: 60%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } } } } .message { width: 40%; height: 250px; .message-container { .message-item { height: 33px; line-height: 33px; display: flex; justify-content: space-between; padding: 0 10px; width: 100%; .left { width: 75%; display: flex; align-items: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } .content { display: inline-block; padding-left: 10px; width: 65%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } .time { font-size: 16px; color: #7c7777; white-space: nowrap; } } } } } .middle-container { width: 100; display: flex; justify-content: space-around; .type-count, .dept-count { width: 49.4%; height: 255px; } .bench { width: 22%; height: 250px; .bench-container { display: flex; justify-content: space-around; flex-wrap: wrap; align-items: center; .bench-item { width: 40%; display: flex; height: 40px; margin-top: 15px; &:hover { // border: 1px solid #ccc; background-color: rgba($color: #000, $alpha: 5%); cursor: pointer; // box-shadow: 0 0 12px rgb(0 0 0 / 12%); border-radius: 4px; } .img { display: flex; justify-content: center; flex-direction: column; } .value { display: flex; justify-content: center; flex-direction: column; text-align: center; width: 60%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } } } } .message { width: 77%; height: 250px; .search { padding: 0 15px; display: flex; justify-content: space-between; color: #0d76d4; font-size: 14px; &:hover { text-decoration: underline; cursor: pointer; } } .message-container { .message-item { height: 33px; line-height: 33px; display: flex; justify-content: space-between; padding: 0 10px; width: 100%; &:hover { .content, .left { color: #0d76d4 !important; text-decoration: underline !important; cursor: pointer; } } .left { width: 75%; display: flex; align-items: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } .content { display: inline-block; padding-left: 10px; width: 65%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } .time { font-size: 16px; color: #7c7777; white-space: nowrap; } } } } } .bottom-container { width: 100; display: flex; justify-content: space-around; .week-alarm, .dept-alarm { width: 49.4%; height: 25px; } .error { width: 99.5%; } } .top { margin-top: 10px; } </style>