Browse Source

高级筛选高度优化处理

noToken
安虹睿 2 years ago
parent
commit
f8411642d8
  1. 7
      PC/InterFace.Dash/src/components/commonTabel-drawer/index.vue
  2. 6
      PC/InterFace.Dash/src/components/filterForDetailPage/index.vue
  3. 6
      PC/InterFace.Dash/src/components/searchOverall/index.vue
  4. 2
      PC/InterFace.Dash/src/components/searchOverall/style/index.scss
  5. 15
      PC/InterFace.Dash/src/components/tablePagination/index.vue
  6. 1
      PC/UI.WinIn.FasterZ.Job/src/components/commonTabel-drawer/index.vue
  7. 1
      PC/UI.WinIn.FasterZ.Job/src/components/filterForDetailPage/index.vue
  8. 6
      PC/UI.WinIn.FasterZ.Job/src/components/searchOverall/index.vue
  9. 2
      PC/UI.WinIn.FasterZ.Job/src/components/searchOverall/style/index.scss
  10. 15
      PC/UI.WinIn.FasterZ.Job/src/components/tablePagination/index.vue
  11. 3
      PC/UI.WinIn.FasterZ.Store/src/components/commonTabel-drawer/index.vue
  12. 1
      PC/UI.WinIn.FasterZ.Store/src/components/filterForDetailPage/index.vue
  13. 6
      PC/UI.WinIn.FasterZ.Store/src/components/searchOverall/index.vue
  14. 2
      PC/UI.WinIn.FasterZ.Store/src/components/searchOverall/style/index.scss
  15. 15
      PC/UI.WinIn.FasterZ.Store/src/components/tablePagination/index.vue

7
PC/InterFace.Dash/src/components/commonTabel-drawer/index.vue

