Commit 9841e58e authored by renjintao's avatar renjintao

user indexindex

parent e574be65
......@@ -424,7 +424,7 @@ export default {
},
],
selectRow: {}, //删除时选中的行数据
//导入导出时使用
//导入导出时使用start
searchs: {
pageIndex: 1,
pageSize: 1000,
......@@ -560,6 +560,7 @@ export default {
},
],
departArr: [], //部门list
//导入导出时使用end
};
},
created() {
......@@ -868,6 +869,7 @@ export default {
});
},
//导入excel
//打开弹出层
import2Excel() {
this.modalImport = true;
this.excelData = [];
......@@ -876,6 +878,7 @@ export default {
this.departArr = r.result.items;
});
},
//导入excel文件
async beforeUpload(file) {
this.excelData = [];
const workbook = await this.$u.readXLSX(file);
......@@ -946,8 +949,8 @@ export default {
//console.log(workbook);
return false;
},
//确定批量导入
importOk() {
//确定批量导入
let tempData = this.$u.clone(this.excelData);
let tempList = [];
tempData.forEach((ele) => {
......@@ -981,6 +984,7 @@ export default {
}
});
},
//取消导入excel
cancelExcel() {
this.modalImport = false;
this.excelData = [];
......
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