|
@@ -198,13 +198,13 @@
|
|
},
|
|
},
|
|
success(res) {
|
|
success(res) {
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
- if (thisIndex!=undefined) {//一键导出
|
|
|
|
|
|
+ if (thisIndex!=undefined) {//单击导出
|
|
if (that.templateId == 1) {//模板1
|
|
if (that.templateId == 1) {//模板1
|
|
that.export(res.data, 0, that.zipNames[thisIndex]);
|
|
that.export(res.data, 0, that.zipNames[thisIndex]);
|
|
} else if (that.templateId == 2) {//模板2
|
|
} else if (that.templateId == 2) {//模板2
|
|
that.exportMuban2(res.data, 0, that.zipNames[thisIndex]);
|
|
that.exportMuban2(res.data, 0, that.zipNames[thisIndex]);
|
|
}
|
|
}
|
|
- } else {//单击导出
|
|
|
|
|
|
+ } else {//一键导出
|
|
if (that.templateId == 1) {
|
|
if (that.templateId == 1) {
|
|
that.export(res.data, 0, that.zipNames[_index], ++_index);
|
|
that.export(res.data, 0, that.zipNames[_index], ++_index);
|
|
} else if (that.templateId == 2) {
|
|
} else if (that.templateId == 2) {
|
|
@@ -325,7 +325,7 @@
|
|
}
|
|
}
|
|
}else{
|
|
}else{
|
|
that.exportMuban2(data, _index, excelName);
|
|
that.exportMuban2(data, _index, excelName);
|
|
- if (that.stations.length == deepIndex && _index == 1) { //当长度一致时,向zip塞值,_index只让执行第一次
|
|
|
|
|
|
+ if (that.stations.length && _index == 1) { //当长度一致时,向zip塞值,_index只让执行第一次
|
|
var thisPath = that.paths,
|
|
var thisPath = that.paths,
|
|
thisPathName = that.pathName;
|
|
thisPathName = that.pathName;
|
|
that.tempArrayS = [];
|
|
that.tempArrayS = [];
|