fix:修复asset配置侧滑关闭的bug

This commit is contained in:
wangwenrui
2020-01-15 14:31:28 +08:00
parent 44aedd9174
commit eb2712b16c
3 changed files with 10 additions and 2 deletions

View File

@@ -189,6 +189,7 @@
if (response.code === 200) {
temp.$message({duration: 1000, type: 'success', message: temp.$t("tip.deleteSuccess")});
temp.$emit("after");
temp.$store.commit('assetDcListChange');
temp.esc();
} else {
this.$message.error(response.msg);

View File

@@ -601,8 +601,8 @@
}
},
flushData() {
this.addUnitShow=false;
this.editUnitShow=false;
// this.addUnitShow=false;
// this.editUnitShow=false;
this.getSingleAsset();
this.getAssetData();
this.getIDCOptionData();

View File

@@ -1014,6 +1014,13 @@
}
},
clearFile:function(){
if(this.$refs.upload){
this.$refs.upload.clearFiles();
}
this.uploadFileList=[];
this.assetData.accounts[0].privateKey='';
},
deleteData(data, item) {
this.$confirm(this.$t("tip.confirmDelete"), {
confirmButtonText: this.$t("tip.yes"),