阶段性提交

This commit is contained in:
刘祥超
2020-08-21 12:32:16 +08:00
parent d15ff6b246
commit 145f0580fb
181 changed files with 4897 additions and 218 deletions

View File

@@ -1,10 +1,14 @@
Tea.context(function () {
this.moreOptionsVisible = false;
this.globalChangedClusters = [];
this.$delay(function () {
if (this.$refs.focus != null) {
this.$refs.focus.focus();
}
// 检查变更
this.checkClusterChanges()
});
/**
@@ -24,6 +28,30 @@ Tea.context(function () {
}
menu.isActive = !menu.isActive;
};
/**
* 检查集群变更
*/
this.checkClusterChanges = function () {
this.$get("/common/changedClusters")
.success(function (resp) {
this.globalChangedClusters = resp.data.clusters;
}).fail(function () {
this.globalChangedClusters = [];
})
};
/**
* 同步集群配置
*/
this.syncClustersConfigs = function () {
teaweb.confirm("确定要同步集群服务配置吗?", function () {
this.$post("/common/syncClusters")
.success(function () {
this.globalChangedClusters = [];
})
})
};
});
window.NotifySuccess = function (message, url, params) {