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

导入成功后刷新页面

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