|
|
@@ -1,24 +1,13 @@
|
|
|
<template>
|
|
|
<div class="main_container">
|
|
|
- <div class="page_item end_item">
|
|
|
- <div class="page_search">
|
|
|
- <div class="search_content">
|
|
|
- <div class="content_left">
|
|
|
- <SearchBlock :searchList="headerSearchList" @searchChange="HandleBlockSearchChange" />
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+ <div class="page_item end_item hide_scrollbar" ref="scrollDom">
|
|
|
+ <div v-if="scrollMsg.isScrollTop" :style="{height:scrollMsg.headerHeight || '272px',flexShrink:'0'}"></div>
|
|
|
+ <div class="scroll_page" ref="searchDom">
|
|
|
+ <DefaultSelectSearch v-if="scrollMsg.isScrollTop" @searchChange="HandleBlockSearchChange"></DefaultSelectSearch>
|
|
|
+ <DefaultBlockSearch v-else @searchChange="HandleBlockSearchChange"></DefaultBlockSearch>
|
|
|
</div>
|
|
|
- <FormSearchGroup :searchList="[
|
|
|
- {
|
|
|
- key:'queryStr',
|
|
|
- type:'input',
|
|
|
- placeholder:'请输入关键字搜索',
|
|
|
- hidden:false,
|
|
|
- defaultValue:'',
|
|
|
- disabled:false
|
|
|
- }
|
|
|
- ]" @searchChange="HandleBlockSearchChange"/>
|
|
|
- <Table :currentPage="currentPage" :pageSize="pageSize"
|
|
|
+
|
|
|
+ <Table :currentPage="currentPage" :pageSize="pageSize"
|
|
|
:totalNum="totalNum" :showPageSize="true"
|
|
|
:tableColumns="tableColumns" :tableData="tableData" @paginationChange="HandlePaginationChange">
|
|
|
<template #num="{currentIndex}">
|
|
|
@@ -59,15 +48,11 @@
|
|
|
<script setup lang="ts">
|
|
|
import { computed, onMounted, ref } from 'vue';
|
|
|
import { useRouter } from 'vue-router';
|
|
|
-import SearchBlock from '@/baseComponents/SearchBlock.vue';
|
|
|
-
|
|
|
-import {headerSearchList} from '@/components/MyCustomerHeaderSearch/DefaultBlockSearch/searchBlock'
|
|
|
-
|
|
|
|
|
|
import Table from '@/baseComponents/Table.vue';
|
|
|
-import FormSearchGroup from '@/baseComponents/FormSearchGroup.vue';
|
|
|
import {tableColumns} from './table'
|
|
|
-
|
|
|
+import DefaultBlockSearch from '@/components/MyCustomerHeaderSearch/DefaultBlockSearch/index.vue'
|
|
|
+import DefaultSelectSearch from '@/components/MyCustomerHeaderSearch/DefaultSelectSearch/index.vue'
|
|
|
import SchoolFormDialog from '@/components/SchoolFormDialog/index.vue'
|
|
|
|
|
|
import {
|
|
|
@@ -90,10 +75,17 @@ import {defaultPageSearchParams as searchParams,
|
|
|
defaultMemberConfigOption,
|
|
|
} from '@/components/MyCustomerHeaderSearch/commonVar'
|
|
|
|
|
|
+import { useHeaderFixed } from '@/baseComponents/useHeaderFixed'
|
|
|
|
|
|
|
|
|
const router = useRouter()
|
|
|
|
|
|
+
|
|
|
+const scrollDom = ref()
|
|
|
+const searchDom = ref()
|
|
|
+const scrollMsg = useHeaderFixed(scrollDom,searchDom,272,'calc(100% - 250px - 20px)','calc(80px)') //搜索栏是否需要在滚动的时候固定到顶部
|
|
|
+
|
|
|
+
|
|
|
/**
|
|
|
* 1.默认列表 筛选项有关数据
|
|
|
*/
|
|
|
@@ -337,7 +329,17 @@ onMounted(async ()=>{
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
.end_item{
|
|
|
- gap:16px;
|
|
|
+ overflow: auto;
|
|
|
+ :deep(.page_table){
|
|
|
+ overflow:initial;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+.scroll_page{
|
|
|
+ background-color: white;
|
|
|
+ // background-color: rgb(229, 207, 207);
|
|
|
+ padding-bottom: 16px;
|
|
|
}
|
|
|
|
|
|
</style>
|