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

导入机构错误提示优化

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