mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-09-27 00:00:01 +08:00
correcting error export zip text file (#250)
This commit is contained in:
parent
b950610136
commit
c602ed1d3e
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user