|
|
@@ -1,14 +1,22 @@
|
|
|
<template>
|
|
|
<div class="main_container">
|
|
|
- <div class="page_item end_item">
|
|
|
-
|
|
|
- <DefaultBlockSearch @searchChange="HandleSearchChange">
|
|
|
- <div v-if="userInfo.roles.includes('Admin')" class="content_right">
|
|
|
- <el-button class="button_refresh" @click="OpenBatchImportDialog">批量导入</el-button>
|
|
|
- <el-button class="button_background" @click="OpenSchoolFormDialog()">新增学校</el-button>
|
|
|
- </div>
|
|
|
- </DefaultBlockSearch>
|
|
|
-
|
|
|
+ <div class="page_item end_item hide_scrollbar" ref="scrollDom">
|
|
|
+ <div class="search_page" ref="searchDom">
|
|
|
+ <DefaultSelectSearch v-if="scrollMsg.isScrollTop" @searchChange="HandleSearchChange">
|
|
|
+ <div v-if="userInfo.roles.includes('Admin')" class="content_right">
|
|
|
+ <el-button class="button_refresh" @click="OpenBatchImportDialog">批量导入</el-button>
|
|
|
+ <el-button class="button_background" @click="OpenSchoolFormDialog()">新增学校</el-button>
|
|
|
+ </div>
|
|
|
+ </DefaultSelectSearch>
|
|
|
+
|
|
|
+ <DefaultBlockSearch v-else @searchChange="HandleSearchChange">
|
|
|
+ <div v-if="userInfo.roles.includes('Admin')" class="content_right">
|
|
|
+ <el-button class="button_refresh" @click="OpenBatchImportDialog">批量导入</el-button>
|
|
|
+ <el-button class="button_background" @click="OpenSchoolFormDialog()">新增学校</el-button>
|
|
|
+ </div>
|
|
|
+ </DefaultBlockSearch>
|
|
|
+ </div>
|
|
|
+
|
|
|
<Table :tableColumns="publicSeasTableColumns" :tableData="tableData"
|
|
|
:currentPage="currentPage" :pageSize="pageSize" :totalNum="totalNum"
|
|
|
:showPageSize="true" @paginationChange="HandlePaginationChange">
|
|
|
@@ -79,6 +87,8 @@ import {ElMessage} from 'element-plus'
|
|
|
import DefaultBlockSearch from '@/components/HighSeasCustomerHeaderSearch/DefaultBlockSearch/index.vue'
|
|
|
import {stageOptions, regionOptions } from '@/components/HighSeasCustomerHeaderSearch/commonVar'
|
|
|
import {defaultPageSearchParams as searchParams} from '@/components/HighSeasCustomerHeaderSearch/commonVar'
|
|
|
+import DefaultSelectSearch from '@/components/HighSeasCustomerHeaderSearch/DefaultSelectSearch/index.vue'
|
|
|
+
|
|
|
|
|
|
import Table from '@/baseComponents/Table.vue';
|
|
|
import {publicSeasTableColumns,templateTableColumns} from './table'
|
|
|
@@ -99,14 +109,19 @@ import { getHeaderSearchParamsApi,
|
|
|
claimHighSeasCustomerApi,
|
|
|
} from '@/api/highSeasCustomer'
|
|
|
|
|
|
+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)') //搜索栏是否需要在滚动的时候固定到顶部
|
|
|
+
|
|
|
const userInfo = computed(()=>{
|
|
|
return JSON.parse(localStorage.getItem('userInfo') || '{}')
|
|
|
})
|
|
|
|
|
|
-// 获取头部筛选数据
|
|
|
+// 获取头部筛选数据
|
|
|
const GetHeaderSearchParams = async ()=>{
|
|
|
let res = await getHeaderSearchParamsApi()
|
|
|
const {regionData,stageData} = res.data || {}
|
|
|
@@ -361,7 +376,10 @@ onMounted( async()=>{
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
.end_item{
|
|
|
- gap:16px;
|
|
|
+ overflow: auto;
|
|
|
+ :deep(.page_table){
|
|
|
+ overflow:initial;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
.batch_import_form{
|
|
|
@@ -370,4 +388,11 @@ onMounted( async()=>{
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+.search_page{
|
|
|
+ background-color: white;
|
|
|
+ // background-color: rgb(229, 207, 207);
|
|
|
+ padding-bottom: 16px;
|
|
|
+}
|
|
|
+
|
|
|
</style>
|