feat: 新功能、bug修复

新功能:
1.顶部菜单的Create按钮:Project、Module;
2.Project页:除Endpoint新增、Metrics列表外的功能;
BUG修复:
1.Config、Project、Alert各个后台交互操作都加上了成功、失败提示;
2.Config-Account:列表、弹框增加了删除功能
3.Config-PromServer:弹框中DC下拉框删除功能可以用了
4.Project:Endpoint列表--编辑--Host子弹框,优化了一下asset列表交互
This commit is contained in:
chenjinsong
2019-12-19 17:22:18 +08:00
parent 53639fb3e2
commit c5fda756c6
11 changed files with 723 additions and 207 deletions

View File

@@ -84,7 +84,7 @@
if (this.project.id) {
this.$put('project', this.project).then(response => {
if (response.code === 200) {
this.$message({duration: 3000, type: 'success', message: this.$t("tip.saveSuccess")});
this.$message({duration: 1000, type: 'success', message: this.$t("tip.saveSuccess")});
this.$emit("reload");
this.rightBox.show = false;
} else {
@@ -94,7 +94,7 @@
} else {
this.$post('project', this.project).then(response => {
if (response.code === 200) {
this.$message({duration: 3000, type: 'success', message: this.$t("tip.saveSuccess")});
this.$message({duration: 1000, type: 'success', message: this.$t("tip.saveSuccess")});
this.$emit("reload");
this.rightBox.show = false;
} else {
@@ -113,7 +113,7 @@
}).then(() => {
this.$delete("project?ids=" + this.project.id).then(response => {
if (response.code === 200) {
this.$message({duration: 3000, type: 'success', message: this.$t("tip.deleteSuccess")});
this.$message({duration: 1000, type: 'success', message: this.$t("tip.deleteSuccess")});
this.rightBox.show = false;
this.$emit("reload");
} else {