Commit 92dee72e authored by wangqinghua's avatar wangqinghua

update

parent 5a1e4f6e
export const VERSION = process.env.VERSION; export const VERSION = process.env.VERSION;
export const DEBUG_INFO_ENABLED: boolean = !!process.env.DEBUG_INFO_ENABLED; export const DEBUG_INFO_ENABLED: boolean = !!process.env.DEBUG_INFO_ENABLED;
export const SERVER_API_URL_COMS = '/coms'; 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 SERVER_API_URL_MONITOR = '/api';
export const BUILD_TIMESTAMP = process.env.BUILD_TIMESTAMP; export const BUILD_TIMESTAMP = process.env.BUILD_TIMESTAMP;
export const pageSize = 10; export const pageSize = 10;
......
...@@ -268,13 +268,16 @@ export class BasicEditComponent implements OnInit { ...@@ -268,13 +268,16 @@ export class BasicEditComponent implements OnInit {
this.validateForm.inventoryExtend = null; this.validateForm.inventoryExtend = null;
} }
let clearArr = []; let clearArr = [];
this.validateForm.templates.forEach(e=>{ if(this.validateForm.templates && this.validateForm.templates.length > 0){
const d = { this.validateForm.templates.forEach(e=>{
id:e const d = {
}; id:e
clearArr.push(d); };
}); clearArr.push(d);
this.validateForm.templates = clearArr; });
this.validateForm.templates = clearArr;
}
this.overAllSer.createHost(this.validateForm).subscribe( this.overAllSer.createHost(this.validateForm).subscribe(
(res) => { (res) => {
if (res.errCode == 10000) { if (res.errCode == 10000) {
...@@ -355,6 +358,7 @@ export class BasicEditComponent implements OnInit { ...@@ -355,6 +358,7 @@ export class BasicEditComponent implements OnInit {
//取消 //取消
handleEditCancel(): void { handleEditCancel(): void {
this.isBasicEdit = false; this.isBasicEdit = false;
this.isOkLoading = false;
this.initForm(); this.initForm();
} }
...@@ -517,7 +521,7 @@ export class BasicEditComponent implements OnInit { ...@@ -517,7 +521,7 @@ export class BasicEditComponent implements OnInit {
this.interfaceslist = [ //接口list this.interfaceslist = [ //接口list
{ {
ip: '', ip: '',
type: '1', type: '2',
port: '10050', port: '10050',
bulk: true, bulk: true,
} }
......
...@@ -153,6 +153,7 @@ export class BasicComponent implements OnInit { ...@@ -153,6 +153,7 @@ export class BasicComponent implements OnInit {
ngOnInit(): void { ngOnInit(): void {
this.findOpStatus(); this.findOpStatus();
this.search();
this.select('group'); this.select('group');
} }
...@@ -172,8 +173,8 @@ export class BasicComponent implements OnInit { ...@@ -172,8 +173,8 @@ export class BasicComponent implements OnInit {
(res) => { (res) => {
if (res.errCode == 10000) { if (res.errCode == 10000) {
this.groupList = res.data.data; this.groupList = res.data.data;
this.search();
} }
this.search();
} }
); );
} }
...@@ -185,8 +186,8 @@ export class BasicComponent implements OnInit { ...@@ -185,8 +186,8 @@ export class BasicComponent implements OnInit {
this.loading = false; this.loading = false;
if (res.errCode == 10000) { if (res.errCode == 10000) {
this.groupList = res.data; 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