@ -69,6 +69,7 @@
@rowDrop="rowDrop" @rowDrop="rowDrop"
:searchOverallCoverHeight="'calc(100vh - 345px)'" :searchOverallCoverHeight="'calc(100vh - 345px)'"
:rowSource="'detail_api'" :rowSource="'detail_api'"
:selectMaxHeight="'116px'"
:rowMaxHeight="rowMaxHeight" :rowMaxHeight="rowMaxHeight"
:totalCount="totalCountForDetail" :totalCount="totalCountForDetail"
:MaxResultCount="MaxResultCount" :MaxResultCount="MaxResultCount"
@ -164,6 +165,7 @@ import searchOverall from "@/components/searchOverall"
import currenButton from "@/components/currenButton" import currenButton from "@/components/currenButton"
import currenDescriptions from "@/components/currenDescriptions" import currenDescriptions from "@/components/currenDescriptions"
import currenTabs from "@/components/currenTabs" import currenTabs from "@/components/currenTabs"
import currenTable from "@/components/currenTable"
import pagination from "@/components/Pagination" import pagination from "@/components/Pagination"
import rowDrop from "@/components/rowDrop/index.vue" import rowDrop from "@/components/rowDrop/index.vue"
import * as allUrlOption from '@/utils/baseData/urlOption' import * as allUrlOption from '@/utils/baseData/urlOption'
@ -175,6 +177,7 @@ export default {
currenButton, currenButton,
currenDescriptions, currenDescriptions,
currenTabs, currenTabs,
currenTable,
searchOverall, searchOverall,
rowDrop rowDrop
}, },
@ -380,8 +383,8 @@ export default {
methods: { methods: {
// - // -
getDetailList(data,successFn,errorFn){ getDetailList(data,successFn,errorFn){
//
if(data)this.PageListParams.condition.filters = [] if(data)this.PageListParams.condition.filters = []
//
let _hasId = false let _hasId = false
this.PageListParams.condition.filters.forEach(item=>{ this.PageListParams.condition.filters.forEach(item=>{
if(item.column == this.URLOption_masterId){ if(item.column == this.URLOption_masterId){
@ -577,7 +580,7 @@ export default {
this.zdyTableColumns = [] this.zdyTableColumns = []
this.otherData = [] this.otherData = []
// this.firstTabs = val.name // this.firstTabs = val.name
// tab // tab
// if (item.functionName == 'getListByItemcode') { // if (item.functionName == 'getListByItemcode') {
// let params = { // let params = {
// itemCode: this.propsData.code // itemCode: this.propsData.code

6
PC/InterFace.Dash/src/components/filterForDetailPage/index.vue

@ -30,6 +30,7 @@
:multipleSelection="multipleSelection" :multipleSelection="multipleSelection"
:MaxResultCount="PageListParams.MaxResultCount" :MaxResultCount="PageListParams.MaxResultCount"
:setUTableHeight="setUTableHeight" :setUTableHeight="setUTableHeight"
:selectMaxHeight="'116px'"
@topbutton="topbutton" @topbutton="topbutton"
@inlineDialog="inlineDialog" @inlineDialog="inlineDialog"
@sortChange="sortChange" @sortChange="sortChange"
@ -203,6 +204,10 @@ export default {
data () { data () {
return { return {
dialogShow:true, dialogShow:true,
// URLOption_detailList:allUrlOption[this.$route.name].detailListURL,//-
// URLOption_masterId:allUrlOption[this.$route.name].masterId || 'masterId',//-id
// URLOption_masterName:allUrlOption[this.$route.name].masterName,//-//-title
// URLOption_parent:allUrlOption[this.$route.name].parentURL ? allUrlOption[this.$route.name].parentURL : allUrlOption[this.$route.name].detailURL,//-
currenButtonData: [],// currenButtonData: [],//
operaButtons:[],// operaButtons:[],//
showParentDialog:false,// showParentDialog:false,//
@ -315,6 +320,7 @@ export default {
</script> </script>
<style lang="scss"> <style lang="scss">
.filterForDetailPage { .filterForDetailPage {
.mainTable-dialog{ .mainTable-dialog{
.el-dialog{ .el-dialog{
height: calc(100% - 100px); height: calc(100% - 100px);

6
PC/InterFace.Dash/src/components/searchOverall/index.vue

@ -32,6 +32,7 @@
<!-- 高级筛选界面 --> <!-- 高级筛选界面 -->
<div v-if="isShow && isShowMoreList" class="moreListOuter"> <div v-if="isShow && isShowMoreList" class="moreListOuter">
<curren-Form <curren-Form
:style="`--navFilterMaxHeight: ${selectMaxHeight};`"
class="navFilter" class="navFilter"
size="medium" size="medium"
labelWidth="0" labelWidth="0"
@ -259,6 +260,11 @@ export default {
} }
}, },
props: { props: {
//
selectMaxHeight:{
type: String,
default: '174px'
},
// //
searchOverallCoverHeight:{ searchOverallCoverHeight:{
type: String, type: String,

2
PC/InterFace.Dash/src/components/searchOverall/style/index.scss

@ -31,7 +31,7 @@
// flex-direction: column; // flex-direction: column;
// width: 100%; // width: 100%;
// height: 100%; // height: 100%;
max-height: 170px; max-height: var(--navFilterMaxHeight);
overflow: auto; overflow: auto;
.el-form { .el-form {

15
PC/InterFace.Dash/src/components/tablePagination/index.vue

@ -25,6 +25,7 @@
:tableColumns="tableColumns" :tableColumns="tableColumns"
@overallSearchFormClick="overallSearchFormClick" @overallSearchFormClick="overallSearchFormClick"
:httpOverallSearchData="httpOverallSearchData" :httpOverallSearchData="httpOverallSearchData"
:selectMaxHeight="selectMaxHeight"
> >
<!-- 插槽预留 --> <!-- 插槽预留 -->
<slot name="searchPrimarySlot"></slot> <slot name="searchPrimarySlot"></slot>
@ -48,7 +49,7 @@
:tableColumns="tableColumns | isTableColumns" :tableColumns="tableColumns | isTableColumns"
:isShowIndex="isShowIndex" :isShowIndex="isShowIndex"
:selectionTable="tableSelection" :selectionTable="tableSelection"
:setUTableHeight="setUTableHeight || uTableTopHeight" :setUTableHeight="uTableTopHeight"
@sortChange="sortChange" @sortChange="sortChange"
@handleSelectionChange="handleSelectionChange" @handleSelectionChange="handleSelectionChange"
@inlineDialog="inlineDialog" @inlineDialog="inlineDialog"
@ -95,6 +96,11 @@ export default {
type:String, type:String,
default:'calc(90vh - 280px)' default:'calc(90vh - 280px)'
}, },
//
selectMaxHeight:{
type: String,
default: '174px'
},
// //
searchOverallCoverHeight:{ searchOverallCoverHeight:{
type: String, type: String,
@ -226,6 +232,7 @@ export default {
rowDropVisible: false, rowDropVisible: false,
// table key // table key
isUpdate: false, isUpdate: false,
appRemoveHeight:165,
// table // table
uTableTopHeight:165, uTableTopHeight:165,
// table // table
@ -265,6 +272,8 @@ export default {
} }
}, },
mounted(){ mounted(){
this.appRemoveHeight = this.setUTableHeight || 165
this.uTableTopHeight = this.appRemoveHeight
this.uTableOuterHeight = this.$refs.tablePaginationTableRef.getTableHeight() this.uTableOuterHeight = this.$refs.tablePaginationTableRef.getTableHeight()
this.uTableOuterHeight_init = Number(JSON.stringify(this.uTableOuterHeight)) this.uTableOuterHeight_init = Number(JSON.stringify(this.uTableOuterHeight))
@ -328,12 +337,12 @@ export default {
let _margin = 20 let _margin = 20
this.uTableOuterHeight = this.uTableOuterHeight_init - minusHeight - _margin this.uTableOuterHeight = this.uTableOuterHeight_init - minusHeight - _margin
setTimeout(()=>{ setTimeout(()=>{
this.uTableTopHeight = minusHeight + 165 + _margin this.uTableTopHeight = minusHeight + this.appRemoveHeight + _margin
},0) },0)
}else{ }else{
this.uTableOuterHeight = this.uTableOuterHeight_init this.uTableOuterHeight = this.uTableOuterHeight_init
setTimeout(()=>{ setTimeout(()=>{
this.uTableTopHeight = 165 this.uTableTopHeight = this.appRemoveHeight
},0) },0)
} }
}, },

1
PC/UI.WinIn.FasterZ.Job/src/components/commonTabel-drawer/index.vue

@ -69,6 +69,7 @@
@rowDrop="rowDrop" @rowDrop="rowDrop"
:searchOverallCoverHeight="'calc(100vh - 345px)'" :searchOverallCoverHeight="'calc(100vh - 345px)'"
:rowSource="'detail_api'" :rowSource="'detail_api'"
:selectMaxHeight="'116px'"
:rowMaxHeight="rowMaxHeight" :rowMaxHeight="rowMaxHeight"
:totalCount="totalCountForDetail" :totalCount="totalCountForDetail"
:MaxResultCount="MaxResultCount" :MaxResultCount="MaxResultCount"

1
PC/UI.WinIn.FasterZ.Job/src/components/filterForDetailPage/index.vue

@ -30,6 +30,7 @@
:multipleSelection="multipleSelection" :multipleSelection="multipleSelection"
:MaxResultCount="PageListParams.MaxResultCount" :MaxResultCount="PageListParams.MaxResultCount"
:setUTableHeight="setUTableHeight" :setUTableHeight="setUTableHeight"
:selectMaxHeight="'116px'"
@topbutton="topbutton" @topbutton="topbutton"
@inlineDialog="inlineDialog" @inlineDialog="inlineDialog"
@sortChange="sortChange" @sortChange="sortChange"

6
PC/UI.WinIn.FasterZ.Job/src/components/searchOverall/index.vue

@ -32,6 +32,7 @@
<!-- 高级筛选界面 --> <!-- 高级筛选界面 -->
<div v-if="isShow && isShowMoreList" class="moreListOuter"> <div v-if="isShow && isShowMoreList" class="moreListOuter">
<curren-Form <curren-Form
:style="`--navFilterMaxHeight: ${selectMaxHeight};`"
class="navFilter" class="navFilter"
size="medium" size="medium"
labelWidth="0" labelWidth="0"
@ -259,6 +260,11 @@ export default {
} }
}, },
props: { props: {
//
selectMaxHeight:{
type: String,
default: '174px'
},
// //
searchOverallCoverHeight:{ searchOverallCoverHeight:{
type: String, type: String,

2
PC/UI.WinIn.FasterZ.Job/src/components/searchOverall/style/index.scss

@ -31,7 +31,7 @@
// flex-direction: column; // flex-direction: column;
// width: 100%; // width: 100%;
// height: 100%; // height: 100%;
max-height: 170px; max-height: var(--navFilterMaxHeight);
overflow: auto; overflow: auto;
.el-form { .el-form {

15
PC/UI.WinIn.FasterZ.Job/src/components/tablePagination/index.vue

@ -25,6 +25,7 @@
:tableColumns="tableColumns" :tableColumns="tableColumns"
@overallSearchFormClick="overallSearchFormClick" @overallSearchFormClick="overallSearchFormClick"
:httpOverallSearchData="httpOverallSearchData" :httpOverallSearchData="httpOverallSearchData"
:selectMaxHeight="selectMaxHeight"
> >
<!-- 插槽预留 --> <!-- 插槽预留 -->
<slot name="searchPrimarySlot"></slot> <slot name="searchPrimarySlot"></slot>
@ -48,7 +49,7 @@
:tableColumns="tableColumns | isTableColumns" :tableColumns="tableColumns | isTableColumns"
:isShowIndex="isShowIndex" :isShowIndex="isShowIndex"
:selectionTable="tableSelection" :selectionTable="tableSelection"
:setUTableHeight="setUTableHeight || uTableTopHeight" :setUTableHeight="uTableTopHeight"
@sortChange="sortChange" @sortChange="sortChange"
@handleSelectionChange="handleSelectionChange" @handleSelectionChange="handleSelectionChange"
@inlineDialog="inlineDialog" @inlineDialog="inlineDialog"
@ -95,6 +96,11 @@ export default {
type:String, type:String,
default:'calc(90vh - 280px)' default:'calc(90vh - 280px)'
}, },
//
selectMaxHeight:{
type: String,
default: '174px'
},
// //
searchOverallCoverHeight:{ searchOverallCoverHeight:{
type: String, type: String,
@ -226,6 +232,7 @@ export default {
rowDropVisible: false, rowDropVisible: false,
// table key // table key
isUpdate: false, isUpdate: false,
appRemoveHeight:165,
// table // table
uTableTopHeight:165, uTableTopHeight:165,
// table // table
@ -265,6 +272,8 @@ export default {
} }
}, },
mounted(){ mounted(){
this.appRemoveHeight = this.setUTableHeight || 165
this.uTableTopHeight = this.appRemoveHeight
this.uTableOuterHeight = this.$refs.tablePaginationTableRef.getTableHeight() this.uTableOuterHeight = this.$refs.tablePaginationTableRef.getTableHeight()
this.uTableOuterHeight_init = Number(JSON.stringify(this.uTableOuterHeight)) this.uTableOuterHeight_init = Number(JSON.stringify(this.uTableOuterHeight))
@ -328,12 +337,12 @@ export default {
let _margin = 20 let _margin = 20
this.uTableOuterHeight = this.uTableOuterHeight_init - minusHeight - _margin this.uTableOuterHeight = this.uTableOuterHeight_init - minusHeight - _margin
setTimeout(()=>{ setTimeout(()=>{
this.uTableTopHeight = minusHeight + 165 + _margin this.uTableTopHeight = minusHeight + this.appRemoveHeight + _margin
},0) },0)
}else{ }else{
this.uTableOuterHeight = this.uTableOuterHeight_init this.uTableOuterHeight = this.uTableOuterHeight_init
setTimeout(()=>{ setTimeout(()=>{
this.uTableTopHeight = 165 this.uTableTopHeight = this.appRemoveHeight
},0) },0)
} }
}, },

3
PC/UI.WinIn.FasterZ.Store/src/components/commonTabel-drawer/index.vue

@ -69,6 +69,7 @@
@rowDrop="rowDrop" @rowDrop="rowDrop"
:searchOverallCoverHeight="'calc(100vh - 345px)'" :searchOverallCoverHeight="'calc(100vh - 345px)'"
:rowSource="'detail_api'" :rowSource="'detail_api'"
:selectMaxHeight="'116px'"
:rowMaxHeight="rowMaxHeight" :rowMaxHeight="rowMaxHeight"
:totalCount="totalCountForDetail" :totalCount="totalCountForDetail"
:MaxResultCount="MaxResultCount" :MaxResultCount="MaxResultCount"
@ -579,7 +580,7 @@ export default {
this.zdyTableColumns = [] this.zdyTableColumns = []
this.otherData = [] this.otherData = []
// this.firstTabs = val.name // this.firstTabs = val.name
// tab // tab
// if (item.functionName == 'getListByItemcode') { // if (item.functionName == 'getListByItemcode') {
// let params = { // let params = {
// itemCode: this.propsData.code // itemCode: this.propsData.code

1
PC/UI.WinIn.FasterZ.Store/src/components/filterForDetailPage/index.vue

@ -30,6 +30,7 @@
:multipleSelection="multipleSelection" :multipleSelection="multipleSelection"
:MaxResultCount="PageListParams.MaxResultCount" :MaxResultCount="PageListParams.MaxResultCount"
:setUTableHeight="setUTableHeight" :setUTableHeight="setUTableHeight"
:selectMaxHeight="'116px'"
@topbutton="topbutton" @topbutton="topbutton"
@inlineDialog="inlineDialog" @inlineDialog="inlineDialog"
@sortChange="sortChange" @sortChange="sortChange"

6
PC/UI.WinIn.FasterZ.Store/src/components/searchOverall/index.vue

@ -32,6 +32,7 @@
<!-- 高级筛选界面 --> <!-- 高级筛选界面 -->
<div v-if="isShow && isShowMoreList" class="moreListOuter"> <div v-if="isShow && isShowMoreList" class="moreListOuter">
<curren-Form <curren-Form
:style="`--navFilterMaxHeight: ${selectMaxHeight};`"
class="navFilter" class="navFilter"
size="medium" size="medium"
labelWidth="0" labelWidth="0"
@ -259,6 +260,11 @@ export default {
} }
}, },
props: { props: {
//
selectMaxHeight:{
type: String,
default: '174px'
},
// //
searchOverallCoverHeight:{ searchOverallCoverHeight:{
type: String, type: String,

2
PC/UI.WinIn.FasterZ.Store/src/components/searchOverall/style/index.scss

@ -31,7 +31,7 @@
// flex-direction: column; // flex-direction: column;
// width: 100%; // width: 100%;
// height: 100%; // height: 100%;
max-height: 170px; max-height: var(--navFilterMaxHeight);
overflow: auto; overflow: auto;
.el-form { .el-form {

15
PC/UI.WinIn.FasterZ.Store/src/components/tablePagination/index.vue

@ -25,6 +25,7 @@
:tableColumns="tableColumns" :tableColumns="tableColumns"
@overallSearchFormClick="overallSearchFormClick" @overallSearchFormClick="overallSearchFormClick"
:httpOverallSearchData="httpOverallSearchData" :httpOverallSearchData="httpOverallSearchData"
:selectMaxHeight="selectMaxHeight"
> >
<!-- 插槽预留 --> <!-- 插槽预留 -->
<slot name="searchPrimarySlot"></slot> <slot name="searchPrimarySlot"></slot>
@ -48,7 +49,7 @@
:tableColumns="tableColumns | isTableColumns" :tableColumns="tableColumns | isTableColumns"
:isShowIndex="isShowIndex" :isShowIndex="isShowIndex"
:selectionTable="tableSelection" :selectionTable="tableSelection"
:setUTableHeight="setUTableHeight || uTableTopHeight" :setUTableHeight="uTableTopHeight"
@sortChange="sortChange" @sortChange="sortChange"
@handleSelectionChange="handleSelectionChange" @handleSelectionChange="handleSelectionChange"
@inlineDialog="inlineDialog" @inlineDialog="inlineDialog"
@ -95,6 +96,11 @@ export default {
type:String, type:String,
default:'calc(90vh - 280px)' default:'calc(90vh - 280px)'
}, },
//
selectMaxHeight:{
type: String,
default: '174px'
},
// //
searchOverallCoverHeight:{ searchOverallCoverHeight:{
type: String, type: String,
@ -226,6 +232,7 @@ export default {
rowDropVisible: false, rowDropVisible: false,
// table key // table key
isUpdate: false, isUpdate: false,
appRemoveHeight:165,
// table // table
uTableTopHeight:165, uTableTopHeight:165,
// table // table
@ -265,6 +272,8 @@ export default {
} }
}, },
mounted(){ mounted(){
this.appRemoveHeight = this.setUTableHeight || 165
this.uTableTopHeight = this.appRemoveHeight
this.uTableOuterHeight = this.$refs.tablePaginationTableRef.getTableHeight() this.uTableOuterHeight = this.$refs.tablePaginationTableRef.getTableHeight()
this.uTableOuterHeight_init = Number(JSON.stringify(this.uTableOuterHeight)) this.uTableOuterHeight_init = Number(JSON.stringify(this.uTableOuterHeight))
@ -328,12 +337,12 @@ export default {
let _margin = 20 let _margin = 20
this.uTableOuterHeight = this.uTableOuterHeight_init - minusHeight - _margin this.uTableOuterHeight = this.uTableOuterHeight_init - minusHeight - _margin
setTimeout(()=>{ setTimeout(()=>{
this.uTableTopHeight = minusHeight + 165 + _margin this.uTableTopHeight = minusHeight + this.appRemoveHeight + _margin
},0) },0)
}else{ }else{
this.uTableOuterHeight = this.uTableOuterHeight_init this.uTableOuterHeight = this.uTableOuterHeight_init
setTimeout(()=>{ setTimeout(()=>{
this.uTableTopHeight = 165 this.uTableTopHeight = this.appRemoveHeight
},0) },0)
} }
}, },

Loading…
Cancel
Save