diff --git a/src/views/home/components/center-two.vue b/src/views/home/components/center-two.vue index a845dc2..7758c7d 100644 --- a/src/views/home/components/center-two.vue +++ b/src/views/home/components/center-two.vue @@ -114,33 +114,44 @@
- -
- {{ item?.pointName }} - {{ item?.taskTime }} + {{ item.pointName || '-' }} + {{ item.taskTime || '-' }}
+ +
+ +
{ morePanelVisible.value = true nextTick(() => { const tableContainer = tableContainerRef.value - tableItemWidth.value = (tableContainer.clientWidth - 40) / 4 + + tableItemHeight.value = ((tableContainer.clientHeight - 10) / 2) * 0.68 + tableItemWidth.value = (tableContainer.clientWidth - 30) / 4 console.log(tableContainer.clientWidth, 'tableContainer') getImageInnerData() }) @@ -249,7 +263,7 @@ const onHandleReset = () => { ranger.value = null innerQueryParams.value = { page: 1, - pageSize: 10, + pageSize: 8, startTime: '', endTime: '', pointName: '', @@ -289,7 +303,8 @@ onUnmounted(() => { .marquee-outer { flex: 1; width: 100%; - overflow: hidden; + overflow: auto; + margin-top: 12px; } @@ -393,7 +408,9 @@ onUnmounted(() => { .more-panel-card { width: 80%; - // height: 80vh; + height: 80vh; + display: flex; + flex-direction: column; background: url('@/assets/home-imgs/modal-bg.png') no-repeat center center; background-size: 100% 100%; } @@ -405,16 +422,32 @@ onUnmounted(() => { } .table-container { - // height: 75%; - // min-height: 50vh; + width: 100%; + height: 70%; display: flex; flex-wrap: wrap; color: #fff; + overflow: auto; + // 优化一下滚动条 + &::-webkit-scrollbar { + width: 6px; + } + &::-webkit-scrollbar-thumb { + background-color: #6e90a9; + } + + // 优化滚动条 + &::-webkit-scrollbar { + width: 6px; + } + &::-webkit-scrollbar-thumb { + background-color: #6e90a9; + } .table-item { flex-shrink: 0; - // width: calc((100% - 30px) / 4); - // height: calc((100% - 20px) / 2); + width: calc((100% - 30px) / 4); + height: calc((100% - 20px) / 2); margin-right: 10px; margin-bottom: 10px; border-radius: 5px; @@ -423,24 +456,13 @@ onUnmounted(() => { align-items: center; justify-content: space-between; overflow: hidden; + .item-image { + width: 100%; + height: 60px; + flex-shrink: 0; - // .item-image { - // // width: 100%; - // height: 150px; - // flex-shrink: 0; - - // /* 确保Naive UI的n-image组件完全填充 */ - // :deep(.n-image) { - // // width: 100%; - // display: block; - - // img { - // // width: 100%; - // // height: v-bind(imageHeight); - // object-fit: cover; - // } - // } - // } + /* 确保Naive UI的n-image组件完全填充 */ + } .table-item-title { width: 100%; diff --git a/src/views/home/components/control-deck.vue b/src/views/home/components/control-deck.vue index 45810fa..b4c62d7 100644 --- a/src/views/home/components/control-deck.vue +++ b/src/views/home/components/control-deck.vue @@ -284,9 +284,10 @@
@@ -317,7 +318,45 @@ - 播放类型 + + + + + + + 循环播放 + 次数播放 + + + + + + + + + 确定 + + 取消 + + + +