Commit a1ef6047 authored by renjintao's avatar renjintao

process

parent 185d14bf
......@@ -380,7 +380,6 @@ export default {
created() {
this.tdHeightExcel = window.innerHeight - 180;
//导出对列表头进行预加载start
//this.loadColum(this.columns0);
this.$api.get(`${systemUrl}/Department/GetDepartments`).then((r) => {
this.departArr = r.result.items;
});
......@@ -483,9 +482,7 @@ export default {
}
});
})
//alert(JSON.stringify(useData))
this.excelData = useData;
// alert(JSON.stringify(useData))
},
//下载原excel文件
downFile() {
......@@ -617,12 +614,13 @@ export default {
},
//粘贴excel成功
handleSuccess(tableData) {
//初始化数据
this.excelData = [];
this.excelDataBack = [];
this.columnsImport = [];
this.sheetNames = [];
this.pageType = undefined;
//console.log(tableData);
//处理colum和data
let tabColum = tableData.columns
let tabData = tableData.data
let arrData = []
......@@ -637,13 +635,9 @@ export default {
tabColum.forEach(el => {
el.key = el.title
})
//alert(JSON.stringify(arrData))
//alert(JSON.stringify(tabColum))
this.columnsImport = tabColum;
this.excelData = arrData;
this.excelDataBack = arrData;
//alert(JSON.stringify(this.columnsImport))
//alert(JSON.stringify(this.excelDataBack))
},
//粘贴excel失败
handleError(tableData, errorIndex) {
......
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