From ebef7339969416fe78b9b875a8a672bc367be8dc Mon Sep 17 00:00:00 2001 From: lihui_ocr Date: Mon, 15 Apr 2024 09:45:06 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E6=96=B0=E5=A2=9E=E7=BB=88=E5=AE=A1?= =?UTF-8?q?=E5=8D=A1=E7=89=87=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/final/aside/Aside.vue | 2 +- src/views/final/content/ListContent.vue | 467 +++++++++++++++++++++--- src/views/final/index.vue | 8 +- 3 files changed, 424 insertions(+), 53 deletions(-) diff --git a/src/views/final/aside/Aside.vue b/src/views/final/aside/Aside.vue index fa794a3..b4567b7 100644 --- a/src/views/final/aside/Aside.vue +++ b/src/views/final/aside/Aside.vue @@ -401,7 +401,7 @@ function updateComponent(key, e) { border: 1px solid #efeff5; border-radius: 3px; box-sizing: border-box; - + height: 100% !important; &-header { padding: 10px; width: 100%; diff --git a/src/views/final/content/ListContent.vue b/src/views/final/content/ListContent.vue index ee0cc20..a7fa77c 100644 --- a/src/views/final/content/ListContent.vue +++ b/src/views/final/content/ListContent.vue @@ -1,8 +1,34 @@ @@ -91,11 +426,30 @@ onMounted(() => { // align-items: center; // justify-content: flex-start; // flex: 1; + // box-sizing: border-box; + // margin-left: 16px; + //width: 100%; + //background: #fff; + // padding: 0px 24px 24px 24px; + display: flex; + flex: 1; + overflow: hidden; + flex-direction: column; box-sizing: border-box; margin-left: 16px; width: 100%; background: #fff; padding: 0px 24px 24px 24px; + .icon-wrap { + display: flex; + align-items: center; + justify-content: center; + width: 30px; + height: 30px; + background: rgba(80, 122, 253, 0.1); + border-radius: 8px; + cursor: pointer; + } &-header { display: flex; justify-content: space-between; @@ -103,7 +457,6 @@ onMounted(() => { box-sizing: border-box; height: 64px; width: 100%; - div { display: flex; align-items: center; @@ -176,39 +529,47 @@ onMounted(() => { flex-flow: row wrap; align-items: center; // justify-content: flex-start; - justify-content: space-between; - flex: 1; + // justify-content: space-between; + // flex: 1; .item { - min-width: 14.125rem; - border: 1px solid #ededed; - border-radius: 3px; - padding: 8px 10px; - margin-right: 20px; - margin-bottom: 16px; + flex: 1; + min-width: 23%; + margin-left: 2.3%; + height: 12.4vh; + background: #ffffff; + border: 0.075rem solid #e8e8e8; + border-radius: 0.18rem; + padding: 0.5rem 0.625rem; + // margin-right: 20px; + margin: 0 1% 0 1%; + margin-bottom: 1rem; .top { display: flex; flex-flow: row nowrap; align-items: center; justify-content: flex-start; + height: 75%; + border-bottom: 0.05rem solid #e8e8e8; .img { - width: 84px; - height: 55px; + width: 35%; + //width: 5.25rem; + height: 3.43rem; // height: auto; object-fit: cover; - border-radius: 3px; + border-radius: 0.18rem; .check_box { - margin-left: 8px; + margin-left: 0.5rem; } } .content { - margin-left: 8px; + margin-left: 0.8rem; .title, .date { - font-size: 11px; + font-size: 0.68rem; font-weight: bolder; text-align: left; color: #323233; - line-height: 16px; + line-height: 1rem; } } .tag_box { @@ -217,21 +578,21 @@ onMounted(() => { align-items: center; justify-content: flex-start; .tag_item { - min-width: 31px; - min-height: 14px; - font-size: 10px; - padding: 1px 3px; + min-width: 1.93rem; + min-height: 0.875rem; + font-size: 0.625rem; + padding: 0.0625rem 0.18rem; font-weight: bolder; text-align: left; // color: #507afd; - line-height: 14px; - letter-spacing: 0.1px; - margin-right: 8px; + line-height: 0.875rem; + letter-spacing: 0.006rem; + margin-right: 0.5rem; // opacity: 0.1; background: #c0f7e4; - border-radius: 2px; + border-radius: 0.125rem; text-align: center; - white-space: nowrap + white-space: nowrap; } } } @@ -240,23 +601,31 @@ onMounted(() => { flex-flow: row nowrap; align-items: center; justify-content: flex-end; + margin-top: 0.375rem; div { cursor: pointer; } + .reset_action { + font-size: 0.75rem; + font-weight: bolder; + text-align: left; + color: #666666; + } .resovle_action { - font-size: 12px; + font-size: 0.75rem; font-weight: bolder; text-align: left; color: #507afd; - line-height: 17px; + line-height: 1rem; + margin-left: 0.9rem; } .reject_action { - font-size: 12px; + font-size: 0.75rem; font-weight: bolder; text-align: left; - color: #FF4E4F; - line-height: 17px; - margin-left: 15px; + color: #ff4e4f; + line-height: 1rem; + margin-left: 0.9rem; } } } diff --git a/src/views/final/index.vue b/src/views/final/index.vue index 20d020f..59432f2 100644 --- a/src/views/final/index.vue +++ b/src/views/final/index.vue @@ -9,7 +9,7 @@ import Robot from '@/components/Robot/index.vue' defineOptions({ name: 'FinalMain', }) -const showList = ref(false) +const showList = ref(true) const contentRef: any = ref(null) function inputChange(keyword) { contentRef.value.filterTableData(keyword) @@ -21,11 +21,13 @@ function inputChange(keyword) {