Merge branch 'codeCheck' of https://git.mesalab.cn/nezha/nezha-fronted into codeCheck

This commit is contained in:
wujiawen
2020-01-15 15:31:48 +08:00
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

@@ -602,8 +602,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"),