Commit 92dee72e authored by wangqinghua's avatar wangqinghua

update

parent 5a1e4f6e
export const VERSION = process.env.VERSION;
export const DEBUG_INFO_ENABLED: boolean = !!process.env.DEBUG_INFO_ENABLED;
export const SERVER_API_URL_COMS = '/coms';
export const SERVER_API_URL = '/anke';
// export const SERVER_API_URL = '/anke';
export const SERVER_API_URL = '/zabbixBox';
export const SERVER_API_URL_MONITOR = '/api';
export const BUILD_TIMESTAMP = process.env.BUILD_TIMESTAMP;
export const pageSize = 10;
......
......@@ -268,6 +268,7 @@ export class BasicEditComponent implements OnInit {
this.validateForm.inventoryExtend = null;
}
let clearArr = [];
if(this.validateForm.templates && this.validateForm.templates.length > 0){
this.validateForm.templates.forEach(e=>{
const d = {
id:e
......@@ -275,6 +276,8 @@ export class BasicEditComponent implements OnInit {
clearArr.push(d);
});
this.validateForm.templates = clearArr;
}
this.overAllSer.createHost(this.validateForm).subscribe(
(res) => {
if (res.errCode == 10000) {
......@@ -355,6 +358,7 @@ export class BasicEditComponent implements OnInit {
//取消
handleEditCancel(): void {
this.isBasicEdit = false;
this.isOkLoading = false;
this.initForm();
}
......@@ -517,7 +521,7 @@ export class BasicEditComponent implements OnInit {
this.interfaceslist = [ //接口list
{
ip: '',
type: '1',
type: '2',
port: '10050',
bulk: true,
}
......
......@@ -153,6 +153,7 @@ export class BasicComponent implements OnInit {
ngOnInit(): void {
this.findOpStatus();
this.search();
this.select('group');
}
......@@ -172,8 +173,8 @@ export class BasicComponent implements OnInit {
(res) => {
if (res.errCode == 10000) {
this.groupList = res.data.data;
this.search();
}
this.search();
}
);
}
......@@ -185,8 +186,8 @@ export class BasicComponent implements OnInit {
this.loading = false;
if (res.errCode == 10000) {
this.groupList = res.data;
this.search();
}
this.search();
}
);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment