Commit 19107c82 authored by xiangjiaojunxp's avatar xiangjiaojunxp

修改

parent be91e179
...@@ -297,6 +297,7 @@ export default { ...@@ -297,6 +297,7 @@ export default {
name1=exportJson.sheets[0].name; name1=exportJson.sheets[0].name;
let array=[]; let array=[];
let r=this.row-1; let r=this.row-1;
try {
for(let i=r;i<d1.length;i++) { for(let i=r;i<d1.length;i++) {
for (let j = 0; j <=d1[0].length; j++) { for (let j = 0; j <=d1[0].length; j++) {
...@@ -340,13 +341,20 @@ export default { ...@@ -340,13 +341,20 @@ export default {
type: "success"}); type: "success"});
} }
}catch (err){
this.$message({
message: "导入失败,导入文件与对比文件有所不匹",
type: "error"});
}
} }
) )
}, },
/** 导出设置 */ /** 导出设置 */
handleExport: debounce(function() { handleExport: debounce(function() {
// 处理点击事件 // 处理点击事件
exportExcel(luckysheet.getAllSheets(),fileName) exportExcel(luckysheet.getAllSheets(),fileName+"(对比后数据)")
}, 500), // 设置延迟时间,单位为毫秒 }, 500), // 设置延迟时间,单位为毫秒
} }
// 配置项111 // 配置项111
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment