|
@@ -271,13 +271,13 @@ export default {
|
|
|
methods: {
|
|
|
handleSuccess(response) {
|
|
|
if (response.code == 1) {
|
|
|
- if (response.data.length > 0) {
|
|
|
- var htmls = response.data;
|
|
|
+ if (response.data.list.length > 0) {
|
|
|
+ var htmls = response.data.list;
|
|
|
var str = "<div class='red'></div>";
|
|
|
htmls.forEach(item => {
|
|
|
- str += `<div>${item.errors}</div>`;
|
|
|
+ str += `<div>${item.姓名}:${item.line_err}</div>`;
|
|
|
});
|
|
|
- this.close_import();
|
|
|
+ console.log(str);
|
|
|
this.$notify.error({
|
|
|
title: '导入错误',
|
|
|
dangerouslyUseHTMLString: true,
|
|
@@ -286,8 +286,9 @@ export default {
|
|
|
offset: 50,
|
|
|
customClass: 'notifyBox'
|
|
|
});
|
|
|
+ this.close_import();
|
|
|
} else {
|
|
|
- this.file = response.data;
|
|
|
+ this.file = response.data.list;
|
|
|
this.$message.success({ message: response.msg });
|
|
|
this.getEmployee();
|
|
|
this.close_import();
|