File tree Expand file tree Collapse file tree 3 files changed +20
-3
lines changed Expand file tree Collapse file tree 3 files changed +20
-3
lines changed Original file line number Diff line number Diff line change @@ -135,7 +135,13 @@ export default defineComponent({
135
135
if (isEmptyValue(rowCells)) return []
136
136
return rowCells
137
137
})
138
+ const tableHeight = computed(() => {
139
+ return store.getters.getIsActiateCollapse
140
+ })
138
141
const height = computed(() => {
142
+ if (tableHeight.value === '1') {
143
+ return 'calc(100vh - 460px)'
144
+ }
139
145
if (store.getters.device !== 'mobile') {
140
146
return 'calc(100vh - 295px)'
141
147
}
@@ -452,6 +458,7 @@ export default defineComponent({
452
458
isLoadingReport,
453
459
currentPageSize,
454
460
currentPageNumber,
461
+ tableHeight,
455
462
getColumnStyle,
456
463
// Methods
457
464
keyAction,
Original file line number Diff line number Diff line change 24
24
</b>
25
25
</div>
26
26
27
- <el-collapse v-model ="activeCollapse">
27
+ <el-collapse @change ="activeCollapse">
28
28
<el-collapse-item name="1">
29
29
<template slot="title">
30
30
<b style="font-size: 18px">
@@ -266,7 +266,7 @@ export default defineComponent({
266
266
const reportAsViewValue = ref(undefined)
267
267
const reportAsPrintFormatValue = ref(undefined)
268
268
const reportTypeFormatValue = ref('')
269
- const activeCollapse = ref(['1', '2'])
269
+ // const activeCollapse = ref(['1', '2'])
270
270
const isSummaryReport = ref(true)
271
271
272
272
/**
@@ -280,6 +280,9 @@ export default defineComponent({
280
280
* @containerManagerReportViwer - Container Manager the Report Viwer
281
281
* @componentRender - Import the Panel Definitions component
282
282
*/
283
+ function activeCollapse({ 0: data }) {
284
+ store.commit('setActivateCollapse', data)
285
+ }
283
286
const reportAsView = computed(() => {
284
287
const options = store.getters.getStoredActionsMenu({
285
288
containerUuid: props.containerUuid
Original file line number Diff line number Diff line change @@ -70,12 +70,16 @@ const initState = {
70
70
exportReport : { } ,
71
71
contactSend : '' ,
72
72
typeNotify : '' ,
73
- defaultBody : ''
73
+ defaultBody : '' ,
74
+ activateCollapse : 0
74
75
}
75
76
const reportManager = {
76
77
state : initState ,
77
78
78
79
mutations : {
80
+ setActivateCollapse ( state , activateCollapse ) {
81
+ state . activateCollapse = activateCollapse
82
+ } ,
79
83
setContactSend ( state , contactSend ) {
80
84
state . contactSend = contactSend
81
85
} ,
@@ -1003,6 +1007,9 @@ const reportManager = {
1003
1007
} ,
1004
1008
getDefaultBody : ( state ) => {
1005
1009
return state . defaultBody
1010
+ } ,
1011
+ getIsActiateCollapse : ( state ) => {
1012
+ return state . activateCollapse
1006
1013
}
1007
1014
}
1008
1015
}
You can’t perform that action at this time.
0 commit comments