Commit cbcdfde3 authored by wangqinghua's avatar wangqinghua

update

parent 8e3ebf88
...@@ -170,10 +170,10 @@ ...@@ -170,10 +170,10 @@
<nz-tag nzColor="#80ba78"></nz-tag> <nz-tag nzColor="#80ba78"></nz-tag>
内存使用率 0% 内存使用率 0%
</p> </p>
<p> <!--<p>-->
<nz-tag nzColor="#73b6e4"></nz-tag> <!--<nz-tag nzColor="#73b6e4"></nz-tag>-->
带宽使用率 {{item.lose}}% <!--带宽使用率 {{item.lose}}%-->
</p> <!--</p>-->
</div> </div>
</div> </div>
......
...@@ -214,34 +214,34 @@ export class HomeComponent implements OnInit,AfterViewInit { ...@@ -214,34 +214,34 @@ export class HomeComponent implements OnInit,AfterViewInit {
}, },
] ]
}, },
{ // {
name: '带宽使用率', // name: '带宽使用率',
type: 'pie', // type: 'pie',
clockWise: false, // clockWise: false,
radius: [20, 28], // radius: [20, 28],
center:['30%','50%'], // center:['30%','50%'],
itemStyle: dataStyle, // itemStyle: dataStyle,
hoverAnimation: false, // hoverAnimation: false,
startAngle: 90, // startAngle: 90,
data: [{ // data: [{
value: e.lose, // value: e.lose,
name: '带宽使用率', // name: '带宽使用率',
itemStyle: { // itemStyle: {
normal: { // normal: {
color: "#73b6e4" // color: "#73b6e4"
} // }
} // }
}, // },
{ // {
value: 100 - e.lose, // value: 100 - e.lose,
name: '', // name: '',
tooltip: { // tooltip: {
show: false // show: false
}, // },
itemStyle: placeHolderStyle // itemStyle: placeHolderStyle
}, // },
] // ]
} // }
] ]
}; };
}) })
...@@ -311,8 +311,8 @@ export class HomeComponent implements OnInit,AfterViewInit { ...@@ -311,8 +311,8 @@ export class HomeComponent implements OnInit,AfterViewInit {
this.leftOneChart = this.leftOneChart =
{ {
title: { title: {
text: this.leftOneTotal+'台\n设备', text: " " +this.leftOneTotal+'台\n设备',
x: '40%', x: '41%',
y: '40%', y: '40%',
itemGap: 50, itemGap: 50,
textStyle: { textStyle: {
...@@ -335,7 +335,7 @@ export class HomeComponent implements OnInit,AfterViewInit { ...@@ -335,7 +335,7 @@ export class HomeComponent implements OnInit,AfterViewInit {
name:"设备", name:"设备",
type: 'pie', type: 'pie',
clockWise: true, clockWise: true,
center: ["47%", "50%"], center: ["46%", "50%"],
radius: ['40%', '60%'], radius: ['40%', '60%'],
color: ['#f93215', '#ff8400', '#2fb35b', '#a0a0a0'], color: ['#f93215', '#ff8400', '#2fb35b', '#a0a0a0'],
label: { label: {
...@@ -399,7 +399,7 @@ export class HomeComponent implements OnInit,AfterViewInit { ...@@ -399,7 +399,7 @@ export class HomeComponent implements OnInit,AfterViewInit {
{ {
title: { title: {
text: this.leftTwoTotal+'个\n监测点', text: this.leftTwoTotal+'个\n监测点',
x: '40%', x: '41%',
y: '40%', y: '40%',
itemGap: 50, itemGap: 50,
textStyle: { textStyle: {
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
<div nz-col nzSpan="12" class="text-right"> <div nz-col nzSpan="12" class="text-right">
<button nz-button (click)="addTopo()" nzType="default"><i class="anticon anticon-plus-circle-o"></i>添加</button> <button nz-button (click)="addTopo()" nzType="default"><i class="anticon anticon-plus-circle-o"></i>添加</button>
<button nz-button (click)="editTopo()" nzType="default"><i class="anticon anticon-form"></i>编辑</button> <button nz-button (click)="editTopo()" nzType="default"><i class="anticon anticon-form"></i>编辑</button>
<button nz-button (click)="deleteTopo()" nzType="default"><i class="anticon anticon-play-circle-o"></i>删除</button> <button nz-button (click)="deleteTopo()" nzType="default"><i class="anticon anticon-close-circle-o"></i>删除</button>
</div> </div>
</div> </div>
......
...@@ -207,8 +207,13 @@ export class NeTopologyComponent implements OnInit, AfterViewInit { ...@@ -207,8 +207,13 @@ export class NeTopologyComponent implements OnInit, AfterViewInit {
if (res.errCode == 10000) { if (res.errCode == 10000) {
if (res.data.json.length > 0) { if (res.data.json.length > 0) {
let json = JSON.parse(res.data.json); let json = JSON.parse(res.data.json);
editor.loadTopologyByJson(JSON.parse(json.topology), 'img/backimg.png'); if(json.topology){
this.checkJson = json.check; editor.loadTopologyByJson(JSON.parse(json.topology), 'img/backimg.png');
this.checkJson = json.check;
}else{
editor.utils.clearTopology();
this.checkJson = [];
}
} else { } else {
editor.utils.clearTopology(); editor.utils.clearTopology();
this.checkJson = []; this.checkJson = [];
...@@ -249,7 +254,10 @@ export class NeTopologyComponent implements OnInit, AfterViewInit { ...@@ -249,7 +254,10 @@ export class NeTopologyComponent implements OnInit, AfterViewInit {
nzOkText: '确定', nzOkText: '确定',
nzOkType: 'danger', nzOkType: 'danger',
nzOnOk: () => { nzOnOk: () => {
this.topologySer.delete(this.topoId).subscribe( const data = {
id:this.topoId
}
this.topologySer.delete(data).subscribe(
(res) => { (res) => {
if (res.errCode == 10000) { if (res.errCode == 10000) {
this.topoId = null; this.topoId = null;
......
...@@ -30,8 +30,8 @@ export class TopologyService { ...@@ -30,8 +30,8 @@ export class TopologyService {
} }
//删除拓扑图 //删除拓扑图
delete(params): Observable<any> { delete(data): Observable<any> {
return this.http.get(SERVER_API_URL + '/sysmapJson/delete/' + params); return this.http.post(SERVER_API_URL + '/sysmapJson/delete' , data);
} }
//删除图标 //删除图标
......
...@@ -122,7 +122,7 @@ ...@@ -122,7 +122,7 @@
<th>进流量</th> <th>进流量</th>
<th>出流量</th> <th>出流量</th>
<th>状态变更时间</th> <th>状态变更时间</th>
<th nzWidth="150px">图表</th> <!--<th nzWidth="150px">图表</th>-->
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
...@@ -132,7 +132,7 @@ ...@@ -132,7 +132,7 @@
<td>{{data.in}}</td> <td>{{data.in}}</td>
<td>{{data.out}}</td> <td>{{data.out}}</td>
<td>{{data.changeState}}</td> <td>{{data.changeState}}</td>
<td>图表</td> <!--<td>图表</td>-->
</tr> </tr>
</tbody> </tbody>
</nz-table> </nz-table>
......
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