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;