Commit c1652f15 authored by wangqinghua's avatar wangqinghua

templateid

parent d3ab3bcc
...@@ -79,6 +79,7 @@ export class BasiCheckComponent implements OnInit { ...@@ -79,6 +79,7 @@ export class BasiCheckComponent implements OnInit {
snmp_oid: ['interfaces.ifTable.ifEntry.ifInOctets.1'], snmp_oid: ['interfaces.ifTable.ifEntry.ifInOctets.1'],
snmp_community: ['public'], snmp_community: ['public'],
applications: [null], applications: [null],
templateid:[null],
}); });
this.triggerObj = { this.triggerObj = {
condition: '', condition: '',
...@@ -216,8 +217,10 @@ export class BasiCheckComponent implements OnInit { ...@@ -216,8 +217,10 @@ export class BasiCheckComponent implements OnInit {
//修改监控项 //修改监控项
update() { update() {
this.validateForm.patchValue({
templateid:this.templateid
})
this.validateForm.addControl('itemid', new FormControl(this.itemId)); this.validateForm.addControl('itemid', new FormControl(this.itemId));
this.validateForm.addControl('templateid', new FormControl(this.templateid));
this.overAllSer.itemUpdata(this.validateForm.value).subscribe( this.overAllSer.itemUpdata(this.validateForm.value).subscribe(
(res) => { (res) => {
if (res.errCode == 10000) { if (res.errCode == 10000) {
......
...@@ -52,8 +52,8 @@ ...@@ -52,8 +52,8 @@
<span aria-hidden="true" title="全屏查看" <span aria-hidden="true" title="全屏查看"
onClick="editor.utils.showInFullScreen(editor.stage.canvas,'RequestFullScreen')">全屏查看</span> onClick="editor.utils.showInFullScreen(editor.stage.canvas,'RequestFullScreen')">全屏查看</span>
<span aria-hidden="true" title="居中显示" onClick="editor.utils.showInCenter()">居中显示</span> <span aria-hidden="true" title="居中显示" onClick="editor.utils.showInCenter()">居中显示</span>
<span aria-hidden="true" title="编辑" (click)="changeEdit('编辑')">编辑</span> <span aria-hidden="true" title="编辑" (click)="changeEdit('编辑模式')">编辑</span>
<span aria-hidden="true" title="只读" (click)="changeEdit('只读')">只读</span> <span aria-hidden="true" title="只读" (click)="changeEdit('只读模式')">只读</span>
<span aria-hidden="true" title="保存" (click)="update()">保存</span> <span aria-hidden="true" title="保存" (click)="update()">保存</span>
<span aria-hidden="true" title="清空" onClick="editor.utils.clearTopology()">清空</span> <span aria-hidden="true" title="清空" onClick="editor.utils.clearTopology()">清空</span>
<span aria-hidden="true" title="放大" onClick="editor.utils.scalingBig()">放大</span> <span aria-hidden="true" title="放大" onClick="editor.utils.scalingBig()">放大</span>
......
...@@ -97,7 +97,7 @@ export class NeTopologyComponent implements OnInit, DoCheck, AfterViewInit, OnDe ...@@ -97,7 +97,7 @@ export class NeTopologyComponent implements OnInit, DoCheck, AfterViewInit, OnDe
refreshRete; refreshRete;
options; options;
lineType = "1"; //线条类型 lineType = "1"; //线条类型
editType = "只读"; //拓扑图状态 editType = "只读模式"; //拓扑图状态
checkJson = []; checkJson = [];
fileList: UploadFile[] = []; fileList: UploadFile[] = [];
...@@ -181,10 +181,10 @@ export class NeTopologyComponent implements OnInit, DoCheck, AfterViewInit, OnDe ...@@ -181,10 +181,10 @@ export class NeTopologyComponent implements OnInit, DoCheck, AfterViewInit, OnDe
// //
changeEdit(type){ changeEdit(type){
if(type == '编辑'){ if(type == '编辑模式'){
editor.utils.editTopology() editor.utils.editTopology()
} }
if(type == '只读'){ if(type == '只读模式'){
editor.utils.normalTopology() editor.utils.normalTopology()
} }
this.editType = type; this.editType = type;
...@@ -242,7 +242,7 @@ export class NeTopologyComponent implements OnInit, DoCheck, AfterViewInit, OnDe ...@@ -242,7 +242,7 @@ export class NeTopologyComponent implements OnInit, DoCheck, AfterViewInit, OnDe
} }
this.topologySer.findByHostIdOrWeb(data).subscribe( this.topologySer.findByHostIdOrWeb(data).subscribe(
(res)=>{ (res)=>{
editor.utils.addNode(res.data[0].url, '图片',e[0]); editor.utils.addNode(res.data[0].url, '',e[0]);
} }
) )
} }
......
...@@ -191,9 +191,9 @@ function TopologyEditor() { ...@@ -191,9 +191,9 @@ function TopologyEditor() {
itemId:[] itemId:[]
}; };
// 布局参数 // 布局参数
this.layout = {} this.layout = {};
// 绘图区属性 // 绘图区属性
this.stage = null this.stage = null;
this.scene = null this.scene = null
// 当前模式 // 当前模式
this.stageMode = 'normal' this.stageMode = 'normal'
......
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