提交 45923527 编写于 作者: bo.dang's avatar bo.dang

导入机构错误提示优化

上级 593ca208
...@@ -97,6 +97,21 @@ ...@@ -97,6 +97,21 @@
<el-button type="primary" @click="hideDeleteFrom">取 消</el-button> <el-button type="primary" @click="hideDeleteFrom">取 消</el-button>
</span> </span>
</el-dialog> </el-dialog>
<el-dialog
title="导入错误提示"
:visible.sync="dialogVisible"
width="500px"
:close-on-click-modal="false"
@close="handleErrorClose"
center
>
<el-table :data="dialogErrorData" align="center">
<el-table-column property="rowNumber" label="行数" align="center"></el-table-column>
<el-table-column property="wrongData" label="错误提示" align="center"></el-table-column>
</el-table>
</el-dialog>
</div> </div>
</template> </template>
...@@ -173,7 +188,9 @@ export default { ...@@ -173,7 +188,9 @@ export default {
dialogOrg: false, dialogOrg: false,
deleteVisible: false, deleteVisible: false,
detelMessage: '', detelMessage: '',
clickItem: null clickItem: null,
dialogVisible: false,
dialogErrorData: []
} }
}, },
components: { components: {
...@@ -446,11 +463,21 @@ export default { ...@@ -446,11 +463,21 @@ export default {
closeLoading(vm); closeLoading(vm);
if (res.code == "000000") { if (res.code == "000000") {
this.$message({
type: 'success', if(res.data.successNum == 0 && res.data.wrongDataList.length > 0){
message: '导入成功!'
}); this.dialogVisible = true;
vm.initRange();
this.dialogErrorData = res.data.wrongDataList;
}
else {
this.$message({
type: 'success',
message: '导入成功!'
});
vm.initRange();
}
} }
else { else {
this.$message({ this.$message({
...@@ -463,7 +490,10 @@ export default { ...@@ -463,7 +490,10 @@ export default {
// }; // };
// reader.readAsDataURL(file); // reader.readAsDataURL(file);
} },
handleErrorClose() {
this.dialogVisible = false;
},
} }
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册