fix:修复panel导入后刷新失败的问题

This commit is contained in:
wangwenrui
2020-09-21 17:57:38 +08:00
parent 1cb643995d
commit ff02eb0667
2 changed files with 2 additions and 1 deletions

View File

@@ -141,6 +141,7 @@
this.$delete(url + '?seq='+this.importResult.seq).then(response=>{ this.$delete(url + '?seq='+this.importResult.seq).then(response=>{
if(response.code == 200 ){ if(response.code == 200 ){
this.$message({duration: 2000, type: 'success', message: this.$t("tip.saveSuccess")}); this.$message({duration: 2000, type: 'success', message: this.$t("tip.saveSuccess")});
this.$emit('afterImport')
}else{ }else{
this.$message.error(response.msg); this.$message.error(response.msg);
} }

View File

@@ -55,7 +55,7 @@
export-url="/panel/export" export-url="/panel/export"
import-url="/panel/import" import-url="/panel/import"
:params="filter" :params="filter"
@afterImport="Refresh" @afterImport="dateChange"
> >
<template slot="optionZone"> <template slot="optionZone">
<button @click="addChart" :title="$t('overall.createChart')" <button @click="addChart" :title="$t('overall.createChart')"