提交 18c03304 编写于 作者: huangwensu's avatar huangwensu

导入成功后刷新页面

上级 553c6e49
...@@ -160,6 +160,7 @@ export default { ...@@ -160,6 +160,7 @@ export default {
importBatch() { importBatch() {
this.importDialogVisible = true; this.importDialogVisible = true;
this.importError = false; this.importError = false;
this.importFileName = '';
}, },
// 判断有没有导入文件 // 判断有没有导入文件
confirmImport() { confirmImport() {
...@@ -171,6 +172,8 @@ export default { ...@@ -171,6 +172,8 @@ export default {
data => { data => {
if(!data.data) { if(!data.data) {
this.importDialogVisible = false; this.importDialogVisible = false;
this.$message.success("导入成功");
this.search();
}else { }else {
this.importError = true; this.importError = true;
this.importErrorFileUrl = data.data; this.importErrorFileUrl = data.data;
......
...@@ -137,7 +137,7 @@ export default { ...@@ -137,7 +137,7 @@ export default {
}, },
filters: { filters: {
timeFilter: function timeFilter(val) { timeFilter: function timeFilter(val) {
return new Date(val).format("yyyy-MM-dd hh:mm:ss") return new Date(val).format("yyyy-MM-dd hh:mm:ss");
} }
}, },
mounted() { mounted() {
...@@ -193,6 +193,7 @@ export default { ...@@ -193,6 +193,7 @@ export default {
importBatch() { importBatch() {
this.importDialogVisible = true; this.importDialogVisible = true;
this.importError = false; this.importError = false;
this.importFileName = '';
}, },
// 判断有没有导入文件 // 判断有没有导入文件
confirmImport() { confirmImport() {
...@@ -205,6 +206,8 @@ export default { ...@@ -205,6 +206,8 @@ export default {
console.log("ddddddddddd",data) console.log("ddddddddddd",data)
if(!data.data) { if(!data.data) {
this.importDialogVisible = false; this.importDialogVisible = false;
this.$message.success("导入成功");
this.search();
}else { }else {
this.importError = true; this.importError = true;
this.importErrorFileUrl = data.data; this.importErrorFileUrl = data.data;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册