From cad7cea19f49811a80de25e8c396de5673c4b605 Mon Sep 17 00:00:00 2001 From: liushilong <2224574157@qq.com> Date: Tue, 2 Apr 2024 17:39:00 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=80=BB=E8=BE=91=E8=A1=A5=E5=85=A8,?= =?UTF-8?q?=E7=99=BB=E5=BD=95=E9=A6=96=E9=A1=B5=E6=A0=B7=E5=BC=8F=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/icons/right_arrow.svg | 18 + src/views/final/aside/Aside.vue | 4 +- src/views/final/content/Content.vue | 6 +- src/views/home/content/Content.vue | 711 ++++++++++++++++------------ src/views/login/index.vue | 8 +- 5 files changed, 430 insertions(+), 317 deletions(-) create mode 100644 src/assets/icons/right_arrow.svg diff --git a/src/assets/icons/right_arrow.svg b/src/assets/icons/right_arrow.svg new file mode 100644 index 0000000..c3da58b --- /dev/null +++ b/src/assets/icons/right_arrow.svg @@ -0,0 +1,18 @@ + + + 右箭头 + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/views/final/aside/Aside.vue b/src/views/final/aside/Aside.vue index d8fa596..9148a2d 100644 --- a/src/views/final/aside/Aside.vue +++ b/src/views/final/aside/Aside.vue @@ -138,6 +138,9 @@ const showSearch = ref(false); function setShowSearch(value: boolean) { showSearch.value = value; + if(!value){ + inputChange('') + } } // 滚动容器,让key对应模块处于可视区域 @@ -161,7 +164,6 @@ watch(asideValue, (newVal) => { }); const inputChange = (keyword) => { - console.log("Search Component", keyword); emit("inputChange", keyword); }; diff --git a/src/views/final/content/Content.vue b/src/views/final/content/Content.vue index 7c20fca..99a15ae 100644 --- a/src/views/final/content/Content.vue +++ b/src/views/final/content/Content.vue @@ -765,7 +765,11 @@ async function refreshHandler(searchId?: any) { } function filterTableData(keyword) { - tableData.value = tableData.value.filter(item => item.id.includes(keyword)) + if(keyword){ + tableData.value = tableData.value.filter(item => item.id.includes(keyword)) + }else{ + query(pagination.page, pagination.pageSize) + } } defineExpose({ filterTableData, diff --git a/src/views/home/content/Content.vue b/src/views/home/content/Content.vue index 9eb7323..6399f37 100644 --- a/src/views/home/content/Content.vue +++ b/src/views/home/content/Content.vue @@ -1,207 +1,240 @@ @@ -573,27 +613,33 @@ const dropdownOptions = ref([ AI一键查重 - - - + + + - - + + - + - - + - - + + {{ `${item.similar}%` }} - + @@ -653,11 +724,19 @@ const dropdownOptions = ref([ - + - + {{ item.upname }}