Skip to content

Commit

Permalink
:bug #467 fixed bug: web console erro when delete layer
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangsenfeng committed Nov 22, 2019
1 parent 568cf5f commit a282b33
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions cmdb-ui/src/pages/admin/cmdb-model-management.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1058,7 +1058,7 @@ export default {
currentSelectLayerChildren: [],
currentSelectedCIChildren: [],
addNewCITypeForm: {
imageFileId: 0
imageFileId: 1
},
addNewAttrForm: {
searchSeqNo: 0,
Expand Down Expand Up @@ -1089,7 +1089,7 @@ export default {
if (!isShow) {
this.addNewCITypeForm = {
layerId: this.addNewCITypeForm.layerId,
imageFileId: 0
imageFileId: 1
};
}
},
Expand Down Expand Up @@ -1528,14 +1528,13 @@ export default {
title: this.$t("delete_layer_success"),
desc: message
});
this.initGraph();
this.reRenderGraph();
}
},
onCancel: () => {}
});
document.querySelector(".ivu-modal-mask").click();
},
async revertCI(ciTypeId) {
let res = await implementCiType(ciTypeId, "revert");
if (res.statusCode === "OK") {
Expand Down Expand Up @@ -1664,7 +1663,7 @@ export default {
tableName: "",
layerId: "",
description: "",
imageFileId: 0
imageFileId: 1
};
},
async submitCiType(id, form) {
Expand Down Expand Up @@ -1896,6 +1895,13 @@ export default {
if (res.statusCode === "OK") {
this.statusList = res.data;
}
},
reRenderGraph() {
this.nodeName = ""
this.currentSelectedLayer = {}
this.currentSelectedCI = {}
this.getAllCITypesList();
this.initGraph()
}
},
mounted() {
Expand Down

0 comments on commit a282b33

Please sign in to comment.