From c39a50066a2161639b11aebdd248b666bb9aded6 Mon Sep 17 00:00:00 2001 From: zhangyh Date: Tue, 16 Sep 2025 15:25:01 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=B0=86=E6=90=9C=E7=B4=A2=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E6=8A=BD=E7=A6=BB=E4=B8=BA=E5=85=AC=E5=85=B1=E7=BB=84?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/component/common/TableSearchBar.vue | 112 ++++++++++++++++++++++++ src/views/HomeView/history111.vue | 91 ++++--------------- 2 files changed, 129 insertions(+), 74 deletions(-) create mode 100644 src/component/common/TableSearchBar.vue diff --git a/src/component/common/TableSearchBar.vue b/src/component/common/TableSearchBar.vue new file mode 100644 index 00000000..00fc3884 --- /dev/null +++ b/src/component/common/TableSearchBar.vue @@ -0,0 +1,112 @@ + + + + + diff --git a/src/views/HomeView/history111.vue b/src/views/HomeView/history111.vue index 2dadba90..6104ef18 100644 --- a/src/views/HomeView/history111.vue +++ b/src/views/HomeView/history111.vue @@ -72,29 +72,11 @@ --> - +
{ const language = store.state.UserHabit?.userDetail?.language @@ -192,7 +176,7 @@ export default defineComponent({ return [ { title: useI18n().t('HistoryPage.CollectionsName'), - align: 'center', + align: 'left', ellipsis: true, width: 150, dataIndex: 'name', @@ -293,13 +277,12 @@ export default defineComponent({ pageSize: 10, total: 0, presetList: [ - { label: 'Header.All', value: 'all' }, - { label: 'newProjectg.series', value: 'series' }, - { label: 'newProjectg.single', value: 'single' }, - { label: 'Header.Product', value: 'product' }, - { label: 'Header.POSE_TRANSFER', value: 'video' } + { label: this.t('Header.All'), value: 'all' }, + { label: this.t('newProjectg.series'), value: 'series' }, + { label: this.t('newProjectg.single'), value: 'single' }, + { label: this.t('Header.Product'), value: 'product' }, + { label: this.t('Header.POSE_TRANSFER'), value: 'video' } ], - currentPreset: 'all', searchParam: { text: '', type: '', @@ -386,16 +369,12 @@ export default defineComponent({ }, //查询列表 - searchHistoryList() { + searchHistoryList(value:any) { + console.log('value',value) this.currentPage = 1 this.getHistoryList() }, - // 点击预设 - handleChangePreset(value) { - this.currentPreset = value - }, - getHistoryList() { this.isShowMark = true let startDate: any = this.rangePickerValue @@ -659,42 +638,6 @@ export default defineComponent({ // } // } // } - .history_table_search { - .search_preset { - column-gap: 2rem; - .preset_item { - // cursor: pointer; - // box-sizing: border-box; - // height: 6rem; - // line-height: 6rem; - // padding: 0 5rem; - border: 0.1rem solid #000; - // border-radius: 5rem; - color: #000; - background-color: #fff; - &.active { - color: #fff; - background-color: #000; - } - } - } - .search_input { - background-color: #fff; - border: 0.1rem solid #000; - border-radius: 3rem; - // column-gap: 3rem; - padding-right: 1rem; - .search_input_inner { - border: none; - height: 100%; - padding-left: 3rem; - border-radius: 3rem; - } - :deep(.ant-input) { - border: none; - } - } - } .history_table_content { margin-top: 2.6rem;