correcting error export zip text file (#250)

pull/3759/head
elsiosanchez 2020-01-22 17:17:44 -04:00 committed by Yamel Senih
parent b950610136
commit c602ed1d3e
1 changed files with 6 additions and 5 deletions

View File

@ -57,7 +57,6 @@ export const menuTableMixin = {
},
computed: {
isProcessTable() {
console.log(this.$route)
if (this.isProcessMenu) {
return true
}
@ -86,6 +85,9 @@ export const menuTableMixin = {
getDataSelection() {
return this.getterDataRecordsAndSelection.selection
},
getDataAllRecord() {
return this.getterDataRecordsAndSelection.record
},
fieldList() {
if (this.isPanel && this.isPanel.fieldList) {
return this.sortFields(
@ -297,12 +299,11 @@ export const menuTableMixin = {
const Header = this.getterFieldListHeader
const filterVal = this.getterFieldListValue
var list
if (!this.isOption) {
list = this.getDataSelection
if (this.getDataSelection.length <= 0) {
list = this.getDataAllRecord
} else {
list = this.gettersRecordContextMenu
list = this.getDataSelection
}
const data = this.formatJson(filterVal, list)
exportFileZip({
header: Header,